| 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 | |
| Bob Badour | 9150de6 | 2021-02-26 03:22:24 -0800 | [diff] [blame] | 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | // A large-scale-change added 'default_applicable_licenses' to import |
| 20 | // all of the 'license_kinds' from "art_license" |
| 21 | // to get the below license kinds: |
| 22 | // SPDX-license-identifier-Apache-2.0 |
| 23 | default_applicable_licenses: ["art_license"], |
| 24 | } |
| 25 | |
| Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 26 | cc_defaults { |
| 27 | name: "dexoptanalyzer-defaults", |
| 28 | host_supported: true, |
| 29 | defaults: ["art_defaults"], |
| 30 | srcs: [ |
| 31 | "dexoptanalyzer.cc", |
| 32 | ], |
| 33 | |
| 34 | target: { |
| 35 | android: { |
| Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 36 | // Use the 32-bit version of dexoptanalyzer on devices. |
| Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 37 | compile_multilib: "prefer32", |
| 38 | }, |
| 39 | }, |
| 40 | |
| Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 41 | shared_libs: [ |
| 42 | "libbase", |
| 43 | ], |
| 44 | } |
| 45 | |
| Orion Hodson | 60e2974 | 2021-02-10 14:02:02 +0000 | [diff] [blame] | 46 | cc_library_headers { |
| 47 | name: "dexoptanalyzer_headers", |
| 48 | export_include_dirs: ["."], |
| 49 | host_supported: true, |
| 50 | apex_available: [ |
| 51 | "com.android.art.debug", |
| 52 | "com.android.art", |
| 53 | ], |
| 54 | } |
| 55 | |
| Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 56 | art_cc_binary { |
| 57 | name: "dexoptanalyzer", |
| 58 | defaults: ["dexoptanalyzer-defaults"], |
| 59 | shared_libs: [ |
| 60 | "libart", |
| David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 61 | "libartbase", |
| Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 62 | ], |
| Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 63 | apex_available: [ |
| Martin Stjernholm | 3e9abfc | 2020-10-09 22:17:51 +0100 | [diff] [blame] | 64 | "com.android.art", |
| Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 65 | "com.android.art.debug", |
| 66 | ], |
| Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 67 | } |
| 68 | |
| 69 | art_cc_binary { |
| 70 | name: "dexoptanalyzerd", |
| 71 | defaults: [ |
| Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 72 | "art_debug_defaults", |
| Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 73 | "dexoptanalyzer-defaults", |
| Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 74 | ], |
| 75 | shared_libs: [ |
| 76 | "libartd", |
| David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 77 | "libartbased", |
| Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 78 | ], |
| Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 79 | apex_available: [ |
| 80 | "com.android.art.debug", |
| 81 | ], |
| Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 82 | } |
| 83 | |
| 84 | art_cc_test { |
| 85 | name: "art_dexoptanalyzer_tests", |
| 86 | defaults: [ |
| 87 | "art_gtest_defaults", |
| 88 | ], |
| 89 | shared_libs: [ |
| Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 90 | "libbacktrace", |
| Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 91 | ], |
| David Srbecky | 4a88a5a | 2020-05-05 16:21:57 +0100 | [diff] [blame] | 92 | data: [ |
| 93 | ":art-gtest-jars-LinkageTest", |
| 94 | ":art-gtest-jars-Main", |
| 95 | ":art-gtest-jars-MainStripped", |
| 96 | ":art-gtest-jars-MultiDex", |
| 97 | ":art-gtest-jars-MultiDexModifiedSecondary", |
| 98 | ":art-gtest-jars-MyClassNatives", |
| 99 | ":art-gtest-jars-Nested", |
| 100 | ":art-gtest-jars-VerifierDeps", |
| 101 | ":art-gtest-jars-VerifierDepsMulti", |
| 102 | ], |
| Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 103 | srcs: ["dexoptanalyzer_test.cc"], |
| Yo Chiang | 169dfb4 | 2020-08-07 04:22:18 +0000 | [diff] [blame] | 104 | target: { |
| 105 | host: { |
| 106 | required: [ |
| 107 | "dex2oatd", |
| 108 | "dexoptanalyzerd", |
| 109 | ], |
| 110 | }, |
| 111 | }, |
| Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 112 | } |