summaryrefslogtreecommitdiff
path: root/Android.bp
blob: 76a2d2ffcd29a723a53a209bf97daf5ed313704b (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
43
44
package {
    default_applicable_licenses: ["external_desugar_license"],
}

// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
    name: "external_desugar_license",
    visibility: [":__subpackages__"],
    license_kinds: [
        "SPDX-license-identifier-Apache-2.0",
    ],
    license_text: [
        "NOTICE",
    ],
}

java_library_host {
    name: "desugar",
    srcs: ["java/**/*.java"],
    // Remove com.google.devtools.common.options.testing classes, they are
    // extensions to the Truth library that we are missing dependencies for
    // and don't need.
    // Also remove com.google.devtools.common.options.InvocationPolicy*,
    // which depend on protobuf and are not used in desugar.
    exclude_srcs: [
        "java/com/google/devtools/common/options/testing/**/*.java",
        "java/com/google/devtools/common/options/InvocationPolicyEnforcer.java",
        "java/com/google/devtools/common/options/InvocationPolicyParser.java",
    ],

    manifest: "manifest.txt",
    static_libs: [
        "error_prone_annotations",
        "guava",
        "jsr305",
        "ow2-asm",
        "ow2-asm-commons",
        "ow2-asm-tree",
    ],

    plugins: ["auto_value_plugin"],
    libs: ["auto_value_annotations"],
}