• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2014 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// build dexlib2 jar
16// ============================================================
17
18package {
19    // See: http://go/android-license-faq
20    // A large-scale-change added 'default_applicable_licenses' to import
21    // all of the 'license_kinds' from "external_smali_license"
22    // to get the below license kinds:
23    //   SPDX-license-identifier-Apache-2.0
24    //   SPDX-license-identifier-BSD
25    default_applicable_licenses: ["external_smali_license"],
26}
27
28java_defaults {
29    name: "dexlib2_defaults",
30    errorprone: {
31        javacflags: [
32            "-Xep:ComparableType:WARN",
33        ],
34    },
35}
36
37java_library_host {
38    name: "dexlib2",
39    defaults: ["dexlib2_defaults"],
40
41    srcs: [
42        "src/main/java/**/*.java",
43    ],
44
45    static_libs: [
46        "commons-cli-1.2",
47        "guava",
48        "jcommander",
49        "jsr305",
50    ],
51}
52
53java_library_host {
54    name: "dexlib2-no-guava",
55    defaults: ["dexlib2_defaults"],
56
57    srcs: [
58        "src/main/java/**/*.java",
59    ],
60
61    libs: [
62        "guava",
63    ],
64
65    static_libs: [
66        "commons-cli-1.2",
67        "jcommander",
68        "jsr305",
69    ],
70}
71
72java_library_host {
73    name: "dexlib2-no-guava-no-cli",
74    defaults: ["dexlib2_defaults"],
75
76    srcs: [
77        "src/main/java/**/*.java",
78    ],
79
80    libs: [
81        "guava",
82        "commons-cli-1.2",
83    ],
84
85    static_libs: [
86        "jcommander",
87        "jsr305",
88    ],
89}
90