xref: /aosp_15_r20/external/google-smali/smali/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
17genrule {
18    name: "android-smali_version",
19    defaults: ["android-smali_version_defaults"],
20    out: ["android-smali.properties"],
21}
22
23// build smali jar
24// ============================================================
25
26java_binary_host {
27    name: "android-smali",
28
29    srcs: [
30        "src/main/java/**/*.java",
31        ":third_party-smali",
32    ],
33
34    manifest: "manifest.txt",
35
36    static_libs: [
37        "guava",
38        "antlr-runtime",
39        "jcommander",
40        "smali-dexlib2",
41        "android-smali-util",
42    ],
43
44    java_resources: [":android-smali_version"],
45
46    wrapper: ":android-smali_script",
47}
48