blob: 87abfc1fbc81b5a6c37d0f03cbde6290a468ba0e [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
Bob Badour9150de62021-02-26 03:22:24 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "art_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["art_license"],
22}
23
David Sehr5a1f6292018-01-19 11:08:51 -080024cc_defaults {
25 name: "dexdump_defaults",
Andreas Gampe70dfb692018-09-18 16:50:18 -070026 defaults: ["art_defaults"],
Colin Crossfe6064a2016-08-30 13:49:26 -070027 srcs: [
David Sehrcaacd112016-10-20 16:27:02 -070028 "dexdump_cfg.cc",
Colin Crossfe6064a2016-08-30 13:49:26 -070029 "dexdump_main.cc",
30 "dexdump.cc",
31 ],
David Sehr5a1f6292018-01-19 11:08:51 -080032}
33
34art_cc_binary {
David Sehr4f215d12019-04-03 09:28:21 -070035 name: "dexdump",
David Sehr5a1f6292018-01-19 11:08:51 -080036 defaults: ["dexdump_defaults"],
37 host_supported: true,
Colin Crossa9c05322017-10-19 10:25:42 -070038 target: {
Orion Hodson520a4362019-04-18 09:34:45 +010039 android: {
40 shared_libs: [
41 "libdexfile",
42 "libartbase",
43 "libbase",
44 ],
45 },
46 // Use static libs on host: required for Windows build and
47 // static_sdk_tools build.
48 host: {
David Sehr10db8fe2018-07-18 11:01:20 -070049 enabled: true,
Martin Stjernholm2b527c42021-05-11 19:23:52 +010050 stl: "libc++_static",
David Sehr4f215d12019-04-03 09:28:21 -070051 static_libs: [
52 "libdexfile",
53 "libartbase",
54 "libbase",
55 "libartpalette",
56 "liblog",
57 "libz",
58 "libziparchive",
59 ],
David Srbeckyb29ecc12019-04-15 15:10:59 +010060 },
Greg Hartman063c9852019-04-18 23:49:41 +000061 darwin: {
62 enabled: true,
63 },
Andreas Gampe0dc93b12019-05-15 10:30:22 -070064 },
Jiyong Park066dd9022019-12-19 02:11:59 +000065 apex_available: [
Martin Stjernholm3e9abfc2020-10-09 22:17:51 +010066 "com.android.art",
Jiyong Park066dd9022019-12-19 02:11:59 +000067 "com.android.art.debug",
Jiyong Park066dd9022019-12-19 02:11:59 +000068 ],
Colin Crossa9c05322017-10-19 10:25:42 -070069}
70
Colin Cross6e95dd52016-09-12 15:37:10 -070071art_cc_test {
72 name: "art_dexdump_tests",
73 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -070074 "art_gtest_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -070075 ],
76 srcs: ["dexdump_test.cc"],
Yo Chiang169dfb42020-08-07 04:22:18 +000077 target: {
78 host: {
79 required: ["dexdump"],
80 },
81 },
Colin Cross6e95dd52016-09-12 15:37:10 -070082}