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_library_host {
29    name: "dexlib2",
30
31    srcs: [
32        "src/main/java/**/*.java",
33    ],
34
35    static_libs: [
36        "commons-cli-1.2",
37        "guava",
38        "jcommander",
39        "jsr305",
40    ],
41}
42
43java_library_host {
44    name: "dexlib2-no-guava",
45
46    srcs: [
47        "src/main/java/**/*.java",
48    ],
49
50    libs: [
51        "guava",
52    ],
53
54    static_libs: [
55        "commons-cli-1.2",
56        "jcommander",
57        "jsr305",
58    ],
59}
60
61java_library_host {
62    name: "dexlib2-no-guava-no-cli",
63
64    srcs: [
65        "src/main/java/**/*.java",
66    ],
67
68    libs: [
69        "guava",
70        "commons-cli-1.2",
71    ],
72
73    static_libs: [
74        "jcommander",
75        "jsr305",
76    ],
77}
78