blob: a2116cdc93a5ee0878efca1a918acffa5165a23b [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: [
Colin Crossfe6064a2016-08-30 13:49:26 -070020 "dexlayout.cc",
Jeff Hao3ab96b42016-09-09 18:35:01 -070021 "dex_ir.cc",
Colin Crossfe6064a2016-08-30 13:49:26 -070022 "dex_ir_builder.cc",
David Sehrcc05a772017-04-19 19:44:08 +000023 "dex_verify.cc",
David Sehrcdcfde72016-09-26 07:44:04 -070024 "dex_visualize.cc",
Jeff Haoa8621002016-10-04 18:13:44 +000025 "dex_writer.cc",
Colin Crossfe6064a2016-08-30 13:49:26 -070026 ],
Jeff Haoea7c6292016-11-14 18:10:16 -080027 export_include_dirs: ["."],
28 shared_libs: ["libbase"],
29 static_libs: ["libz"],
30}
31
32art_cc_library {
33 name: "libart-dexlayout",
34 defaults: ["libart-dexlayout-defaults"],
35 shared_libs: ["libart"],
36}
37
38art_cc_library {
39 name: "libartd-dexlayout",
40 defaults: ["libart-dexlayout-defaults"],
41 shared_libs: ["libartd"],
42}
43
44art_cc_binary {
45 name: "dexlayout",
46 host_supported: true,
47 srcs: ["dexlayout_main.cc"],
Colin Crossfe6064a2016-08-30 13:49:26 -070048 cflags: ["-Wall"],
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070049 shared_libs: [
50 "libart",
Jeff Haoea7c6292016-11-14 18:10:16 -080051 "libart-dexlayout",
Andreas Gampe08ae77f2017-04-26 22:02:33 -070052 "libbase",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070053 ],
Colin Crossfe6064a2016-08-30 13:49:26 -070054}
Colin Cross6e95dd52016-09-12 15:37:10 -070055
56art_cc_test {
57 name: "art_dexlayout_tests",
Jeff Haoea7c6292016-11-14 18:10:16 -080058 defaults: ["art_gtest_defaults"],
Colin Cross6e95dd52016-09-12 15:37:10 -070059 srcs: ["dexlayout_test.cc"],
60}
David Sehrbeca4fe2017-03-30 17:50:24 -070061
62art_cc_binary {
63 name: "dexdiag",
David Sehrcc05a772017-04-19 19:44:08 +000064 host_supported: false,
David Sehrbeca4fe2017-03-30 17:50:24 -070065 srcs: ["dexdiag.cc"],
66 cflags: ["-Wall"],
67 shared_libs: [
68 "libart",
69 "libart-dexlayout",
David Sehrcc05a772017-04-19 19:44:08 +000070 "libpagemap",
David Sehrbeca4fe2017-03-30 17:50:24 -070071 ],
72}
73