Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2011 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 | cc_defaults { |
| 18 | name: "oatdump-defaults", |
| 19 | defaults: ["art_defaults"], |
| 20 | host_supported: true, |
| 21 | srcs: ["oatdump.cc"], |
| 22 | target: { |
| 23 | android: { |
| 24 | shared_libs: ["libcutils"], |
| 25 | }, |
| 26 | }, |
| 27 | include_dirs: ["art/cmdline"], |
| 28 | } |
| 29 | |
| 30 | art_cc_binary { |
| 31 | name: "oatdump", |
| 32 | defaults: ["oatdump-defaults"], |
| 33 | shared_libs: [ |
| 34 | "libart", |
| 35 | "libart-compiler", |
| 36 | "libart-disassembler", |
| 37 | ], |
| 38 | } |
| 39 | |
| 40 | art_cc_binary { |
| 41 | name: "oatdumpd", |
| 42 | defaults: [ |
| 43 | "art_debug_defaults", |
| 44 | "oatdump-defaults", |
| 45 | ], |
| 46 | shared_libs: [ |
| 47 | "libartd", |
| 48 | "libartd-compiler", |
| 49 | "libartd-disassembler", |
| 50 | ], |
| 51 | } |
| 52 | |
| 53 | art_cc_binary { |
| 54 | name: "oatdumps", |
| 55 | defaults: ["oatdump-defaults"], |
Colin Cross | d2c2080 | 2016-09-19 12:57:18 -0700 | [diff] [blame^] | 56 | device_supported: false, |
Colin Cross | 8dd9068 | 2016-09-08 16:43:27 -0700 | [diff] [blame] | 57 | target: { |
| 58 | darwin: { |
| 59 | enabled: false, |
| 60 | }, |
| 61 | }, |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 62 | static_libs: [ |
| 63 | "libart", |
| 64 | "libart-compiler", |
| 65 | "libart-disassembler", |
| 66 | "libvixl-arm", |
| 67 | "libvixl-arm64", |
| 68 | ] + art_static_dependencies, |
| 69 | } |
| 70 | |
| 71 | art_cc_binary { |
| 72 | name: "oatdumpds", |
| 73 | defaults: [ |
| 74 | "art_debug_defaults", |
| 75 | "oatdump-defaults", |
| 76 | ], |
Colin Cross | d2c2080 | 2016-09-19 12:57:18 -0700 | [diff] [blame^] | 77 | device_supported: false, |
Colin Cross | 8dd9068 | 2016-09-08 16:43:27 -0700 | [diff] [blame] | 78 | target: { |
| 79 | darwin: { |
| 80 | enabled: false, |
| 81 | }, |
| 82 | }, |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 83 | static_libs: [ |
| 84 | "libartd", |
| 85 | "libartd-compiler", |
| 86 | "libartd-disassembler", |
| 87 | "libvixld-arm", |
| 88 | "libvixld-arm64", |
| 89 | ] + art_static_dependencies, |
| 90 | } |
| 91 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 92 | art_cc_test { |
| 93 | name: "art_oatdump_tests", |
| 94 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 95 | "art_gtest_defaults", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 96 | ], |
| 97 | srcs: ["oatdump_test.cc"], |
| 98 | } |