Chris Wailes | befdad4 | 2021-01-12 16:37:57 -0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2021 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 | |
Chris Wailes | befdad4 | 2021-01-12 16:37:57 -0800 | [diff] [blame] | 26 | cc_library { |
| 27 | // This library contains low-level interfaces used to call dex2oat and |
| 28 | // related tools. It will translate structured messages into command line |
| 29 | // arguments. This will allow other libraries or programs besides the ART |
| 30 | // Service to make use of this functionality. |
| 31 | |
| 32 | name: "libarttools", |
Martin Stjernholm | 22a6162 | 2021-03-17 13:30:25 +0000 | [diff] [blame] | 33 | defaults: ["art_defaults"], |
Chris Wailes | befdad4 | 2021-01-12 16:37:57 -0800 | [diff] [blame] | 34 | host_supported: true, |
| 35 | srcs: [ |
| 36 | "tools/tools.cc", |
| 37 | ], |
| 38 | export_include_dirs: ["."], |
| 39 | apex_available: [ |
| 40 | "com.android.art", |
| 41 | "com.android.art.debug", |
| 42 | ], |
| 43 | shared_libs: [ |
| 44 | "libbase", |
| 45 | ], |
| 46 | export_shared_lib_headers: ["libbase"], |
| 47 | } |
Chris Wailes | bfd622a | 2021-01-13 16:13:41 -0800 | [diff] [blame] | 48 | |
Roland Levillain | f040914 | 2021-03-22 15:45:03 +0000 | [diff] [blame] | 49 | art_cc_defaults { |
| 50 | name: "art_libarttools_tests_defaults", |
Chris Wailes | bfd622a | 2021-01-13 16:13:41 -0800 | [diff] [blame] | 51 | srcs: [ |
| 52 | "tools/tools_test.cc", |
| 53 | ], |
| 54 | shared_libs: [ |
| 55 | "libbase", |
| 56 | "libarttools", |
| 57 | ], |
| 58 | } |
Roland Levillain | f040914 | 2021-03-22 15:45:03 +0000 | [diff] [blame] | 59 | |
| 60 | // Version of ART gtest `art_libarttools_tests` bundled with the ART APEX on target. |
| 61 | // TODO(b/192274705): Remove this module when the migration to standalone ART gtests is complete. |
| 62 | art_cc_test { |
| 63 | name: "art_libarttools_tests", |
| 64 | defaults: [ |
| 65 | "art_gtest_defaults", |
| 66 | "art_libarttools_tests_defaults", |
| 67 | ], |
| 68 | } |
| 69 | |
| 70 | // Standalone version of ART gtest `art_libarttools_tests`, not bundled with the ART APEX on |
| 71 | // target. |
| 72 | art_cc_test { |
| 73 | name: "art_standalone_libarttools_tests", |
| 74 | defaults: [ |
| 75 | "art_standalone_gtest_defaults", |
| 76 | "art_libarttools_tests_defaults", |
| 77 | ], |
| 78 | } |