blob: 3df40a5daf8cd6a505da79cbce3e6feae88ebe26 [file] [log] [blame]
Chris Wailesbefdad42021-01-12 16:37:57 -08001//
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 Badour9150de62021-02-26 03:22:24 -080017package {
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 Wailesbefdad42021-01-12 16:37:57 -080026cc_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 Stjernholm22a61622021-03-17 13:30:25 +000033 defaults: ["art_defaults"],
Chris Wailesbefdad42021-01-12 16:37:57 -080034 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 Wailesbfd622a2021-01-13 16:13:41 -080048
Roland Levillainf0409142021-03-22 15:45:03 +000049art_cc_defaults {
50 name: "art_libarttools_tests_defaults",
Chris Wailesbfd622a2021-01-13 16:13:41 -080051 srcs: [
52 "tools/tools_test.cc",
53 ],
54 shared_libs: [
55 "libbase",
56 "libarttools",
57 ],
58}
Roland Levillainf0409142021-03-22 15:45:03 +000059
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.
62art_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.
72art_cc_test {
73 name: "art_standalone_libarttools_tests",
74 defaults: [
75 "art_standalone_gtest_defaults",
76 "art_libarttools_tests_defaults",
77 ],
78}