blob: 24ee5f8532e4ff56cbe91c9ae2315d4a573ee689 [file] [log] [blame]
Colin Crossfe6064a2016-08-30 13:49:26 -07001// Copyright (C) 2016 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Jeff Haoea7c6292016-11-14 18:10:16 -080015art_cc_defaults {
16 name: "libart-dexlayout-defaults",
David Sehr7639cdc2017-04-15 10:06:21 -070017 defaults: ["art_defaults"],
Colin Crossfe6064a2016-08-30 13:49:26 -070018 host_supported: true,
19 srcs: [
Mathieu Chartierf95a75e2017-11-03 15:25:52 -070020 "compact_dex_writer.cc",
Colin Crossfe6064a2016-08-30 13:49:26 -070021 "dexlayout.cc",
Jeff Hao3ab96b42016-09-09 18:35:01 -070022 "dex_ir.cc",
Colin Crossfe6064a2016-08-30 13:49:26 -070023 "dex_ir_builder.cc",
David Sehr55232f12017-04-19 14:06:49 -070024 "dex_verify.cc",
David Sehrcdcfde72016-09-26 07:44:04 -070025 "dex_visualize.cc",
Jeff Haoa8621002016-10-04 18:13:44 +000026 "dex_writer.cc",
Colin Crossfe6064a2016-08-30 13:49:26 -070027 ],
Jeff Haoea7c6292016-11-14 18:10:16 -080028 export_include_dirs: ["."],
David Sehr0225f8e2018-01-31 08:52:24 +000029 shared_libs: [
David Sehr0225f8e2018-01-31 08:52:24 +000030 "libbase",
31 ],
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +000032 static_libs: ["libz"],
Jeff Haoea7c6292016-11-14 18:10:16 -080033}
34
Andreas Gampeec5ed062018-01-26 16:20:02 -080035cc_defaults {
36 name: "libart-dexlayout_static_base_defaults",
37 static_libs: [
38 "libbase",
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +000039 "libz",
Andreas Gampeec5ed062018-01-26 16:20:02 -080040 ],
41}
42
Jeff Haoea7c6292016-11-14 18:10:16 -080043art_cc_library {
44 name: "libart-dexlayout",
Pirama Arumuga Nainar42d58052018-04-18 22:59:36 -070045 defaults: [
46 "libart-dexlayout-defaults",
47 "dex2oat-pgo-defaults",
48 ],
David Sehrfcbe15c2018-02-15 09:41:13 -080049 shared_libs: [
David Sehrfcbe15c2018-02-15 09:41:13 -080050 "libdexfile",
David Sehr1f010162018-05-15 08:59:32 -070051 "libartbase",
David Sehr82d046e2018-04-23 08:14:19 -070052 "libprofile",
David Sehrfcbe15c2018-02-15 09:41:13 -080053 ],
Pirama Arumuga Nainar02f6ed62018-01-04 10:52:42 -080054
Yi Kong1d894d92018-01-19 22:01:14 -080055 target: {
56 android: {
57 lto: {
58 thin: true,
59 },
60 },
61 },
Jeff Haoea7c6292016-11-14 18:10:16 -080062}
63
Andreas Gampeec5ed062018-01-26 16:20:02 -080064cc_defaults {
65 name: "libart-dexlayout_static_defaults",
66 defaults: [
67 "libart-dexlayout_static_base_defaults",
68 "libartbase_static_defaults",
69 "libdexfile_static_defaults",
70 "libprofile_static_defaults",
71 ],
72 static_libs: ["libart-dexlayout"],
73}
74
Jeff Haoea7c6292016-11-14 18:10:16 -080075art_cc_library {
76 name: "libartd-dexlayout",
Mathieu Chartier5929beb2017-10-20 23:24:10 -070077 defaults: [
78 "libart-dexlayout-defaults",
79 "art_debug_defaults",
80 ],
David Sehrfcbe15c2018-02-15 09:41:13 -080081 shared_libs: [
David Sehrfcbe15c2018-02-15 09:41:13 -080082 "libdexfiled",
David Sehr1f010162018-05-15 08:59:32 -070083 "libartbased",
David Sehr82d046e2018-04-23 08:14:19 -070084 "libprofiled",
David Sehrfcbe15c2018-02-15 09:41:13 -080085 ],
Jeff Haoea7c6292016-11-14 18:10:16 -080086}
87
Andreas Gampe693bfbf2017-11-10 12:23:31 -080088cc_defaults {
Andreas Gampeec5ed062018-01-26 16:20:02 -080089 name: "libartd-dexlayout_static_defaults",
90 defaults: [
91 "libart-dexlayout_static_base_defaults",
92 "libartbased_static_defaults",
93 "libdexfiled_static_defaults",
94 "libprofiled_static_defaults",
95 ],
96 static_libs: ["libartd-dexlayout"],
97}
98
99cc_defaults {
Andreas Gampe693bfbf2017-11-10 12:23:31 -0800100 name: "dexlayout-defaults",
David Sehr55232f12017-04-19 14:06:49 -0700101 defaults: ["art_defaults"],
Jeff Haoea7c6292016-11-14 18:10:16 -0800102 host_supported: true,
Andreas Gampe693bfbf2017-11-10 12:23:31 -0800103 shared_libs: [
104 "libbase",
105 ],
106}
107
108art_cc_binary {
109 name: "dexlayout",
110 defaults: ["dexlayout-defaults"],
David Sehr671af6c2018-05-17 11:00:35 -0700111 srcs: ["dexlayout_main.cc"],
Andreas Gampe3fec9ac2016-09-13 10:47:28 -0700112 shared_libs: [
David Sehr671af6c2018-05-17 11:00:35 -0700113 "libdexfile",
David Sehr82d046e2018-04-23 08:14:19 -0700114 "libprofile",
David Sehr1f010162018-05-15 08:59:32 -0700115 "libartbase",
Jeff Haoea7c6292016-11-14 18:10:16 -0800116 "libart-dexlayout",
Andreas Gampe693bfbf2017-11-10 12:23:31 -0800117 ],
118}
119
120art_cc_binary {
121 name: "dexlayoutd",
122 defaults: [
123 "art_debug_defaults",
124 "dexlayout-defaults",
125 ],
David Sehr671af6c2018-05-17 11:00:35 -0700126 srcs: ["dexlayout_main.cc"],
Andreas Gampe693bfbf2017-11-10 12:23:31 -0800127 shared_libs: [
David Sehr671af6c2018-05-17 11:00:35 -0700128 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700129 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700130 "libartbased",
Andreas Gampe693bfbf2017-11-10 12:23:31 -0800131 "libartd-dexlayout",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -0700132 ],
Colin Crossfe6064a2016-08-30 13:49:26 -0700133}
Colin Cross6e95dd52016-09-12 15:37:10 -0700134
135art_cc_test {
136 name: "art_dexlayout_tests",
Jeff Haoea7c6292016-11-14 18:10:16 -0800137 defaults: ["art_gtest_defaults"],
David Sehr82d046e2018-04-23 08:14:19 -0700138 shared_libs: [
139 "libprofiled",
140 "libartd-dexlayout",
141 ],
Colin Cross6e95dd52016-09-12 15:37:10 -0700142 srcs: ["dexlayout_test.cc"],
143}
David Sehrbeca4fe2017-03-30 17:50:24 -0700144
145art_cc_binary {
146 name: "dexdiag",
David Sehr55232f12017-04-19 14:06:49 -0700147 defaults: ["art_defaults"],
148 host_supported: true,
David Sehrbeca4fe2017-03-30 17:50:24 -0700149 srcs: ["dexdiag.cc"],
150 cflags: ["-Wall"],
151 shared_libs: [
152 "libart",
David Sehr671af6c2018-05-17 11:00:35 -0700153 "libdexfile",
David Sehr1f010162018-05-15 08:59:32 -0700154 "libartbase",
David Sehrbeca4fe2017-03-30 17:50:24 -0700155 "libart-dexlayout",
Andreas Gampe281fee02018-03-05 12:59:30 -0800156 "libbase",
David Sehrbeca4fe2017-03-30 17:50:24 -0700157 ],
David Sehr55232f12017-04-19 14:06:49 -0700158 target: {
159 android: {
160 shared_libs: [
161 "libpagemap",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700162 ],
David Sehr55232f12017-04-19 14:06:49 -0700163 },
Dan Willemsen2ca27802017-09-27 14:57:43 -0700164 },
David Sehrbeca4fe2017-03-30 17:50:24 -0700165}
166
David Sehr55232f12017-04-19 14:06:49 -0700167art_cc_test {
168 name: "art_dexdiag_tests",
169 host_supported: true,
170 defaults: [
171 "art_gtest_defaults",
172 ],
173 srcs: ["dexdiag_test.cc"],
174}