| 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 | |
| 49 | art_cc_test { |
| 50 | name: "art_libarttools_tests", |
| 51 | defaults: [ |
| 52 | "art_gtest_defaults", |
| 53 | ], |
| 54 | srcs: [ |
| 55 | "tools/tools_test.cc", |
| 56 | ], |
| 57 | shared_libs: [ |
| 58 | "libbase", |
| 59 | "libarttools", |
| 60 | ], |
| 61 | } |