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 | |
| 17 | art_cc_defaults { |
| 18 | name: "libart-disassembler-defaults", |
| 19 | defaults: ["art_defaults"], |
| 20 | host_supported: true, |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 21 | srcs: [ |
| 22 | "disassembler.cc", |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 23 | ], |
Roland Levillain | 5725e7c | 2018-11-06 13:31:48 +0000 | [diff] [blame] | 24 | codegen: { |
| 25 | arm: { |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 26 | srcs: ["disassembler_arm.cc"], |
Roland Levillain | 5725e7c | 2018-11-06 13:31:48 +0000 | [diff] [blame] | 27 | }, |
| 28 | arm64: { |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 29 | srcs: ["disassembler_arm64.cc"], |
Roland Levillain | 5725e7c | 2018-11-06 13:31:48 +0000 | [diff] [blame] | 30 | }, |
Roland Levillain | 084fc28 | 2019-08-05 18:16:03 +0100 | [diff] [blame] | 31 | mips: { |
| 32 | srcs: ["disassembler_mips.cc"], |
| 33 | }, |
| 34 | mips64: { |
| 35 | srcs: ["disassembler_mips.cc"], |
| 36 | }, |
| 37 | x86: { |
| 38 | srcs: ["disassembler_x86.cc"], |
| 39 | }, |
| 40 | x86_64: { |
| 41 | srcs: ["disassembler_x86.cc"], |
| 42 | }, |
Roland Levillain | 5725e7c | 2018-11-06 13:31:48 +0000 | [diff] [blame] | 43 | }, |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 44 | shared_libs: [ |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 45 | "libbase", |
| 46 | ], |
David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 47 | header_libs: [ |
| 48 | "art_libartbase_headers", |
Paul Duffin | 4345aac | 2019-07-17 15:51:54 +0100 | [diff] [blame] | 49 | "libart_runtime_headers_ndk", |
David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 50 | ], |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 51 | export_include_dirs: ["."], |
| 52 | } |
| 53 | |
| 54 | art_cc_library { |
| 55 | name: "libart-disassembler", |
| 56 | defaults: ["libart-disassembler-defaults"], |
| 57 | shared_libs: [ |
Anton Kirilov | 29b0cde | 2016-09-06 13:01:03 +0100 | [diff] [blame] | 58 | // For disassembler_arm*. |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 59 | "libvixl", |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 60 | ], |
| 61 | } |
| 62 | |
| 63 | art_cc_library { |
| 64 | name: "libartd-disassembler", |
| 65 | defaults: [ |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 66 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 67 | "libart-disassembler-defaults", |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 68 | ], |
| 69 | shared_libs: [ |
Anton Kirilov | 29b0cde | 2016-09-06 13:01:03 +0100 | [diff] [blame] | 70 | // For disassembler_arm*. |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 71 | "libvixld", |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 72 | ], |
| 73 | } |
Paul Duffin | 4345aac | 2019-07-17 15:51:54 +0100 | [diff] [blame] | 74 | |
| 75 | cc_library_headers { |
| 76 | name: "art_disassembler_headers", |
| 77 | host_supported: true, |
| 78 | export_include_dirs: [ |
| 79 | ".", |
| 80 | ], |
| 81 | } |