Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2017 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: "dexoptanalyzer-defaults", |
| 19 | host_supported: true, |
| 20 | defaults: ["art_defaults"], |
| 21 | srcs: [ |
| 22 | "dexoptanalyzer.cc", |
| 23 | ], |
| 24 | |
| 25 | target: { |
| 26 | android: { |
| 27 | compile_multilib: "prefer32", |
| 28 | }, |
| 29 | }, |
| 30 | |
| 31 | include_dirs: [ |
| 32 | "art/cmdline", |
| 33 | ], |
| 34 | |
| 35 | shared_libs: [ |
| 36 | "libbase", |
| 37 | ], |
| 38 | } |
| 39 | |
| 40 | art_cc_binary { |
| 41 | name: "dexoptanalyzer", |
| 42 | defaults: ["dexoptanalyzer-defaults"], |
| 43 | shared_libs: [ |
| 44 | "libart", |
| 45 | ], |
| 46 | } |
| 47 | |
| 48 | art_cc_binary { |
| 49 | name: "dexoptanalyzerd", |
| 50 | defaults: [ |
| 51 | "dexoptanalyzer-defaults", |
| 52 | "art_debug_defaults", |
| 53 | ], |
| 54 | shared_libs: [ |
| 55 | "libartd", |
| 56 | ], |
| 57 | } |
| 58 | |
| 59 | art_cc_test { |
| 60 | name: "art_dexoptanalyzer_tests", |
| 61 | defaults: [ |
| 62 | "art_gtest_defaults", |
| 63 | ], |
| 64 | shared_libs: [ |
| 65 | "libbacktrace" |
| 66 | ], |
| 67 | srcs: ["dexoptanalyzer_test.cc"], |
| 68 | } |