blob: 452e883a6eb389928ef4b69cf9e52b884062d3ed [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
17art_cc_defaults {
18 name: "libart-disassembler-defaults",
19 defaults: ["art_defaults"],
20 host_supported: true,
Colin Crossfe6064a2016-08-30 13:49:26 -070021 srcs: [
22 "disassembler.cc",
Colin Crossfe6064a2016-08-30 13:49:26 -070023 ],
Roland Levillain5725e7c2018-11-06 13:31:48 +000024 codegen: {
25 arm: {
Andreas Gampe0dc93b12019-05-15 10:30:22 -070026 srcs: ["disassembler_arm.cc"],
Roland Levillain5725e7c2018-11-06 13:31:48 +000027 },
28 arm64: {
Andreas Gampe0dc93b12019-05-15 10:30:22 -070029 srcs: ["disassembler_arm64.cc"],
Roland Levillain5725e7c2018-11-06 13:31:48 +000030 },
Roland Levillain084fc282019-08-05 18:16:03 +010031 x86: {
32 srcs: ["disassembler_x86.cc"],
33 },
34 x86_64: {
35 srcs: ["disassembler_x86.cc"],
36 },
Roland Levillain5725e7c2018-11-06 13:31:48 +000037 },
Colin Crossfe6064a2016-08-30 13:49:26 -070038 shared_libs: [
Colin Crossfe6064a2016-08-30 13:49:26 -070039 "libbase",
40 ],
David Sehr67bf42e2018-02-26 16:43:04 -080041 header_libs: [
42 "art_libartbase_headers",
Paul Duffin4345aac2019-07-17 15:51:54 +010043 "libart_runtime_headers_ndk",
David Sehr67bf42e2018-02-26 16:43:04 -080044 ],
Colin Crossfe6064a2016-08-30 13:49:26 -070045 export_include_dirs: ["."],
46}
47
48art_cc_library {
49 name: "libart-disassembler",
50 defaults: ["libart-disassembler-defaults"],
51 shared_libs: [
Anton Kirilov29b0cde2016-09-06 13:01:03 +010052 // For disassembler_arm*.
Roland Levillain12dd9ae2018-11-06 13:32:06 +000053 "libvixl",
Colin Crossfe6064a2016-08-30 13:49:26 -070054 ],
Jiyong Park066dd9022019-12-19 02:11:59 +000055 apex_available: [
56 "com.android.art.release",
57 "com.android.art.debug",
58 ],
Colin Crossfe6064a2016-08-30 13:49:26 -070059}
60
Martin Stjernholm40746872020-09-29 13:58:10 +010061cc_defaults {
62 name: "libart-disassembler_static_defaults",
63 whole_static_libs: [
64 "libart-disassembler",
65 "libvixl",
66 ],
67}
68
Colin Crossfe6064a2016-08-30 13:49:26 -070069art_cc_library {
70 name: "libartd-disassembler",
71 defaults: [
Colin Crossfe6064a2016-08-30 13:49:26 -070072 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -070073 "libart-disassembler-defaults",
Colin Crossfe6064a2016-08-30 13:49:26 -070074 ],
75 shared_libs: [
Anton Kirilov29b0cde2016-09-06 13:01:03 +010076 // For disassembler_arm*.
Roland Levillain12dd9ae2018-11-06 13:32:06 +000077 "libvixld",
Colin Crossfe6064a2016-08-30 13:49:26 -070078 ],
Jiyong Park71f661c2020-04-28 18:20:43 +090079
80 apex_available: [
81 "com.android.art.release",
82 "com.android.art.debug",
83 ],
Colin Crossfe6064a2016-08-30 13:49:26 -070084}
Paul Duffin4345aac2019-07-17 15:51:54 +010085
Martin Stjernholm40746872020-09-29 13:58:10 +010086cc_defaults {
87 name: "libartd-disassembler_static_defaults",
88 whole_static_libs: [
89 "libartd-disassembler",
90 "libvixld",
91 ],
92}
93
Paul Duffin4345aac2019-07-17 15:51:54 +010094cc_library_headers {
95 name: "art_disassembler_headers",
96 host_supported: true,
97 export_include_dirs: [
98 ".",
99 ],
Jiyong Park71f661c2020-04-28 18:20:43 +0900100
101 apex_available: [
102 "com.android.art.debug",
103 "com.android.art.release",
104 ],
Paul Duffin4345aac2019-07-17 15:51:54 +0100105}