blob: 972c8f71898cfd83e933abe7478f94c36dcb0f79 [file] [log] [blame]
Colin Crossc7376e02016-09-08 12:52:18 -07001//
2// Copyright (C) 2014 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17// Build variants {target,host} x {debug,ndebug} x {32,64}
18
19cc_defaults {
20 name: "imgdiag-defaults",
21 host_supported: true,
22 srcs: ["imgdiag.cc"],
23 defaults: ["art_defaults"],
24
25 // Note that this tool needs to be built for both 32-bit and 64-bit since it requires
26 // that the image it's analyzing be the same ISA as the runtime ISA.
27 compile_multilib: "both",
28
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070029 shared_libs: [
30 "libbacktrace",
31 "libbase",
32 ],
Colin Crossc7376e02016-09-08 12:52:18 -070033 target: {
34 android: {
35 shared_libs: ["libcutils"],
36 },
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +000037 host: {
38 shared_libs: ["libziparchive"],
39 },
Colin Crossc7376e02016-09-08 12:52:18 -070040 },
Andreas Gampe3157fc22017-08-23 09:43:46 -070041 header_libs: [
42 "art_cmdlineparser_headers",
Colin Crossc7376e02016-09-08 12:52:18 -070043 ],
44 multilib: {
45 lib32: {
46 suffix: "32",
47 },
48 lib64: {
49 suffix: "64",
50 },
51 },
52 symlink_preferred_arch: true,
53}
54
55art_cc_binary {
56 name: "imgdiag",
57 defaults: ["imgdiag-defaults"],
58 shared_libs: [
59 "libart",
David Sehr1f010162018-05-15 08:59:32 -070060 "libartbase",
Colin Crossc7376e02016-09-08 12:52:18 -070061 "libart-compiler",
62 ],
63}
64
65art_cc_binary {
66 name: "imgdiagd",
67 defaults: [
Colin Crossc7376e02016-09-08 12:52:18 -070068 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -070069 "imgdiag-defaults",
Colin Crossc7376e02016-09-08 12:52:18 -070070 ],
71 shared_libs: [
72 "libartd",
David Sehr1f010162018-05-15 08:59:32 -070073 "libartbased",
Colin Crossc7376e02016-09-08 12:52:18 -070074 "libartd-compiler",
75 ],
76}
Colin Cross6e95dd52016-09-12 15:37:10 -070077
78art_cc_test {
79 name: "art_imgdiag_tests",
80 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -070081 "art_gtest_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -070082 ],
83 srcs: ["imgdiag_test.cc"],
84}