| package { | |
| // See: http://go/android-license-faq | |
| // A large-scale-change added 'default_applicable_licenses' to import | |
| // all of the 'license_kinds' from "frameworks_base_license" | |
| // to get the below license kinds: | |
| // SPDX-license-identifier-Apache-2.0 | |
| default_applicable_licenses: ["frameworks_base_license"], | |
| default_team: "trendy_team_enterprise", | |
| } | |
| java_library_host { | |
| name: "DevicePolicyAnnotationProcessorProto", | |
| srcs: ["proto/**/*.proto"], | |
| static_libs: [ | |
| "libprotobuf-java-full", | |
| ], | |
| proto: { | |
| type: "full", | |
| include_dirs: [ | |
| "external/protobuf/src", | |
| ], | |
| }, | |
| } | |
| java_library_host { | |
| name: "DevicePolicyAnnotationProcessorHostLibrary", | |
| srcs: [ | |
| "src/**/*.kt", | |
| "annotations/**/*.java", | |
| ], | |
| use_tools_jar: true, | |
| static_libs: [ | |
| "libprotobuf-java-full", | |
| "DevicePolicyAnnotationProcessorProto", | |
| "framework-annotations-lib", | |
| ], | |
| } | |
| java_plugin { | |
| name: "DevicePolicyAnnotationProcessor", | |
| processor_class: "android.processor.devicepolicy.DevicePolicyAnnotationProcessor", | |
| static_libs: ["DevicePolicyAnnotationProcessorHostLibrary"], | |
| } | |
| java_library { | |
| name: "DevicePolicyAnnotation", | |
| srcs: ["annotations/**/*.java"], | |
| sdk_version: "core_current", | |
| host_supported: true, | |
| } | |
| java_test_host { | |
| name: "DevicePolicyAnnotationProcessorTests", | |
| srcs: [ | |
| "test/src/**/*.kt", | |
| "test/src/**/*.java", | |
| ], | |
| static_libs: [ | |
| "DevicePolicyAnnotationProcessorHostLibrary", | |
| "compile-testing-prebuilt", | |
| "junit", | |
| "kotlin-reflect", | |
| "truth", | |
| "truth-liteproto-extension", | |
| "truth-proto-extension", | |
| ], | |
| java_resources: [":DevicePolicyAnnotationProcessorTestSource"], | |
| test_suites: ["general-tests"], | |
| } | |
| filegroup { | |
| name: "DevicePolicyAnnotationProcessorTestSource", | |
| srcs: [ | |
| // We need the java sources for compiler tests. | |
| ":framework-metalava-annotations", | |
| ":framework-device-policy-metadata-sources", | |
| "test/resources/**/*.java", | |
| "test/resources/**/*.textproto", | |
| ], | |
| visibility: ["//visibility:private"], | |
| } |