1*795d594fSAndroid Build Coastguard Worker// 2*795d594fSAndroid Build Coastguard Worker// Copyright (C) 2024 The Android Open Source Project 3*795d594fSAndroid Build Coastguard Worker// 4*795d594fSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 5*795d594fSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 6*795d594fSAndroid Build Coastguard Worker// You may obtain a copy of the License at 7*795d594fSAndroid Build Coastguard Worker// 8*795d594fSAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 9*795d594fSAndroid Build Coastguard Worker// 10*795d594fSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 11*795d594fSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 12*795d594fSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*795d594fSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 14*795d594fSAndroid Build Coastguard Worker// limitations under the License. 15*795d594fSAndroid Build Coastguard Worker 16*795d594fSAndroid Build Coastguard Workerpackage { 17*795d594fSAndroid Build Coastguard Worker // See: http://go/android-license-faq 18*795d594fSAndroid Build Coastguard Worker // A large-scale-change added 'default_applicable_licenses' to import 19*795d594fSAndroid Build Coastguard Worker // all of the 'license_kinds' from "art_license" 20*795d594fSAndroid Build Coastguard Worker // to get the below license kinds: 21*795d594fSAndroid Build Coastguard Worker // SPDX-license-identifier-Apache-2.0 22*795d594fSAndroid Build Coastguard Worker default_applicable_licenses: ["art_license"], 23*795d594fSAndroid Build Coastguard Worker default_team: "trendy_team_art_mainline", 24*795d594fSAndroid Build Coastguard Worker} 25*795d594fSAndroid Build Coastguard Worker 26*795d594fSAndroid Build Coastguard Workercc_defaults { 27*795d594fSAndroid Build Coastguard Worker name: "dexopt_chroot_setup_defaults", 28*795d594fSAndroid Build Coastguard Worker defaults: ["art_defaults"], 29*795d594fSAndroid Build Coastguard Worker srcs: [ 30*795d594fSAndroid Build Coastguard Worker "dexopt_chroot_setup.cc", 31*795d594fSAndroid Build Coastguard Worker ], 32*795d594fSAndroid Build Coastguard Worker header_libs: [ 33*795d594fSAndroid Build Coastguard Worker "libarttools_binder_utils", 34*795d594fSAndroid Build Coastguard Worker ], 35*795d594fSAndroid Build Coastguard Worker shared_libs: [ 36*795d594fSAndroid Build Coastguard Worker "libbinder_ndk", 37*795d594fSAndroid Build Coastguard Worker ], 38*795d594fSAndroid Build Coastguard Worker static_libs: [ 39*795d594fSAndroid Build Coastguard Worker "dexopt_chroot_setup-aidl-ndk", 40*795d594fSAndroid Build Coastguard Worker "libfstab", 41*795d594fSAndroid Build Coastguard Worker ], 42*795d594fSAndroid Build Coastguard Worker target: { 43*795d594fSAndroid Build Coastguard Worker android: { 44*795d594fSAndroid Build Coastguard Worker compile_multilib: "first", 45*795d594fSAndroid Build Coastguard Worker }, 46*795d594fSAndroid Build Coastguard Worker }, 47*795d594fSAndroid Build Coastguard Worker} 48*795d594fSAndroid Build Coastguard Worker 49*795d594fSAndroid Build Coastguard Workerart_cc_binary { 50*795d594fSAndroid Build Coastguard Worker name: "dexopt_chroot_setup", 51*795d594fSAndroid Build Coastguard Worker defaults: ["dexopt_chroot_setup_defaults"], 52*795d594fSAndroid Build Coastguard Worker srcs: [ 53*795d594fSAndroid Build Coastguard Worker "dexopt_chroot_setup_main.cc", 54*795d594fSAndroid Build Coastguard Worker ], 55*795d594fSAndroid Build Coastguard Worker shared_libs: [ 56*795d594fSAndroid Build Coastguard Worker "libart", 57*795d594fSAndroid Build Coastguard Worker "libartbase", 58*795d594fSAndroid Build Coastguard Worker "libarttools", 59*795d594fSAndroid Build Coastguard Worker "libbase", 60*795d594fSAndroid Build Coastguard Worker ], 61*795d594fSAndroid Build Coastguard Worker apex_available: [ 62*795d594fSAndroid Build Coastguard Worker "com.android.art", 63*795d594fSAndroid Build Coastguard Worker "com.android.art.debug", 64*795d594fSAndroid Build Coastguard Worker ], 65*795d594fSAndroid Build Coastguard Worker} 66*795d594fSAndroid Build Coastguard Worker 67*795d594fSAndroid Build Coastguard Worker// This test only has the standalone version. A bundled test runs on host and in 68*795d594fSAndroid Build Coastguard Worker// chroot, neither of which is suitable for this test because this test sets up 69*795d594fSAndroid Build Coastguard Worker// a real chroot environment. In contrast, a standalone test runs on device by 70*795d594fSAndroid Build Coastguard Worker// tradefed and atest locally. 71*795d594fSAndroid Build Coastguard Workerart_cc_test { 72*795d594fSAndroid Build Coastguard Worker name: "art_standalone_dexopt_chroot_setup_tests", 73*795d594fSAndroid Build Coastguard Worker defaults: [ 74*795d594fSAndroid Build Coastguard Worker "art_standalone_gtest_defaults", 75*795d594fSAndroid Build Coastguard Worker "dexopt_chroot_setup_defaults", 76*795d594fSAndroid Build Coastguard Worker ], 77*795d594fSAndroid Build Coastguard Worker srcs: [ 78*795d594fSAndroid Build Coastguard Worker "dexopt_chroot_setup_test.cc", 79*795d594fSAndroid Build Coastguard Worker ], 80*795d594fSAndroid Build Coastguard Worker data: [ 81*795d594fSAndroid Build Coastguard Worker ":art-gtest-jars-Main", 82*795d594fSAndroid Build Coastguard Worker ], 83*795d594fSAndroid Build Coastguard Worker static_libs: [ 84*795d594fSAndroid Build Coastguard Worker "libarttools", 85*795d594fSAndroid Build Coastguard Worker "libbase", 86*795d594fSAndroid Build Coastguard Worker "libgmock", 87*795d594fSAndroid Build Coastguard Worker ], 88*795d594fSAndroid Build Coastguard Worker test_config_template: "art_standalone_dexopt_chroot_setup_tests.xml", 89*795d594fSAndroid Build Coastguard Worker} 90*795d594fSAndroid Build Coastguard Worker 91*795d594fSAndroid Build Coastguard Workercc_fuzz { 92*795d594fSAndroid Build Coastguard Worker name: "dexopt_chroot_setup_fuzzer", 93*795d594fSAndroid Build Coastguard Worker defaults: [ 94*795d594fSAndroid Build Coastguard Worker "service_fuzzer_defaults", 95*795d594fSAndroid Build Coastguard Worker "dexopt_chroot_setup_defaults", 96*795d594fSAndroid Build Coastguard Worker ], 97*795d594fSAndroid Build Coastguard Worker srcs: ["dexopt_chroot_setup_fuzzer.cc"], 98*795d594fSAndroid Build Coastguard Worker shared_libs: [ 99*795d594fSAndroid Build Coastguard Worker "libart", 100*795d594fSAndroid Build Coastguard Worker "libartbase", 101*795d594fSAndroid Build Coastguard Worker "liblog", 102*795d594fSAndroid Build Coastguard Worker "libarttools", 103*795d594fSAndroid Build Coastguard Worker ], 104*795d594fSAndroid Build Coastguard Worker fuzz_config: { 105*795d594fSAndroid Build Coastguard Worker cc: [ 106*795d594fSAndroid Build Coastguard Worker "[email protected]", 107*795d594fSAndroid Build Coastguard Worker ], 108*795d594fSAndroid Build Coastguard Worker }, 109*795d594fSAndroid Build Coastguard Worker} 110