Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 1 | // Copyright (C) 2016 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 | |
Jeff Hao | ea7c629 | 2016-11-14 18:10:16 -0800 | [diff] [blame] | 15 | art_cc_defaults { |
| 16 | name: "libart-dexlayout-defaults", |
David Sehr | 7639cdc | 2017-04-15 10:06:21 -0700 | [diff] [blame] | 17 | defaults: ["art_defaults"], |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 18 | host_supported: true, |
| 19 | srcs: [ |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 20 | "dexlayout.cc", |
Jeff Hao | 3ab96b4 | 2016-09-09 18:35:01 -0700 | [diff] [blame] | 21 | "dex_ir.cc", |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 22 | "dex_ir_builder.cc", |
David Sehr | 55232f1 | 2017-04-19 14:06:49 -0700 | [diff] [blame] | 23 | "dex_verify.cc", |
David Sehr | cdcfde7 | 2016-09-26 07:44:04 -0700 | [diff] [blame] | 24 | "dex_visualize.cc", |
Jeff Hao | a862100 | 2016-10-04 18:13:44 +0000 | [diff] [blame] | 25 | "dex_writer.cc", |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 26 | ], |
Jeff Hao | ea7c629 | 2016-11-14 18:10:16 -0800 | [diff] [blame] | 27 | export_include_dirs: ["."], |
| 28 | shared_libs: ["libbase"], |
| 29 | static_libs: ["libz"], |
| 30 | } |
| 31 | |
| 32 | art_cc_library { |
| 33 | name: "libart-dexlayout", |
| 34 | defaults: ["libart-dexlayout-defaults"], |
| 35 | shared_libs: ["libart"], |
| 36 | } |
| 37 | |
| 38 | art_cc_library { |
| 39 | name: "libartd-dexlayout", |
| 40 | defaults: ["libart-dexlayout-defaults"], |
| 41 | shared_libs: ["libartd"], |
| 42 | } |
| 43 | |
| 44 | art_cc_binary { |
| 45 | name: "dexlayout", |
David Sehr | 55232f1 | 2017-04-19 14:06:49 -0700 | [diff] [blame] | 46 | defaults: ["art_defaults"], |
Jeff Hao | ea7c629 | 2016-11-14 18:10:16 -0800 | [diff] [blame] | 47 | host_supported: true, |
| 48 | srcs: ["dexlayout_main.cc"], |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 49 | cflags: ["-Wall"], |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 50 | shared_libs: [ |
| 51 | "libart", |
Jeff Hao | ea7c629 | 2016-11-14 18:10:16 -0800 | [diff] [blame] | 52 | "libart-dexlayout", |
Andreas Gampe | 08ae77f | 2017-04-26 22:02:33 -0700 | [diff] [blame] | 53 | "libbase", |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 54 | ], |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 55 | } |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 56 | |
| 57 | art_cc_test { |
| 58 | name: "art_dexlayout_tests", |
Jeff Hao | ea7c629 | 2016-11-14 18:10:16 -0800 | [diff] [blame] | 59 | defaults: ["art_gtest_defaults"], |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 60 | srcs: ["dexlayout_test.cc"], |
| 61 | } |
David Sehr | beca4fe | 2017-03-30 17:50:24 -0700 | [diff] [blame] | 62 | |
| 63 | art_cc_binary { |
| 64 | name: "dexdiag", |
David Sehr | 55232f1 | 2017-04-19 14:06:49 -0700 | [diff] [blame] | 65 | defaults: ["art_defaults"], |
| 66 | host_supported: true, |
David Sehr | beca4fe | 2017-03-30 17:50:24 -0700 | [diff] [blame] | 67 | srcs: ["dexdiag.cc"], |
| 68 | cflags: ["-Wall"], |
| 69 | shared_libs: [ |
| 70 | "libart", |
| 71 | "libart-dexlayout", |
David Sehr | beca4fe | 2017-03-30 17:50:24 -0700 | [diff] [blame] | 72 | ], |
David Sehr | 55232f1 | 2017-04-19 14:06:49 -0700 | [diff] [blame] | 73 | target: { |
| 74 | android: { |
| 75 | shared_libs: [ |
| 76 | "libpagemap", |
| 77 | ] |
| 78 | }, |
| 79 | } |
David Sehr | beca4fe | 2017-03-30 17:50:24 -0700 | [diff] [blame] | 80 | } |
| 81 | |
David Sehr | 55232f1 | 2017-04-19 14:06:49 -0700 | [diff] [blame] | 82 | art_cc_test { |
| 83 | name: "art_dexdiag_tests", |
| 84 | host_supported: true, |
| 85 | defaults: [ |
| 86 | "art_gtest_defaults", |
| 87 | ], |
| 88 | srcs: ["dexdiag_test.cc"], |
| 89 | } |