1// 2// Copyright (C) 2015 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// 16 17package { 18 // See: http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // all of the 'license_kinds' from "art_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 default_applicable_licenses: ["art_license"], 24} 25 26cc_library_headers { 27 name: "libart_simulator_headers", 28 host_supported: true, 29 export_include_dirs: ["include"], 30} 31 32cc_defaults { 33 name: "libart_simulator_defaults", 34 host_supported: true, 35 device_supported: false, 36 37 defaults: ["art_defaults"], 38 srcs: [ 39 "code_simulator.cc", 40 "code_simulator_arm64.cc", 41 ], 42 shared_libs: [ 43 "libbase", 44 "liblog", 45 ], 46 cflags: ["-DVIXL_INCLUDE_SIMULATOR_AARCH64"], 47 48 header_libs: ["libart_simulator_headers"], 49} 50 51art_cc_library { 52 name: "libart-simulator", 53 defaults: ["libart_simulator_defaults"], 54 shared_libs: [ 55 "libart", 56 "libartbase", 57 ], 58 static_libs: [ 59 "libvixl", 60 ], 61} 62 63art_cc_library { 64 name: "libartd-simulator", 65 defaults: [ 66 "art_debug_defaults", 67 "libart_simulator_defaults", 68 ], 69 shared_libs: [ 70 "libartd", 71 "libartbased", 72 ], 73 static_libs: [ 74 "libvixld", 75 ], 76} 77 78cc_defaults { 79 name: "libart_simulator_container_defaults", 80 host_supported: true, 81 82 defaults: ["art_defaults"], 83 srcs: [ 84 "code_simulator_container.cc", 85 ], 86 shared_libs: [ 87 "libbase", 88 ], 89 90 header_libs: ["libart_simulator_headers"], 91 export_include_dirs: ["."], // TODO: Consider a proper separation. 92} 93 94art_cc_library { 95 name: "libart-simulator-container", 96 defaults: ["libart_simulator_container_defaults"], 97 shared_libs: [ 98 "libartbase", 99 "libart", 100 ], 101} 102 103art_cc_library { 104 name: "libartd-simulator-container", 105 defaults: [ 106 "art_debug_defaults", 107 "libart_simulator_container_defaults", 108 ], 109 shared_libs: [ 110 "libartbased", 111 "libartd", 112 ], 113 apex_available: [ 114 "com.android.art.debug", 115 ], 116} 117