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 | |
| 15 | // TODO(ajcbik): rename dexdump2 into dexdump when Dalvik version is removed |
| 16 | |
David Sehr | 5a1f629 | 2018-01-19 11:08:51 -0800 | [diff] [blame] | 17 | |
| 18 | cc_defaults { |
| 19 | name: "dexdump_defaults", |
Andreas Gampe | 70dfb69 | 2018-09-18 16:50:18 -0700 | [diff] [blame] | 20 | defaults: ["art_defaults"], |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 21 | srcs: [ |
David Sehr | caacd11 | 2016-10-20 16:27:02 -0700 | [diff] [blame] | 22 | "dexdump_cfg.cc", |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 23 | "dexdump_main.cc", |
| 24 | "dexdump.cc", |
| 25 | ], |
David Sehr | 5a1f629 | 2018-01-19 11:08:51 -0800 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | art_cc_binary { |
| 29 | name: "dexdump2", |
| 30 | defaults: ["dexdump_defaults"], |
| 31 | host_supported: true, |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 32 | shared_libs: [ |
David Sehr | 5a1f629 | 2018-01-19 11:08:51 -0800 | [diff] [blame] | 33 | "libdexfile", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 34 | "libartbase", |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 35 | "libbase", |
| 36 | ], |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 37 | } |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 38 | |
Colin Cross | a9c0532 | 2017-10-19 10:25:42 -0700 | [diff] [blame] | 39 | art_cc_binary { |
| 40 | name: "dexdumps", |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 41 | defaults: [ |
| 42 | "dexdump_defaults", |
| 43 | "libartbase_static_defaults", |
| 44 | "libdexfile_static_defaults", |
| 45 | ], |
Colin Cross | a9c0532 | 2017-10-19 10:25:42 -0700 | [diff] [blame] | 46 | host_supported: true, |
| 47 | device_supported: false, |
Colin Cross | a9c0532 | 2017-10-19 10:25:42 -0700 | [diff] [blame] | 48 | target: { |
| 49 | darwin: { |
| 50 | enabled: false, |
| 51 | }, |
David Sehr | 10db8fe | 2018-07-18 11:01:20 -0700 | [diff] [blame] | 52 | windows: { |
| 53 | enabled: true, |
| 54 | }, |
Colin Cross | a9c0532 | 2017-10-19 10:25:42 -0700 | [diff] [blame] | 55 | }, |
| 56 | } |
| 57 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 58 | art_cc_test { |
| 59 | name: "art_dexdump_tests", |
| 60 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 61 | "art_gtest_defaults", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 62 | ], |
| 63 | srcs: ["dexdump_test.cc"], |
| 64 | } |