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