blob: 1e69bdcce74b1746f1d20f28d9b22a1979ed2455 [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
Colin Crossfe6064a2016-08-30 13:49:26 -070024art_cc_binary {
25 name: "dexlist",
Andreas Gampe70dfb692018-09-18 16:50:18 -070026 defaults: ["art_defaults"],
Colin Crossfe6064a2016-08-30 13:49:26 -070027 host_supported: true,
28 srcs: ["dexlist.cc"],
David Sehr1f010162018-05-15 08:59:32 -070029 shared_libs: [
30 "libdexfile",
31 "libartbase",
Andreas Gampe0dc93b12019-05-15 10:30:22 -070032 "libbase",
David Sehr1f010162018-05-15 08:59:32 -070033 ],
Jiyong Park066dd9022019-12-19 02:11:59 +000034 apex_available: [
Martin Stjernholm3e9abfc2020-10-09 22:17:51 +010035 "com.android.art",
Jiyong Park066dd9022019-12-19 02:11:59 +000036 "com.android.art.debug",
37 ],
Colin Crossfe6064a2016-08-30 13:49:26 -070038}
Colin Cross6e95dd52016-09-12 15:37:10 -070039
David Sehr9d9227a2018-12-19 12:32:50 -080040art_cc_binary {
41 name: "dexlists",
42 defaults: [
43 "art_defaults",
44 "libartbase_static_defaults",
45 "libdexfile_static_defaults",
46 ],
47 host_supported: true,
48 srcs: ["dexlist.cc"],
49 device_supported: false,
50 target: {
51 darwin: {
52 enabled: false,
53 },
54 windows: {
55 enabled: true,
56 },
57 },
58}
59
Roland Levillainf0409142021-03-22 15:45:03 +000060art_cc_defaults {
61 name: "art_dexlist_tests_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -070062 srcs: ["dexlist_test.cc"],
Yo Chiang169dfb42020-08-07 04:22:18 +000063 target: {
64 host: {
65 required: ["dexlist"],
66 },
67 },
Colin Cross6e95dd52016-09-12 15:37:10 -070068}
Roland Levillainf0409142021-03-22 15:45:03 +000069
70// Version of ART gtest `art_dexlist_tests` bundled with the ART APEX on target.
71// TODO(b/192274705): Remove this module when the migration to standalone ART gtests is complete.
72art_cc_test {
73 name: "art_dexlist_tests",
74 defaults: [
75 "art_gtest_defaults",
76 "art_dexlist_tests_defaults",
77 ],
78}
79
80// Standalone version of ART gtest `art_dexlist_tests`, not bundled with the ART APEX on target.
81art_cc_test {
82 name: "art_standalone_dexlist_tests",
83 defaults: [
84 "art_standalone_gtest_defaults",
85 "art_dexlist_tests_defaults",
86 ],
87}