xref: /aosp_15_r20/external/google-smali/baksmali/Android.bp (revision 37f5703ca959d1ce24046e7595880d209e15c133)
1/*
2 * Copyright (C) 2023 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17// Create a new baksmali.properties file using the correct version
18genrule {
19    name: "android-baksmali_version",
20    defaults: ["android-smali_version_defaults"],
21    out: ["android-baksmali.properties"],
22}
23
24// build baksmali jar
25// ============================================================
26
27java_binary_host {
28    name: "smali-baksmali",
29
30    srcs: [
31        "src/main/java/**/*.java",
32        ":third_party-smali-baksmali",
33    ],
34
35    manifest: "manifest.txt",
36
37    static_libs: [
38        "guava",
39        "smali-dexlib2",
40        "android-smali-util",
41        "jcommander",
42    ],
43
44    java_resources: [":android-baksmali_version"],
45
46    wrapper: ":android-baksmali_script",
47}
48