blob: 6682fd779cb67b8c06ca5556e12602fc1da290e1 [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: [
51 "art_libartbase_headers",
Paul Duffin4345aac2019-07-17 15:51:54 +010052 "libart_runtime_headers_ndk",
David Sehr67bf42e2018-02-26 16:43:04 -080053 ],
Colin Crossfe6064a2016-08-30 13:49:26 -070054 export_include_dirs: ["."],
55}
56
57art_cc_library {
58 name: "libart-disassembler",
59 defaults: ["libart-disassembler-defaults"],
60 shared_libs: [
Anton Kirilov29b0cde2016-09-06 13:01:03 +010061 // For disassembler_arm*.
Roland Levillain12dd9ae2018-11-06 13:32:06 +000062 "libvixl",
Colin Crossfe6064a2016-08-30 13:49:26 -070063 ],
Jiyong Park066dd9022019-12-19 02:11:59 +000064 apex_available: [
Martin Stjernholm3e9abfc2020-10-09 22:17:51 +010065 "com.android.art",
Jiyong Park066dd9022019-12-19 02:11:59 +000066 "com.android.art.debug",
67 ],
Colin Crossfe6064a2016-08-30 13:49:26 -070068}
69
Martin Stjernholm40746872020-09-29 13:58:10 +010070cc_defaults {
71 name: "libart-disassembler_static_defaults",
72 whole_static_libs: [
73 "libart-disassembler",
74 "libvixl",
75 ],
76}
77
Colin Crossfe6064a2016-08-30 13:49:26 -070078art_cc_library {
79 name: "libartd-disassembler",
80 defaults: [
Colin Crossfe6064a2016-08-30 13:49:26 -070081 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -070082 "libart-disassembler-defaults",
Colin Crossfe6064a2016-08-30 13:49:26 -070083 ],
84 shared_libs: [
Anton Kirilov29b0cde2016-09-06 13:01:03 +010085 // For disassembler_arm*.
Roland Levillain12dd9ae2018-11-06 13:32:06 +000086 "libvixld",
Colin Crossfe6064a2016-08-30 13:49:26 -070087 ],
Jiyong Park71f661c2020-04-28 18:20:43 +090088
89 apex_available: [
Martin Stjernholm3e9abfc2020-10-09 22:17:51 +010090 "com.android.art",
Jiyong Park71f661c2020-04-28 18:20:43 +090091 "com.android.art.debug",
92 ],
Colin Crossfe6064a2016-08-30 13:49:26 -070093}
Paul Duffin4345aac2019-07-17 15:51:54 +010094
Martin Stjernholm40746872020-09-29 13:58:10 +010095cc_defaults {
96 name: "libartd-disassembler_static_defaults",
97 whole_static_libs: [
98 "libartd-disassembler",
99 "libvixld",
100 ],
101}
102
Paul Duffin4345aac2019-07-17 15:51:54 +0100103cc_library_headers {
104 name: "art_disassembler_headers",
105 host_supported: true,
106 export_include_dirs: [
107 ".",
108 ],
Jiyong Park71f661c2020-04-28 18:20:43 +0900109
110 apex_available: [
111 "com.android.art.debug",
Martin Stjernholm3e9abfc2020-10-09 22:17:51 +0100112 "com.android.art",
Jiyong Park71f661c2020-04-28 18:20:43 +0900113 ],
Nicolas Geoffrayec388c02021-03-03 22:09:06 +0000114 min_sdk_version: "S",
Paul Duffin4345aac2019-07-17 15:51:54 +0100115}