Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 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 | |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 17 | cc_library_headers { |
| 18 | name: "libart_simulator_headers", |
| 19 | host_supported: true, |
| 20 | export_include_dirs: ["include"], |
Ulyana Trafimovich | e886d68 | 2020-07-16 15:09:38 +0000 | [diff] [blame] | 21 | apex_available: [ |
| 22 | "com.android.art.release", |
| 23 | "com.android.art.debug", |
| 24 | ], |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 25 | } |
| 26 | |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 27 | cc_defaults { |
| 28 | name: "libart_simulator_defaults", |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 29 | host_supported: true, |
Ulya Trafimovich | c42dfac | 2020-07-17 14:33:02 +0100 | [diff] [blame^] | 30 | device_supported: false, |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 31 | |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 32 | defaults: ["art_defaults"], |
| 33 | srcs: [ |
| 34 | "code_simulator.cc", |
| 35 | "code_simulator_arm64.cc", |
| 36 | ], |
| 37 | shared_libs: [ |
Andreas Gampe | 6e17410 | 2016-09-26 20:17:42 -0700 | [diff] [blame] | 38 | "libbase", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 39 | "liblog", |
| 40 | ], |
| 41 | cflags: ["-DVIXL_INCLUDE_SIMULATOR_AARCH64"], |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 42 | |
Ulyana Trafimovich | e886d68 | 2020-07-16 15:09:38 +0000 | [diff] [blame] | 43 | header_libs: [ |
| 44 | "jni_platform_headers", |
| 45 | "libdexfile_all_headers", |
| 46 | "libart_runtime_headers_ndk", |
| 47 | "libart_simulator_headers", |
| 48 | ], |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 49 | } |
| 50 | |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 51 | art_cc_library { |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 52 | name: "libart-simulator", |
| 53 | defaults: ["libart_simulator_defaults"], |
| 54 | shared_libs: [ |
| 55 | "libart", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 56 | "libartbase", |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 57 | "libvixl", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 58 | ], |
| 59 | } |
| 60 | |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 61 | art_cc_library { |
Colin Cross | 95aab05 | 2016-08-30 15:45:06 -0700 | [diff] [blame] | 62 | name: "libartd-simulator", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 63 | defaults: [ |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 64 | "art_debug_defaults", |
Colin Cross | c564406 | 2016-08-30 15:41:08 -0700 | [diff] [blame] | 65 | "libart_simulator_defaults", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 66 | ], |
| 67 | shared_libs: [ |
| 68 | "libartd", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 69 | "libartbased", |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 70 | "libvixld", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 71 | ], |
| 72 | } |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 73 | |
| 74 | cc_defaults { |
| 75 | name: "libart_simulator_container_defaults", |
| 76 | host_supported: true, |
| 77 | |
| 78 | defaults: ["art_defaults"], |
| 79 | srcs: [ |
| 80 | "code_simulator_container.cc", |
| 81 | ], |
| 82 | shared_libs: [ |
| 83 | "libbase", |
| 84 | ], |
Ulyana Trafimovich | e886d68 | 2020-07-16 15:09:38 +0000 | [diff] [blame] | 85 | header_libs: [ |
| 86 | "jni_platform_headers", |
| 87 | "libdexfile_all_headers", |
| 88 | "libart_runtime_headers_ndk", |
| 89 | "libart_simulator_headers", |
| 90 | ], |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 91 | export_include_dirs: ["."], // TODO: Consider a proper separation. |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | art_cc_library { |
| 95 | name: "libart-simulator-container", |
| 96 | defaults: ["libart_simulator_container_defaults"], |
| 97 | shared_libs: [ |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 98 | "libartbase", |
Ulyana Trafimovich | e886d68 | 2020-07-16 15:09:38 +0000 | [diff] [blame] | 99 | ], |
| 100 | apex_available: [ |
| 101 | "com.android.art.release", |
| 102 | "com.android.art.debug", |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 103 | ], |
| 104 | } |
| 105 | |
| 106 | art_cc_library { |
| 107 | name: "libartd-simulator-container", |
| 108 | defaults: [ |
| 109 | "art_debug_defaults", |
| 110 | "libart_simulator_container_defaults", |
| 111 | ], |
| 112 | shared_libs: [ |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 113 | "libartbased", |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 114 | ], |
Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 115 | apex_available: [ |
| 116 | "com.android.art.debug", |
| 117 | ], |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 118 | } |