blob: 91c8ccd8d109c64e425fcea2582243dcbdb4e71e [file] [log] [blame]
Colin Cross6e95dd52016-09-12 15:37:10 -07001//
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 Gampe3157fc22017-08-23 09:43:46 -070017// TODO: this header library depends on libart. Find a way to express that.
Bob Badour9150de62021-02-26 03:22:24 -080018package {
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 Gampe3157fc22017-08-23 09:43:46 -070027cc_library_headers {
28 name: "art_cmdlineparser_headers",
Martin Stjernholme10abe72021-10-28 03:49:55 +010029 defaults: ["art_defaults"],
Andreas Gampe3157fc22017-08-23 09:43:46 -070030 host_supported: true,
31 export_include_dirs: ["."],
Jiyong Park71f661c2020-04-28 18:20:43 +090032
33 apex_available: [
34 "com.android.art.debug",
Martin Stjernholm3e9abfc2020-10-09 22:17:51 +010035 "com.android.art",
Jiyong Park71f661c2020-04-28 18:20:43 +090036 ],
Andreas Gampe3157fc22017-08-23 09:43:46 -070037}
38
Roland Levillainf0409142021-03-22 15:45:03 +000039art_cc_defaults {
40 name: "art_cmdline_tests_defaults",
Chih-Hung Hsieha0a5f002022-02-17 21:14:37 -080041 tidy_timeout_srcs: ["cmdline_parser_test.cc"],
Roland Levillainf0409142021-03-22 15:45:03 +000042 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 Cross6e95dd52016-09-12 15:37:10 -070047art_cc_test {
48 name: "art_cmdline_tests",
49 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -070050 "art_gtest_defaults",
Roland Levillainf0409142021-03-22 15:45:03 +000051 "art_cmdline_tests_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -070052 ],
Roland Levillainf0409142021-03-22 15:45:03 +000053}
54
55// Standalone version of ART gtest `art_cmdline_tests`, not bundled with the ART APEX on target.
56art_cc_test {
57 name: "art_standalone_cmdline_tests",
58 defaults: [
59 "art_standalone_gtest_defaults",
60 "art_cmdline_tests_defaults",
61 ],
Colin Cross6e95dd52016-09-12 15:37:10 -070062}