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 | |
Bob Badour | 9150de6 | 2021-02-26 03:22:24 -0800 | [diff] [blame] | 17 | package { |
| 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 | |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 26 | cc_library_headers { |
| 27 | name: "libart_simulator_headers", |
| 28 | host_supported: true, |
| 29 | export_include_dirs: ["include"], |
| 30 | } |
| 31 | |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 32 | cc_defaults { |
| 33 | name: "libart_simulator_defaults", |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 34 | host_supported: true, |
Ulya Trafimovich | c42dfac | 2020-07-17 14:33:02 +0100 | [diff] [blame] | 35 | device_supported: false, |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 36 | |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 37 | defaults: ["art_defaults"], |
| 38 | srcs: [ |
| 39 | "code_simulator.cc", |
| 40 | "code_simulator_arm64.cc", |
| 41 | ], |
| 42 | shared_libs: [ |
Andreas Gampe | 6e17410 | 2016-09-26 20:17:42 -0700 | [diff] [blame] | 43 | "libbase", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 44 | "liblog", |
| 45 | ], |
| 46 | cflags: ["-DVIXL_INCLUDE_SIMULATOR_AARCH64"], |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 47 | |
Ulya Trafimovich | 5439f05 | 2020-07-29 10:03:46 +0100 | [diff] [blame] | 48 | header_libs: ["libart_simulator_headers"], |
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", |
Vladimir Marko | 053e138 | 2021-05-05 16:07:27 +0000 | [diff] [blame] | 57 | ], |
| 58 | static_libs: [ |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 59 | "libvixl", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 60 | ], |
| 61 | } |
| 62 | |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 63 | art_cc_library { |
Colin Cross | 95aab05 | 2016-08-30 15:45:06 -0700 | [diff] [blame] | 64 | name: "libartd-simulator", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 65 | defaults: [ |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 66 | "art_debug_defaults", |
Colin Cross | c564406 | 2016-08-30 15:41:08 -0700 | [diff] [blame] | 67 | "libart_simulator_defaults", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 68 | ], |
| 69 | shared_libs: [ |
| 70 | "libartd", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 71 | "libartbased", |
Vladimir Marko | 053e138 | 2021-05-05 16:07:27 +0000 | [diff] [blame] | 72 | ], |
| 73 | static_libs: [ |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 74 | "libvixld", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 75 | ], |
| 76 | } |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 77 | |
| 78 | cc_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 | ], |
Ulya Trafimovich | 5439f05 | 2020-07-29 10:03:46 +0100 | [diff] [blame] | 89 | |
| 90 | header_libs: ["libart_simulator_headers"], |
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", |
Ulya Trafimovich | 5439f05 | 2020-07-29 10:03:46 +0100 | [diff] [blame] | 99 | "libart", |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 100 | ], |
| 101 | } |
| 102 | |
| 103 | art_cc_library { |
| 104 | name: "libartd-simulator-container", |
| 105 | defaults: [ |
| 106 | "art_debug_defaults", |
| 107 | "libart_simulator_container_defaults", |
| 108 | ], |
| 109 | shared_libs: [ |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 110 | "libartbased", |
Ulya Trafimovich | 5439f05 | 2020-07-29 10:03:46 +0100 | [diff] [blame] | 111 | "libartd", |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 112 | ], |
Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 113 | apex_available: [ |
| 114 | "com.android.art.debug", |
| 115 | ], |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 116 | } |