blob: 1e37b8d8d56378b7dd6134db55fdffc53d37b330 [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
Bob Badour9150de62021-02-26 03:22:24 -080017package {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "art_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["art_license"],
24}
25
Calin Juravle36eb3132017-01-13 16:32:38 -080026cc_defaults {
27 name: "dexoptanalyzer-defaults",
28 host_supported: true,
29 defaults: ["art_defaults"],
30 srcs: [
31 "dexoptanalyzer.cc",
32 ],
33
34 target: {
35 android: {
Orion Hodson0e858532021-08-02 21:16:05 +010036 compile_multilib: "first",
Calin Juravle36eb3132017-01-13 16:32:38 -080037 },
38 },
39
Calin Juravle36eb3132017-01-13 16:32:38 -080040 shared_libs: [
41 "libbase",
42 ],
43}
44
Orion Hodson60e29742021-02-10 14:02:02 +000045cc_library_headers {
46 name: "dexoptanalyzer_headers",
Martin Stjernholme10abe72021-10-28 03:49:55 +010047 defaults: ["art_defaults"],
Orion Hodson60e29742021-02-10 14:02:02 +000048 export_include_dirs: ["."],
49 host_supported: true,
50 apex_available: [
51 "com.android.art.debug",
52 "com.android.art",
53 ],
54}
55
Calin Juravle36eb3132017-01-13 16:32:38 -080056art_cc_binary {
57 name: "dexoptanalyzer",
58 defaults: ["dexoptanalyzer-defaults"],
59 shared_libs: [
60 "libart",
David Sehr1f010162018-05-15 08:59:32 -070061 "libartbase",
Calin Juravle36eb3132017-01-13 16:32:38 -080062 ],
Jiyong Park066dd9022019-12-19 02:11:59 +000063 apex_available: [
Martin Stjernholm3e9abfc2020-10-09 22:17:51 +010064 "com.android.art",
Jiyong Park066dd9022019-12-19 02:11:59 +000065 "com.android.art.debug",
66 ],
Calin Juravle36eb3132017-01-13 16:32:38 -080067}
68
69art_cc_binary {
70 name: "dexoptanalyzerd",
71 defaults: [
Calin Juravle36eb3132017-01-13 16:32:38 -080072 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -070073 "dexoptanalyzer-defaults",
Calin Juravle36eb3132017-01-13 16:32:38 -080074 ],
75 shared_libs: [
76 "libartd",
David Sehr1f010162018-05-15 08:59:32 -070077 "libartbased",
Calin Juravle36eb3132017-01-13 16:32:38 -080078 ],
Jiyong Park066dd9022019-12-19 02:11:59 +000079 apex_available: [
80 "com.android.art.debug",
81 ],
Calin Juravle36eb3132017-01-13 16:32:38 -080082}
83
Roland Levillainf0409142021-03-22 15:45:03 +000084art_cc_defaults {
85 name: "art_dexoptanalyzer_tests_defaults",
Calin Juravle36eb3132017-01-13 16:32:38 -080086 shared_libs: [
Dan Willemsen2ca27802017-09-27 14:57:43 -070087 "libbacktrace",
Calin Juravle36eb3132017-01-13 16:32:38 -080088 ],
David Srbecky4a88a5a2020-05-05 16:21:57 +010089 data: [
90 ":art-gtest-jars-LinkageTest",
91 ":art-gtest-jars-Main",
92 ":art-gtest-jars-MainStripped",
93 ":art-gtest-jars-MultiDex",
94 ":art-gtest-jars-MultiDexModifiedSecondary",
95 ":art-gtest-jars-MyClassNatives",
96 ":art-gtest-jars-Nested",
97 ":art-gtest-jars-VerifierDeps",
98 ":art-gtest-jars-VerifierDepsMulti",
99 ],
Calin Juravle36eb3132017-01-13 16:32:38 -0800100 srcs: ["dexoptanalyzer_test.cc"],
Yo Chiang169dfb42020-08-07 04:22:18 +0000101 target: {
102 host: {
103 required: [
104 "dex2oatd",
105 "dexoptanalyzerd",
106 ],
107 },
108 },
Calin Juravle36eb3132017-01-13 16:32:38 -0800109}
Roland Levillainf0409142021-03-22 15:45:03 +0000110
111// Version of ART gtest `art_dexoptanalyzer_tests` bundled with the ART APEX on target.
112// TODO(b/192274705): Remove this module when the migration to standalone ART gtests is complete.
113art_cc_test {
114 name: "art_dexoptanalyzer_tests",
115 defaults: [
116 "art_gtest_defaults",
117 "art_dexoptanalyzer_tests_defaults",
118 ],
119}
120
121// Standalone version of ART gtest `art_dexoptanalyzer_tests`, not bundled with the ART APEX on
122// target.
123art_cc_test {
124 name: "art_standalone_dexoptanalyzer_tests",
125 defaults: [
126 "art_standalone_gtest_defaults",
127 "art_dexoptanalyzer_tests_defaults",
128 ],
Jiakai Zhangd539f862022-02-08 14:56:05 +0000129 data: [":generate-boot-image"],
Roland Levillainf0409142021-03-22 15:45:03 +0000130 test_config_template: "art_standalone_dexoptanalyzer_tests.xml",
131}