blob: b7f758ffdcefcf7ea5ed3c607bfa6055ea4e1f2e [file] [log] [blame]
Colin Crossfe6064a2016-08-30 13:49:26 -07001//
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
Bob Badour9150de62021-02-26 03:22:24 -080017package {
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
Colin Crossfe6064a2016-08-30 13:49:26 -070026art_cc_defaults {
27 name: "libart-disassembler-defaults",
28 defaults: ["art_defaults"],
29 host_supported: true,
Colin Crossfe6064a2016-08-30 13:49:26 -070030 srcs: [
31 "disassembler.cc",
Colin Crossfe6064a2016-08-30 13:49:26 -070032 ],
Roland Levillain5725e7c2018-11-06 13:31:48 +000033 codegen: {
34 arm: {
Andreas Gampe0dc93b12019-05-15 10:30:22 -070035 srcs: ["disassembler_arm.cc"],
Roland Levillain5725e7c2018-11-06 13:31:48 +000036 },
37 arm64: {
Andreas Gampe0dc93b12019-05-15 10:30:22 -070038 srcs: ["disassembler_arm64.cc"],
Roland Levillain5725e7c2018-11-06 13:31:48 +000039 },
Roland Levillain084fc282019-08-05 18:16:03 +010040 x86: {
41 srcs: ["disassembler_x86.cc"],
42 },
43 x86_64: {
44 srcs: ["disassembler_x86.cc"],
45 },
Roland Levillain5725e7c2018-11-06 13:31:48 +000046 },
Colin Crossfe6064a2016-08-30 13:49:26 -070047 shared_libs: [
Colin Crossfe6064a2016-08-30 13:49:26 -070048 "libbase",
49 ],
David Sehr67bf42e2018-02-26 16:43:04 -080050 header_libs: [
Martin Stjernholmdc7f1392021-11-03 18:05:33 +000051 "libart_headers",
David Sehr67bf42e2018-02-26 16:43:04 -080052 ],
Colin Crossfe6064a2016-08-30 13:49:26 -070053 export_include_dirs: ["."],
54}
55
56art_cc_library {
57 name: "libart-disassembler",
58 defaults: ["libart-disassembler-defaults"],
Vladimir Marko053e1382021-05-05 16:07:27 +000059 codegen: {
60 arm: {
61 static_libs: [
62 // For disassembler_arm*.
63 "libvixl",
64 ],
65 },
66 arm64: {
67 static_libs: [
68 // For disassembler_arm*.
69 "libvixl",
70 ],
71 },
72 },
Jiyong Park066dd9022019-12-19 02:11:59 +000073 apex_available: [
Martin Stjernholm3e9abfc2020-10-09 22:17:51 +010074 "com.android.art",
Jiyong Park066dd9022019-12-19 02:11:59 +000075 "com.android.art.debug",
76 ],
Colin Crossfe6064a2016-08-30 13:49:26 -070077}
78
Martin Stjernholm40746872020-09-29 13:58:10 +010079cc_defaults {
80 name: "libart-disassembler_static_defaults",
81 whole_static_libs: [
82 "libart-disassembler",
83 "libvixl",
84 ],
85}
86
Colin Crossfe6064a2016-08-30 13:49:26 -070087art_cc_library {
88 name: "libartd-disassembler",
89 defaults: [
Colin Crossfe6064a2016-08-30 13:49:26 -070090 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -070091 "libart-disassembler-defaults",
Colin Crossfe6064a2016-08-30 13:49:26 -070092 ],
Vladimir Marko053e1382021-05-05 16:07:27 +000093 codegen: {
94 arm: {
95 static_libs: [
96 // For disassembler_arm*.
97 "libvixld",
98 ],
99 },
100 arm64: {
101 static_libs: [
102 // For disassembler_arm*.
103 "libvixld",
104 ],
105 },
106 },
Jiyong Park71f661c2020-04-28 18:20:43 +0900107 apex_available: [
Martin Stjernholm3e9abfc2020-10-09 22:17:51 +0100108 "com.android.art",
Jiyong Park71f661c2020-04-28 18:20:43 +0900109 "com.android.art.debug",
110 ],
Colin Crossfe6064a2016-08-30 13:49:26 -0700111}
Paul Duffin4345aac2019-07-17 15:51:54 +0100112
Martin Stjernholm40746872020-09-29 13:58:10 +0100113cc_defaults {
114 name: "libartd-disassembler_static_defaults",
115 whole_static_libs: [
116 "libartd-disassembler",
117 "libvixld",
118 ],
119}
120
Paul Duffin4345aac2019-07-17 15:51:54 +0100121cc_library_headers {
122 name: "art_disassembler_headers",
Martin Stjernholme10abe72021-10-28 03:49:55 +0100123 defaults: ["art_defaults"],
Paul Duffin4345aac2019-07-17 15:51:54 +0100124 host_supported: true,
125 export_include_dirs: [
126 ".",
127 ],
Jiyong Park71f661c2020-04-28 18:20:43 +0900128
129 apex_available: [
130 "com.android.art.debug",
Martin Stjernholm3e9abfc2020-10-09 22:17:51 +0100131 "com.android.art",
Jiyong Park71f661c2020-04-28 18:20:43 +0900132 ],
Paul Duffin4345aac2019-07-17 15:51:54 +0100133}
Greg Cawthornebb3ef5a2021-12-21 22:01:14 +0000134
135art_cc_defaults {
136 name: "art_disassembler_tests_defaults",
137 codegen: {
138 arm64: {
139 srcs: ["disassembler_arm64_test.cc"],
140 },
141 },
142}
143
144// Version of ART gtest `art_disassembler_tests` bundled with the ART APEX on target.
145// TODO(b/192274705): Remove this module when the migration to standalone ART gtests is complete.
146art_cc_test {
147 name: "art_disassembler_tests",
148 defaults: [
149 "art_gtest_defaults",
150 "art_disassembler_tests_defaults",
151 ],
152 static_libs: [
153 "libvixld",
154 ],
155}
156
157// Standalone version of ART gtest `art_disassembler_tests`,
158// not bundled with the ART APEX on target.
159art_cc_test {
160 name: "art_standalone_disassembler_tests",
161 defaults: [
162 "art_standalone_gtest_defaults",
163 "art_disassembler_tests_defaults",
164 ],
165 static_libs: [
166 "libvixl",
167 ],
168}