blob: e26d051d9d479a61659f338c44294b44e4d04129 [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",
Colin Crossfe6064a2016-08-30 13:49:26 -070017 host_supported: true,
18 srcs: [
Colin Crossfe6064a2016-08-30 13:49:26 -070019 "dexlayout.cc",
Jeff Hao3ab96b42016-09-09 18:35:01 -070020 "dex_ir.cc",
Colin Crossfe6064a2016-08-30 13:49:26 -070021 "dex_ir_builder.cc",
Jeff Haoec7f1a92017-03-13 16:24:24 -070022 "dex_verify.cc",
David Sehrcdcfde72016-09-26 07:44:04 -070023 "dex_visualize.cc",
Jeff Haoa8621002016-10-04 18:13:44 +000024 "dex_writer.cc",
Colin Crossfe6064a2016-08-30 13:49:26 -070025 ],
Jeff Haoea7c6292016-11-14 18:10:16 -080026 export_include_dirs: ["."],
27 shared_libs: ["libbase"],
28 static_libs: ["libz"],
29}
30
31art_cc_library {
32 name: "libart-dexlayout",
33 defaults: ["libart-dexlayout-defaults"],
34 shared_libs: ["libart"],
35}
36
37art_cc_library {
38 name: "libartd-dexlayout",
39 defaults: ["libart-dexlayout-defaults"],
40 shared_libs: ["libartd"],
41}
42
43art_cc_binary {
44 name: "dexlayout",
45 host_supported: true,
46 srcs: ["dexlayout_main.cc"],
Colin Crossfe6064a2016-08-30 13:49:26 -070047 cflags: ["-Wall"],
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070048 shared_libs: [
49 "libart",
Jeff Haoea7c6292016-11-14 18:10:16 -080050 "libart-dexlayout",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070051 ],
Colin Crossfe6064a2016-08-30 13:49:26 -070052}
Colin Cross6e95dd52016-09-12 15:37:10 -070053
54art_cc_test {
55 name: "art_dexlayout_tests",
Jeff Haoea7c6292016-11-14 18:10:16 -080056 defaults: ["art_gtest_defaults"],
Colin Cross6e95dd52016-09-12 15:37:10 -070057 srcs: ["dexlayout_test.cc"],
58}
David Sehrbeca4fe2017-03-30 17:50:24 -070059
60art_cc_binary {
61 name: "dexdiag",
62 host_supported: false,
63 srcs: ["dexdiag.cc"],
64 cflags: ["-Wall"],
65 shared_libs: [
66 "libart",
67 "libart-dexlayout",
68 "libpagemap",
69 ],
70}
71