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"], |
| 21 | } |
| 22 | |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 23 | cc_defaults { |
| 24 | name: "libart_simulator_defaults", |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 25 | host_supported: true, |
| 26 | device_supported: false, |
| 27 | |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 28 | defaults: ["art_defaults"], |
| 29 | srcs: [ |
| 30 | "code_simulator.cc", |
| 31 | "code_simulator_arm64.cc", |
| 32 | ], |
| 33 | shared_libs: [ |
Andreas Gampe | 6e17410 | 2016-09-26 20:17:42 -0700 | [diff] [blame] | 34 | "libbase", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 35 | "liblog", |
| 36 | ], |
| 37 | cflags: ["-DVIXL_INCLUDE_SIMULATOR_AARCH64"], |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 38 | |
| 39 | header_libs: ["libart_simulator_headers"], |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 40 | } |
| 41 | |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 42 | art_cc_library { |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 43 | name: "libart-simulator", |
| 44 | defaults: ["libart_simulator_defaults"], |
| 45 | shared_libs: [ |
| 46 | "libart", |
| 47 | "libvixl-arm64", |
| 48 | ], |
| 49 | } |
| 50 | |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 51 | art_cc_library { |
Colin Cross | 95aab05 | 2016-08-30 15:45:06 -0700 | [diff] [blame] | 52 | name: "libartd-simulator", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 53 | defaults: [ |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 54 | "art_debug_defaults", |
Colin Cross | c564406 | 2016-08-30 15:41:08 -0700 | [diff] [blame] | 55 | "libart_simulator_defaults", |
Colin Cross | 1f7f3bd | 2016-07-27 10:12:38 -0700 | [diff] [blame] | 56 | ], |
| 57 | shared_libs: [ |
| 58 | "libartd", |
| 59 | "libvixld-arm64", |
| 60 | ], |
| 61 | } |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 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"], |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 76 | export_include_dirs: ["."], // TODO: Consider a proper separation. |
Andreas Gampe | 71da487 | 2017-07-26 10:02:07 -0700 | [diff] [blame] | 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 | } |