• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// 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
15package {
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    default_team: "trendy_team_art_performance",
23}
24
25art_cc_binary {
26    name: "dexlist",
27    defaults: ["art_defaults"],
28    host_supported: true,
29    srcs: ["dexlist.cc"],
30    shared_libs: [
31        "libdexfile",
32        "libartbase",
33        "libbase",
34    ],
35    apex_available: [
36        "com.android.art",
37        "com.android.art.debug",
38        "test_broken_com.android.art",
39    ],
40}
41
42art_cc_binary {
43    name: "dexlists",
44    defaults: [
45        "art_defaults",
46        "libartbase_static_defaults",
47        "libdexfile_static_defaults",
48    ],
49    host_supported: true,
50    srcs: ["dexlist.cc"],
51    device_supported: false,
52    target: {
53        darwin: {
54            enabled: false,
55        },
56        windows: {
57            enabled: true,
58        },
59    },
60}
61
62art_cc_defaults {
63    name: "art_dexlist_tests_defaults",
64    srcs: ["dexlist_test.cc"],
65    target: {
66        host: {
67            required: ["dexlist"],
68        },
69    },
70}
71
72// Version of ART gtest `art_dexlist_tests` bundled with the ART APEX on target.
73// TODO(b/192274705): Remove this module when the migration to standalone ART gtests is complete.
74art_cc_test {
75    name: "art_dexlist_tests",
76    defaults: [
77        "art_gtest_defaults",
78        "art_dexlist_tests_defaults",
79    ],
80}
81
82// Standalone version of ART gtest `art_dexlist_tests`, not bundled with the ART APEX on target.
83art_cc_test {
84    name: "art_standalone_dexlist_tests",
85    defaults: [
86        "art_standalone_gtest_defaults",
87        "art_dexlist_tests_defaults",
88    ],
89    data: [":generate-boot-image"],
90    test_config_template: ":art-gtests-target-standalone-with-boot-image-template",
91}
92