xref: /aosp_15_r20/frameworks/base/tools/processors/property_cache/Android.bp (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "frameworks_base_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_base_license"],
8    default_team: "trendy_team_framework_android_multiuser",
9}
10
11java_library_host {
12    name: "libcached-property-annotation-processor",
13    srcs: [
14        ":framework-annotations",
15        "src/**/*.java",
16    ],
17    static_libs: [
18        "codegen-version-info",
19        "android.multiuser.flags-aconfig-java-host",
20        "guava",
21    ],
22    use_tools_jar: true,
23}
24
25java_plugin {
26    name: "cached-property-annotation-processor",
27    processor_class: "android.processor.property_cache.CachedPropertyProcessor",
28    static_libs: ["libcached-property-annotation-processor"],
29}
30
31java_aconfig_library {
32    name: "android.multiuser.flags-aconfig-java-host",
33    aconfig_declarations: "android.multiuser.flags-aconfig",
34    host_supported: true,
35    defaults: ["framework-minus-apex-aconfig-java-defaults"],
36}
37
38java_test_host {
39    name: "cached-property-annotation-processor-test",
40    srcs: ["test/java/**/*.java"],
41    java_resources: [":CachedPropertyAnnotationJavaTestSource"],
42    static_libs: [
43        "compile-testing-prebuilt",
44        "truth",
45        "junit",
46        "guava",
47        "libcached-property-annotation-processor",
48    ],
49    test_suites: ["general-tests"],
50}
51
52filegroup {
53    name: "CachedPropertyAnnotationJavaTestSource",
54    srcs: ["test/resources/*.java"],
55    path: "test/resources/",
56    visibility: ["//visibility:private"],
57}
58