Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2016 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 | |
Andreas Gampe | 3157fc2 | 2017-08-23 09:43:46 -0700 | [diff] [blame] | 17 | // TODO: this header library depends on libart. Find a way to express that. |
Bob Badour | 9150de6 | 2021-02-26 03:22:24 -0800 | [diff] [blame] | 18 | package { |
| 19 | // See: http://go/android-license-faq |
| 20 | // A large-scale-change added 'default_applicable_licenses' to import |
| 21 | // all of the 'license_kinds' from "art_license" |
| 22 | // to get the below license kinds: |
| 23 | // SPDX-license-identifier-Apache-2.0 |
| 24 | default_applicable_licenses: ["art_license"], |
| 25 | } |
| 26 | |
Andreas Gampe | 3157fc2 | 2017-08-23 09:43:46 -0700 | [diff] [blame] | 27 | cc_library_headers { |
| 28 | name: "art_cmdlineparser_headers", |
Martin Stjernholm | e10abe7 | 2021-10-28 03:49:55 +0100 | [diff] [blame] | 29 | defaults: ["art_defaults"], |
Andreas Gampe | 3157fc2 | 2017-08-23 09:43:46 -0700 | [diff] [blame] | 30 | host_supported: true, |
| 31 | export_include_dirs: ["."], |
Jiyong Park | 71f661c | 2020-04-28 18:20:43 +0900 | [diff] [blame] | 32 | |
| 33 | apex_available: [ |
| 34 | "com.android.art.debug", |
Martin Stjernholm | 3e9abfc | 2020-10-09 22:17:51 +0100 | [diff] [blame] | 35 | "com.android.art", |
Jiyong Park | 71f661c | 2020-04-28 18:20:43 +0900 | [diff] [blame] | 36 | ], |
Andreas Gampe | 3157fc2 | 2017-08-23 09:43:46 -0700 | [diff] [blame] | 37 | } |
| 38 | |
Roland Levillain | f040914 | 2021-03-22 15:45:03 +0000 | [diff] [blame] | 39 | art_cc_defaults { |
| 40 | name: "art_cmdline_tests_defaults", |
Chih-Hung Hsieh | a0a5f00 | 2022-02-17 21:14:37 -0800 | [diff] [blame] | 41 | tidy_timeout_srcs: ["cmdline_parser_test.cc"], |
Roland Levillain | f040914 | 2021-03-22 15:45:03 +0000 | [diff] [blame] | 42 | srcs: ["cmdline_parser_test.cc"], |
| 43 | } |
| 44 | |
| 45 | // Version of ART gtest `art_cmdline_tests` bundled with the ART APEX on target. |
| 46 | // TODO(b/192274705): Remove this module when the migration to standalone ART gtests is complete. |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 47 | art_cc_test { |
| 48 | name: "art_cmdline_tests", |
| 49 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 50 | "art_gtest_defaults", |
Roland Levillain | f040914 | 2021-03-22 15:45:03 +0000 | [diff] [blame] | 51 | "art_cmdline_tests_defaults", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 52 | ], |
Roland Levillain | f040914 | 2021-03-22 15:45:03 +0000 | [diff] [blame] | 53 | } |
| 54 | |
| 55 | // Standalone version of ART gtest `art_cmdline_tests`, not bundled with the ART APEX on target. |
| 56 | art_cc_test { |
| 57 | name: "art_standalone_cmdline_tests", |
| 58 | defaults: [ |
| 59 | "art_standalone_gtest_defaults", |
| 60 | "art_cmdline_tests_defaults", |
| 61 | ], |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 62 | } |