• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2012 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
17package {
18    // See: http://go/android-license-faq
19    // A large-scale-change added 'default_applicable_licenses' to import
20    // all of the 'license_kinds' from "art_license"
21    // to get the below license kinds:
22    //   SPDX-license-identifier-Apache-2.0
23    default_applicable_licenses: ["art_license"],
24}
25
26art_cc_defaults {
27    name: "libart-disassembler-defaults",
28    defaults: ["art_defaults"],
29    host_supported: true,
30    srcs: [
31        "disassembler.cc",
32    ],
33    codegen: {
34        arm: {
35            srcs: ["disassembler_arm.cc"],
36        },
37        arm64: {
38            srcs: ["disassembler_arm64.cc"],
39        },
40        x86: {
41            srcs: ["disassembler_x86.cc"],
42        },
43        x86_64: {
44            srcs: ["disassembler_x86.cc"],
45        },
46    },
47    shared_libs: [
48        "libbase",
49    ],
50    header_libs: [
51        "art_libartbase_headers",
52        "libart_runtime_headers_ndk",
53    ],
54    export_include_dirs: ["."],
55}
56
57art_cc_library {
58    name: "libart-disassembler",
59    defaults: ["libart-disassembler-defaults"],
60    codegen: {
61        arm: {
62            static_libs: [
63                // For disassembler_arm*.
64                "libvixl",
65            ],
66        },
67        arm64: {
68            static_libs: [
69                // For disassembler_arm*.
70                "libvixl",
71            ],
72        },
73    },
74    apex_available: [
75        "com.android.art",
76        "com.android.art.debug",
77    ],
78}
79
80cc_defaults {
81    name: "libart-disassembler_static_defaults",
82    whole_static_libs: [
83        "libart-disassembler",
84        "libvixl",
85    ],
86}
87
88art_cc_library {
89    name: "libartd-disassembler",
90    defaults: [
91        "art_debug_defaults",
92        "libart-disassembler-defaults",
93    ],
94    codegen: {
95        arm: {
96            static_libs: [
97                // For disassembler_arm*.
98                "libvixld",
99            ],
100        },
101        arm64: {
102            static_libs: [
103                // For disassembler_arm*.
104                "libvixld",
105            ],
106        },
107    },
108
109    apex_available: [
110        "com.android.art",
111        "com.android.art.debug",
112    ],
113}
114
115cc_defaults {
116    name: "libartd-disassembler_static_defaults",
117    whole_static_libs: [
118        "libartd-disassembler",
119        "libvixld",
120    ],
121}
122
123cc_library_headers {
124    name: "art_disassembler_headers",
125    host_supported: true,
126    export_include_dirs: [
127        ".",
128    ],
129
130    apex_available: [
131        "com.android.art.debug",
132        "com.android.art",
133    ],
134    min_sdk_version: "S",
135}
136