Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 1 | // Copyright (C) 2015 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
David Sehr | 5a1f629 | 2018-01-19 11:08:51 -0800 | [diff] [blame] | 15 | cc_defaults { |
| 16 | name: "dexdump_defaults", |
Andreas Gampe | 70dfb69 | 2018-09-18 16:50:18 -0700 | [diff] [blame] | 17 | defaults: ["art_defaults"], |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 18 | srcs: [ |
David Sehr | caacd11 | 2016-10-20 16:27:02 -0700 | [diff] [blame] | 19 | "dexdump_cfg.cc", |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 20 | "dexdump_main.cc", |
| 21 | "dexdump.cc", |
| 22 | ], |
David Sehr | 5a1f629 | 2018-01-19 11:08:51 -0800 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | art_cc_binary { |
David Sehr | 4f215d1 | 2019-04-03 09:28:21 -0700 | [diff] [blame] | 26 | name: "dexdump", |
David Sehr | 5a1f629 | 2018-01-19 11:08:51 -0800 | [diff] [blame] | 27 | defaults: ["dexdump_defaults"], |
| 28 | host_supported: true, |
Colin Cross | a9c0532 | 2017-10-19 10:25:42 -0700 | [diff] [blame] | 29 | target: { |
Orion Hodson | 520a436 | 2019-04-18 09:34:45 +0100 | [diff] [blame] | 30 | android: { |
| 31 | shared_libs: [ |
| 32 | "libdexfile", |
| 33 | "libartbase", |
| 34 | "libbase", |
| 35 | ], |
| 36 | }, |
| 37 | // Use static libs on host: required for Windows build and |
| 38 | // static_sdk_tools build. |
| 39 | host: { |
David Sehr | 10db8fe | 2018-07-18 11:01:20 -0700 | [diff] [blame] | 40 | enabled: true, |
David Sehr | 4f215d1 | 2019-04-03 09:28:21 -0700 | [diff] [blame] | 41 | static_libs: [ |
| 42 | "libdexfile", |
| 43 | "libartbase", |
| 44 | "libbase", |
| 45 | "libartpalette", |
| 46 | "liblog", |
| 47 | "libz", |
| 48 | "libziparchive", |
| 49 | ], |
David Srbecky | b29ecc1 | 2019-04-15 15:10:59 +0100 | [diff] [blame] | 50 | }, |
Greg Hartman | 063c985 | 2019-04-18 23:49:41 +0000 | [diff] [blame] | 51 | darwin: { |
| 52 | enabled: true, |
| 53 | }, |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 54 | }, |
Colin Cross | a9c0532 | 2017-10-19 10:25:42 -0700 | [diff] [blame] | 55 | } |
| 56 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 57 | art_cc_test { |
| 58 | name: "art_dexdump_tests", |
| 59 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 60 | "art_gtest_defaults", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 61 | ], |
| 62 | srcs: ["dexdump_test.cc"], |
| 63 | } |