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