1*795d594fSAndroid Build Coastguard Worker// Copyright (C) 2015 The Android Open Source Project 2*795d594fSAndroid Build Coastguard Worker// 3*795d594fSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*795d594fSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*795d594fSAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*795d594fSAndroid Build Coastguard Worker// 7*795d594fSAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*795d594fSAndroid Build Coastguard Worker// 9*795d594fSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*795d594fSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*795d594fSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*795d594fSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*795d594fSAndroid Build Coastguard Worker// limitations under the License. 14*795d594fSAndroid Build Coastguard Worker 15*795d594fSAndroid Build Coastguard Workerpackage { 16*795d594fSAndroid Build Coastguard Worker // See: http://go/android-license-faq 17*795d594fSAndroid Build Coastguard Worker // A large-scale-change added 'default_applicable_licenses' to import 18*795d594fSAndroid Build Coastguard Worker // all of the 'license_kinds' from "art_license" 19*795d594fSAndroid Build Coastguard Worker // to get the below license kinds: 20*795d594fSAndroid Build Coastguard Worker // SPDX-license-identifier-Apache-2.0 21*795d594fSAndroid Build Coastguard Worker default_applicable_licenses: ["art_license"], 22*795d594fSAndroid Build Coastguard Worker default_team: "trendy_team_art_performance", 23*795d594fSAndroid Build Coastguard Worker} 24*795d594fSAndroid Build Coastguard Worker 25*795d594fSAndroid Build Coastguard Workerart_cc_binary { 26*795d594fSAndroid Build Coastguard Worker name: "dexlist", 27*795d594fSAndroid Build Coastguard Worker defaults: ["art_defaults"], 28*795d594fSAndroid Build Coastguard Worker host_supported: true, 29*795d594fSAndroid Build Coastguard Worker srcs: ["dexlist.cc"], 30*795d594fSAndroid Build Coastguard Worker shared_libs: [ 31*795d594fSAndroid Build Coastguard Worker "libdexfile#impl", 32*795d594fSAndroid Build Coastguard Worker "libartbase", 33*795d594fSAndroid Build Coastguard Worker "libbase", 34*795d594fSAndroid Build Coastguard Worker ], 35*795d594fSAndroid Build Coastguard Worker apex_available: [ 36*795d594fSAndroid Build Coastguard Worker "com.android.art", 37*795d594fSAndroid Build Coastguard Worker "com.android.art.debug", 38*795d594fSAndroid Build Coastguard Worker "test_broken_com.android.art", 39*795d594fSAndroid Build Coastguard Worker ], 40*795d594fSAndroid Build Coastguard Worker} 41*795d594fSAndroid Build Coastguard Worker 42*795d594fSAndroid Build Coastguard Workerart_cc_binary { 43*795d594fSAndroid Build Coastguard Worker name: "dexlists", 44*795d594fSAndroid Build Coastguard Worker defaults: [ 45*795d594fSAndroid Build Coastguard Worker "art_defaults", 46*795d594fSAndroid Build Coastguard Worker "libartbase_static_defaults", 47*795d594fSAndroid Build Coastguard Worker "libdexfile_static_defaults", 48*795d594fSAndroid Build Coastguard Worker ], 49*795d594fSAndroid Build Coastguard Worker host_supported: true, 50*795d594fSAndroid Build Coastguard Worker srcs: ["dexlist.cc"], 51*795d594fSAndroid Build Coastguard Worker device_supported: false, 52*795d594fSAndroid Build Coastguard Worker target: { 53*795d594fSAndroid Build Coastguard Worker darwin: { 54*795d594fSAndroid Build Coastguard Worker enabled: false, 55*795d594fSAndroid Build Coastguard Worker }, 56*795d594fSAndroid Build Coastguard Worker windows: { 57*795d594fSAndroid Build Coastguard Worker enabled: true, 58*795d594fSAndroid Build Coastguard Worker }, 59*795d594fSAndroid Build Coastguard Worker }, 60*795d594fSAndroid Build Coastguard Worker} 61*795d594fSAndroid Build Coastguard Worker 62*795d594fSAndroid Build Coastguard Workerart_cc_defaults { 63*795d594fSAndroid Build Coastguard Worker name: "art_dexlist_tests_defaults", 64*795d594fSAndroid Build Coastguard Worker srcs: ["dexlist_test.cc"], 65*795d594fSAndroid Build Coastguard Worker target: { 66*795d594fSAndroid Build Coastguard Worker host: { 67*795d594fSAndroid Build Coastguard Worker required: ["dexlist"], 68*795d594fSAndroid Build Coastguard Worker }, 69*795d594fSAndroid Build Coastguard Worker }, 70*795d594fSAndroid Build Coastguard Worker} 71*795d594fSAndroid Build Coastguard Worker 72*795d594fSAndroid Build Coastguard Worker// Version of ART gtest `art_dexlist_tests` bundled with the ART APEX on target. 73*795d594fSAndroid Build Coastguard Worker// TODO(b/192274705): Remove this module when the migration to standalone ART gtests is complete. 74*795d594fSAndroid Build Coastguard Workerart_cc_test { 75*795d594fSAndroid Build Coastguard Worker name: "art_dexlist_tests", 76*795d594fSAndroid Build Coastguard Worker defaults: [ 77*795d594fSAndroid Build Coastguard Worker "art_gtest_defaults", 78*795d594fSAndroid Build Coastguard Worker "art_dexlist_tests_defaults", 79*795d594fSAndroid Build Coastguard Worker ], 80*795d594fSAndroid Build Coastguard Worker} 81*795d594fSAndroid Build Coastguard Worker 82*795d594fSAndroid Build Coastguard Worker// Standalone version of ART gtest `art_dexlist_tests`, not bundled with the ART APEX on target. 83*795d594fSAndroid Build Coastguard Workerart_cc_test { 84*795d594fSAndroid Build Coastguard Worker name: "art_standalone_dexlist_tests", 85*795d594fSAndroid Build Coastguard Worker defaults: [ 86*795d594fSAndroid Build Coastguard Worker "art_standalone_gtest_defaults", 87*795d594fSAndroid Build Coastguard Worker "art_dexlist_tests_defaults", 88*795d594fSAndroid Build Coastguard Worker ], 89*795d594fSAndroid Build Coastguard Worker data: [":generate-boot-image"], 90*795d594fSAndroid Build Coastguard Worker test_config_template: ":art-gtests-target-standalone-with-boot-image-template", 91*795d594fSAndroid Build Coastguard Worker} 92