blob: c63d6c319e3527bf03175a5e1208675c4ab70e68 [file] [log] [blame]
Colin Crossfe6064a2016-08-30 13:49:26 -07001// Copyright (C) 2015 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
15// TODO(ajcbik): rename dexdump2 into dexdump when Dalvik version is removed
16
David Sehr5a1f6292018-01-19 11:08:51 -080017
18cc_defaults {
19 name: "dexdump_defaults",
Colin Crossfe6064a2016-08-30 13:49:26 -070020 srcs: [
David Sehrcaacd112016-10-20 16:27:02 -070021 "dexdump_cfg.cc",
Colin Crossfe6064a2016-08-30 13:49:26 -070022 "dexdump_main.cc",
23 "dexdump.cc",
24 ],
Chih-Hung Hsiehfefd3182017-09-29 16:18:00 -070025 cflags: ["-Wall", "-Werror"],
David Sehr5a1f6292018-01-19 11:08:51 -080026 // TODO: fix b/72216369 and remove the need for this.
27 include_dirs: [
28 "art/runtime" // dex utils.
29 ],
30}
31
32art_cc_binary {
33 name: "dexdump2",
34 defaults: ["dexdump_defaults"],
35 host_supported: true,
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070036 shared_libs: [
David Sehr5a1f6292018-01-19 11:08:51 -080037 "libdexfile",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070038 "libbase",
39 ],
Colin Crossfe6064a2016-08-30 13:49:26 -070040}
Colin Cross6e95dd52016-09-12 15:37:10 -070041
Colin Crossa9c05322017-10-19 10:25:42 -070042art_cc_binary {
43 name: "dexdumps",
David Sehr5a1f6292018-01-19 11:08:51 -080044 defaults: ["dexdump_defaults"],
Colin Crossa9c05322017-10-19 10:25:42 -070045 host_supported: true,
46 device_supported: false,
Colin Crossa9c05322017-10-19 10:25:42 -070047 static_libs: [
David Sehrfcbe15c2018-02-15 09:41:13 -080048 "libdexfile",
Colin Crossa9c05322017-10-19 10:25:42 -070049 ] + art_static_dependencies,
50 target: {
51 darwin: {
52 enabled: false,
53 },
54 },
55}
56
Colin Cross6e95dd52016-09-12 15:37:10 -070057art_cc_test {
58 name: "art_dexdump_tests",
59 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -070060 "art_gtest_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -070061 ],
62 srcs: ["dexdump_test.cc"],
63}