Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2012 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 | |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 26 | art_cc_defaults { |
| 27 | name: "libart-disassembler-defaults", |
| 28 | defaults: ["art_defaults"], |
| 29 | host_supported: true, |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 30 | srcs: [ |
| 31 | "disassembler.cc", |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 32 | ], |
Roland Levillain | 5725e7c | 2018-11-06 13:31:48 +0000 | [diff] [blame] | 33 | codegen: { |
| 34 | arm: { |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 35 | srcs: ["disassembler_arm.cc"], |
Roland Levillain | 5725e7c | 2018-11-06 13:31:48 +0000 | [diff] [blame] | 36 | }, |
| 37 | arm64: { |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 38 | srcs: ["disassembler_arm64.cc"], |
Roland Levillain | 5725e7c | 2018-11-06 13:31:48 +0000 | [diff] [blame] | 39 | }, |
Roland Levillain | 084fc28 | 2019-08-05 18:16:03 +0100 | [diff] [blame] | 40 | x86: { |
| 41 | srcs: ["disassembler_x86.cc"], |
| 42 | }, |
| 43 | x86_64: { |
| 44 | srcs: ["disassembler_x86.cc"], |
| 45 | }, |
Roland Levillain | 5725e7c | 2018-11-06 13:31:48 +0000 | [diff] [blame] | 46 | }, |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 47 | shared_libs: [ |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 48 | "libbase", |
| 49 | ], |
David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 50 | header_libs: [ |
Martin Stjernholm | dc7f139 | 2021-11-03 18:05:33 +0000 | [diff] [blame] | 51 | "libart_headers", |
David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 52 | ], |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 53 | export_include_dirs: ["."], |
| 54 | } |
| 55 | |
| 56 | art_cc_library { |
| 57 | name: "libart-disassembler", |
| 58 | defaults: ["libart-disassembler-defaults"], |
Vladimir Marko | 053e138 | 2021-05-05 16:07:27 +0000 | [diff] [blame] | 59 | codegen: { |
| 60 | arm: { |
| 61 | static_libs: [ |
| 62 | // For disassembler_arm*. |
| 63 | "libvixl", |
| 64 | ], |
| 65 | }, |
| 66 | arm64: { |
| 67 | static_libs: [ |
| 68 | // For disassembler_arm*. |
| 69 | "libvixl", |
| 70 | ], |
| 71 | }, |
| 72 | }, |
Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 73 | apex_available: [ |
Martin Stjernholm | 3e9abfc | 2020-10-09 22:17:51 +0100 | [diff] [blame] | 74 | "com.android.art", |
Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 75 | "com.android.art.debug", |
| 76 | ], |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 77 | } |
| 78 | |
Martin Stjernholm | 4074687 | 2020-09-29 13:58:10 +0100 | [diff] [blame] | 79 | cc_defaults { |
| 80 | name: "libart-disassembler_static_defaults", |
| 81 | whole_static_libs: [ |
| 82 | "libart-disassembler", |
| 83 | "libvixl", |
| 84 | ], |
| 85 | } |
| 86 | |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 87 | art_cc_library { |
| 88 | name: "libartd-disassembler", |
| 89 | defaults: [ |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 90 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 91 | "libart-disassembler-defaults", |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 92 | ], |
Vladimir Marko | 053e138 | 2021-05-05 16:07:27 +0000 | [diff] [blame] | 93 | codegen: { |
| 94 | arm: { |
| 95 | static_libs: [ |
| 96 | // For disassembler_arm*. |
| 97 | "libvixld", |
| 98 | ], |
| 99 | }, |
| 100 | arm64: { |
| 101 | static_libs: [ |
| 102 | // For disassembler_arm*. |
| 103 | "libvixld", |
| 104 | ], |
| 105 | }, |
| 106 | }, |
Jiyong Park | 71f661c | 2020-04-28 18:20:43 +0900 | [diff] [blame] | 107 | |
| 108 | apex_available: [ |
Martin Stjernholm | 3e9abfc | 2020-10-09 22:17:51 +0100 | [diff] [blame] | 109 | "com.android.art", |
Jiyong Park | 71f661c | 2020-04-28 18:20:43 +0900 | [diff] [blame] | 110 | "com.android.art.debug", |
| 111 | ], |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 112 | } |
Paul Duffin | 4345aac | 2019-07-17 15:51:54 +0100 | [diff] [blame] | 113 | |
Martin Stjernholm | 4074687 | 2020-09-29 13:58:10 +0100 | [diff] [blame] | 114 | cc_defaults { |
| 115 | name: "libartd-disassembler_static_defaults", |
| 116 | whole_static_libs: [ |
| 117 | "libartd-disassembler", |
| 118 | "libvixld", |
| 119 | ], |
| 120 | } |
| 121 | |
Paul Duffin | 4345aac | 2019-07-17 15:51:54 +0100 | [diff] [blame] | 122 | cc_library_headers { |
| 123 | name: "art_disassembler_headers", |
Martin Stjernholm | e10abe7 | 2021-10-28 03:49:55 +0100 | [diff] [blame] | 124 | defaults: ["art_defaults"], |
Paul Duffin | 4345aac | 2019-07-17 15:51:54 +0100 | [diff] [blame] | 125 | host_supported: true, |
| 126 | export_include_dirs: [ |
| 127 | ".", |
| 128 | ], |
Jiyong Park | 71f661c | 2020-04-28 18:20:43 +0900 | [diff] [blame] | 129 | |
| 130 | apex_available: [ |
| 131 | "com.android.art.debug", |
Martin Stjernholm | 3e9abfc | 2020-10-09 22:17:51 +0100 | [diff] [blame] | 132 | "com.android.art", |
Jiyong Park | 71f661c | 2020-04-28 18:20:43 +0900 | [diff] [blame] | 133 | ], |
Paul Duffin | 4345aac | 2019-07-17 15:51:54 +0100 | [diff] [blame] | 134 | } |