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: { |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 27 | // Use the 32-bit version of dexoptanalyzer on devices. |
Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 28 | compile_multilib: "prefer32", |
| 29 | }, |
| 30 | }, |
| 31 | |
Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 32 | shared_libs: [ |
| 33 | "libbase", |
| 34 | ], |
| 35 | } |
| 36 | |
| 37 | art_cc_binary { |
| 38 | name: "dexoptanalyzer", |
| 39 | defaults: ["dexoptanalyzer-defaults"], |
| 40 | shared_libs: [ |
| 41 | "libart", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 42 | "libartbase", |
Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 43 | ], |
| 44 | } |
| 45 | |
| 46 | art_cc_binary { |
| 47 | name: "dexoptanalyzerd", |
| 48 | defaults: [ |
Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 49 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 50 | "dexoptanalyzer-defaults", |
Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 51 | ], |
| 52 | shared_libs: [ |
| 53 | "libartd", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 54 | "libartbased", |
Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 55 | ], |
| 56 | } |
| 57 | |
| 58 | art_cc_test { |
| 59 | name: "art_dexoptanalyzer_tests", |
| 60 | defaults: [ |
| 61 | "art_gtest_defaults", |
| 62 | ], |
| 63 | shared_libs: [ |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 64 | "libbacktrace", |
Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 65 | ], |
| 66 | srcs: ["dexoptanalyzer_test.cc"], |
| 67 | } |