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 17 cc_library_headers { 18 name: "libart_simulator_headers", 19 host_supported: true, 20 export_include_dirs: ["include"], 21 } 22 23 cc_defaults { 24 name: "libart_simulator_defaults", 25 host_supported: true, 26 device_supported: false, 27 28 defaults: ["art_defaults"], 29 srcs: [ 30 "code_simulator.cc", 31 "code_simulator_arm64.cc", 32 ], 33 shared_libs: [ 34 "libbase", 35 "liblog", 36 ], 37 cflags: ["-DVIXL_INCLUDE_SIMULATOR_AARCH64"], 38 39 header_libs: ["libart_simulator_headers"], 40 } 41 42 art_cc_library { 43 name: "libart-simulator", 44 defaults: ["libart_simulator_defaults"], 45 shared_libs: [ 46 "libart", 47 "libvixl-arm64", 48 ], 49 } 50 51 art_cc_library { 52 name: "libartd-simulator", 53 defaults: [ 54 "art_debug_defaults", 55 "libart_simulator_defaults", 56 ], 57 shared_libs: [ 58 "libartd", 59 "libvixld-arm64", 60 ], 61 } 62 63 cc_defaults { 64 name: "libart_simulator_container_defaults", 65 host_supported: true, 66 67 defaults: ["art_defaults"], 68 srcs: [ 69 "code_simulator_container.cc", 70 ], 71 shared_libs: [ 72 "libbase", 73 ], 74 75 header_libs: ["libart_simulator_headers"], 76 export_include_dirs: ["."], // TODO: Consider a proper separation. 77 } 78 79 art_cc_library { 80 name: "libart-simulator-container", 81 defaults: ["libart_simulator_container_defaults"], 82 shared_libs: [ 83 "libart", 84 ], 85 } 86 87 art_cc_library { 88 name: "libartd-simulator-container", 89 defaults: [ 90 "art_debug_defaults", 91 "libart_simulator_container_defaults", 92 ], 93 shared_libs: [ 94 "libartd", 95 ], 96 } 97