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} 43 44art_cc_binary { 45 name: "dexopt_chroot_setup", 46 defaults: ["dexopt_chroot_setup_defaults"], 47 srcs: [ 48 "dexopt_chroot_setup_main.cc", 49 ], 50 shared_libs: [ 51 "libart", 52 "libartbase", 53 "libarttools", 54 "libbase", 55 ], 56 apex_available: [ 57 "com.android.art", 58 "com.android.art.debug", 59 ], 60} 61 62// This test only has the standalone version. A bundled test runs on host and in 63// chroot, neither of which is suitable for this test because this test sets up 64// a real chroot environment. In contrast, a standalone test runs on device by 65// tradefed and atest locally. 66art_cc_test { 67 name: "art_standalone_dexopt_chroot_setup_tests", 68 defaults: [ 69 "art_standalone_gtest_defaults", 70 "dexopt_chroot_setup_defaults", 71 ], 72 srcs: [ 73 "dexopt_chroot_setup_test.cc", 74 ], 75 data: [ 76 ":art-gtest-jars-Main", 77 ], 78 static_libs: [ 79 "libarttools", 80 "libbase", 81 "libgmock", 82 "libselinux", 83 ], 84 test_config_template: "art_standalone_dexopt_chroot_setup_tests.xml", 85} 86 87cc_fuzz { 88 name: "dexopt_chroot_setup_fuzzer", 89 defaults: [ 90 "service_fuzzer_defaults", 91 "dexopt_chroot_setup_defaults", 92 ], 93 srcs: ["dexopt_chroot_setup_fuzzer.cc"], 94 shared_libs: [ 95 "libart", 96 "libartbase", 97 "liblog", 98 "libarttools", 99 ], 100 fuzz_config: { 101 cc: [ 102 "art-module-team@google.com", 103 ], 104 }, 105} 106