summaryrefslogtreecommitdiff
path: root/tests/Codegen/Android.bp
blob: 7fbe3b37f99ed2a00372b7a5d5ee34dd013fdd79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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"],
}

android_test {
    name: "CodegenTests",
    srcs: [
        "**/*.java",
    ],

    platform_apis: true,
    test_suites: ["device-tests"],
    certificate: "platform",

    optimize: {
        enabled: false,
    },

    plugins: [
        "staledataclass-annotation-processor",
    ],
    // Exports needed for staledataclass-annotation-processor, see b/139342589.
    javacflags: [
        "-J--add-modules=jdk.compiler",
        "-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
        "-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
        "-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
        "-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
    ],
    static_libs: [
        "junit",
        "hamcrest",
        "hamcrest-library",
        "androidx.test.runner",
        "androidx.test.rules",
    ],
}