blob: f46b4dea3e171a4664ff19af1eea5abe1205acbb [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
David Sehr5a1f6292018-01-19 11:08:51 -080015cc_defaults {
16 name: "dexdump_defaults",
Andreas Gampe70dfb692018-09-18 16:50:18 -070017 defaults: ["art_defaults"],
Colin Crossfe6064a2016-08-30 13:49:26 -070018 srcs: [
David Sehrcaacd112016-10-20 16:27:02 -070019 "dexdump_cfg.cc",
Colin Crossfe6064a2016-08-30 13:49:26 -070020 "dexdump_main.cc",
21 "dexdump.cc",
22 ],
David Sehr5a1f6292018-01-19 11:08:51 -080023}
24
25art_cc_binary {
David Sehr4f215d12019-04-03 09:28:21 -070026 name: "dexdump",
David Sehr5a1f6292018-01-19 11:08:51 -080027 defaults: ["dexdump_defaults"],
28 host_supported: true,
Colin Crossa9c05322017-10-19 10:25:42 -070029 target: {
Orion Hodson520a4362019-04-18 09:34:45 +010030 android: {
31 shared_libs: [
32 "libdexfile",
33 "libartbase",
34 "libbase",
35 ],
36 },
37 // Use static libs on host: required for Windows build and
38 // static_sdk_tools build.
39 host: {
David Sehr10db8fe2018-07-18 11:01:20 -070040 enabled: true,
David Sehr4f215d12019-04-03 09:28:21 -070041 static_libs: [
42 "libdexfile",
43 "libartbase",
44 "libbase",
45 "libartpalette",
46 "liblog",
47 "libz",
48 "libziparchive",
49 ],
David Srbeckyb29ecc12019-04-15 15:10:59 +010050 },
Greg Hartman063c9852019-04-18 23:49:41 +000051 darwin: {
52 enabled: true,
53 },
Andreas Gampe0dc93b12019-05-15 10:30:22 -070054 },
Colin Crossa9c05322017-10-19 10:25:42 -070055}
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}