blob: 3e4f06f2b4b9a69f3691937107b6c66433a4f340 [file] [log] [blame]
Calin Juravle36eb3132017-01-13 16:32:38 -08001//
2// Copyright (C) 2017 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
17cc_defaults {
18 name: "dexoptanalyzer-defaults",
19 host_supported: true,
20 defaults: ["art_defaults"],
21 srcs: [
22 "dexoptanalyzer.cc",
23 ],
24
25 target: {
26 android: {
Roland Levillain38a938e2018-09-21 10:55:51 +010027 // Use the 32-bit version of dexoptanalyzer on devices.
Calin Juravle36eb3132017-01-13 16:32:38 -080028 compile_multilib: "prefer32",
29 },
30 },
31
Calin Juravle36eb3132017-01-13 16:32:38 -080032 shared_libs: [
33 "libbase",
34 ],
35}
36
37art_cc_binary {
38 name: "dexoptanalyzer",
39 defaults: ["dexoptanalyzer-defaults"],
40 shared_libs: [
41 "libart",
David Sehr1f010162018-05-15 08:59:32 -070042 "libartbase",
Calin Juravle36eb3132017-01-13 16:32:38 -080043 ],
Jiyong Park066dd9022019-12-19 02:11:59 +000044 apex_available: [
Martin Stjernholm3e9abfc2020-10-09 22:17:51 +010045 "com.android.art",
Jiyong Park066dd9022019-12-19 02:11:59 +000046 "com.android.art.debug",
47 ],
Calin Juravle36eb3132017-01-13 16:32:38 -080048}
49
50art_cc_binary {
51 name: "dexoptanalyzerd",
52 defaults: [
Calin Juravle36eb3132017-01-13 16:32:38 -080053 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -070054 "dexoptanalyzer-defaults",
Calin Juravle36eb3132017-01-13 16:32:38 -080055 ],
56 shared_libs: [
57 "libartd",
David Sehr1f010162018-05-15 08:59:32 -070058 "libartbased",
Calin Juravle36eb3132017-01-13 16:32:38 -080059 ],
Jiyong Park066dd9022019-12-19 02:11:59 +000060 apex_available: [
61 "com.android.art.debug",
62 ],
Calin Juravle36eb3132017-01-13 16:32:38 -080063}
64
65art_cc_test {
66 name: "art_dexoptanalyzer_tests",
67 defaults: [
68 "art_gtest_defaults",
69 ],
70 shared_libs: [
Dan Willemsen2ca27802017-09-27 14:57:43 -070071 "libbacktrace",
Calin Juravle36eb3132017-01-13 16:32:38 -080072 ],
David Srbecky4a88a5a2020-05-05 16:21:57 +010073 data: [
74 ":art-gtest-jars-LinkageTest",
75 ":art-gtest-jars-Main",
76 ":art-gtest-jars-MainStripped",
77 ":art-gtest-jars-MultiDex",
78 ":art-gtest-jars-MultiDexModifiedSecondary",
79 ":art-gtest-jars-MyClassNatives",
80 ":art-gtest-jars-Nested",
81 ":art-gtest-jars-VerifierDeps",
82 ":art-gtest-jars-VerifierDepsMulti",
83 ],
Calin Juravle36eb3132017-01-13 16:32:38 -080084 srcs: ["dexoptanalyzer_test.cc"],
Yo Chiang169dfb42020-08-07 04:22:18 +000085 target: {
86 host: {
87 required: [
88 "dex2oatd",
89 "dexoptanalyzerd",
90 ],
91 },
92 },
Calin Juravle36eb3132017-01-13 16:32:38 -080093}