blob: 9e9965c0423d8f2e3301e36a87cb25e4c6bad5b4 [file] [log] [blame]
Greg Hartmanbff7e632017-09-29 11:32:08 -07001//
2// Copyright (C) 2017 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
Greg Hartmanbff7e632017-09-29 11:32:08 -070016cc_library_headers {
Greg Hartmana4ff2482017-10-03 16:35:00 -070017 name: "cuttlefish_common_headers",
Justin Yun6ca23bd2020-12-11 17:16:37 +090018 vendor_available: true,
19 product_available: true,
Ram Muthiah792e2ad2019-04-19 11:19:46 -070020 export_include_dirs: ["."],
21 host_supported: true,
Jiyong Parkb86c2f72021-01-05 16:55:32 +090022 apex_available: [
23 "//apex_available:platform",
24 "com.android.virt",
25 ],
Ram Muthiah792e2ad2019-04-19 11:19:46 -070026}
27
Greg Hartmanbff7e632017-09-29 11:32:08 -070028cc_defaults {
Greg Hartmance872ef2017-12-04 22:51:47 -080029 name: "cuttlefish_base",
Tomasz Wiszkowski55d53ff2017-12-04 15:39:57 -080030 gnu_extensions: false,
31 header_libs: [
32 "cuttlefish_common_headers",
Tomasz Wiszkowski55d53ff2017-12-04 15:39:57 -080033 ],
Tomasz Wiszkowski55d53ff2017-12-04 15:39:57 -080034 target: {
Ryan Haining508c8082018-03-13 11:26:19 -070035 host: {
Tomasz Wiszkowski55d53ff2017-12-04 15:39:57 -080036 host_ldlibs: ["-lrt"],
37 cflags: ["-DCUTTLEFISH_HOST"],
Ryan Haining508c8082018-03-13 11:26:19 -070038 compile_multilib: "64",
Ryan Haininged1fe922018-03-13 17:43:30 +000039 },
40 // We don't need Darwin host-side builds
41 darwin: {
42 enabled: false,
Greg Hartmana4ff2482017-10-03 16:35:00 -070043 },
Greg Hartmanbff7e632017-09-29 11:32:08 -070044 },
Cody Schuffelen88b82d52019-05-29 14:16:03 -070045 cflags: ["-Werror", "-Wall", "-D_FILE_OFFSET_BITS=64"],
Jiyong Parkb86c2f72021-01-05 16:55:32 +090046 apex_available: [
47 "//apex_available:platform",
48 "com.android.virt",
49 ],
Greg Hartmana4ff2482017-10-03 16:35:00 -070050}
51
Jiyong Park58c326b2021-01-05 16:52:58 +090052// Defaults for cuttlefish modules that are available only in the guest OS (i.e. cuttlefish running
53// in a guest VM).
Ram Muthiah792e2ad2019-04-19 11:19:46 -070054cc_defaults {
Greg Hartmane9adb542018-05-09 13:12:51 -070055 name: "cuttlefish_guest_only",
Justin Yun6ca23bd2020-12-11 17:16:37 +090056 vendor: true,
Greg Hartmane9adb542018-05-09 13:12:51 -070057 defaults: ["cuttlefish_base"],
58}
59
Jiyong Park58c326b2021-01-05 16:52:58 +090060// Same as cuttlefish_guest_only, but modules are placed in /product partition.
Greg Hartmane9adb542018-05-09 13:12:51 -070061cc_defaults {
Jiyong Park58c326b2021-01-05 16:52:58 +090062 name: "cuttlefish_guest_product_only",
63 product_specific: true,
Greg Hartmance872ef2017-12-04 22:51:47 -080064 defaults: ["cuttlefish_base"],
65}
66
Jiyong Park58c326b2021-01-05 16:52:58 +090067// Defaults for cuttlefish modules that are available only in the host-side OS. Here "host" includes
68// both (1) non-Android OS like gLinux or Ubuntu, and (2) Android OS that is capable of running
69// guest VM(s) in it. Note that, in the context of the Android build systm - Soong - (1) is called
70// as "host" and (2) is called as "target". But here, the term "host" is in the context of VMs. If a
71// module is for the host-side VM (either Android or non-Android), "cuttlefish_host" shall be used.
72cc_defaults {
73 name: "cuttlefish_host",
74 host_supported: true, // this "host" means (1)
75 device_supported: true, // this is for (2)
76 vendor_available: true,
77 defaults: ["cuttlefish_base"],
78}
79
80// Same as "cuttlefish_host", but only for non-Android OS.
81cc_defaults {
82 name: "cuttlefish_buildhost_only",
Greg Hartmance872ef2017-12-04 22:51:47 -080083 host_supported: true,
Jiyong Park58c326b2021-01-05 16:52:58 +090084 device_supported: false,
Greg Hartmance872ef2017-12-04 22:51:47 -080085 defaults: ["cuttlefish_base"],
86}
Ram Muthiah0f7fc062019-12-10 15:48:14 -080087
88cc_defaults {
89 name: "cuttlefish_recovery_available",
90 recovery_available : true
91}
92
93cc_defaults {
94 name: "enabled_on_p_and_later",
95 enabled: true
96}
97
98cc_defaults {
99 name: "enabled_on_q_and_later",
100 enabled: true
101}
102
103cc_defaults {
104 name: "enabled_on_q_internal_and_later",
105 enabled: true
106}
107
108cc_defaults {
Ram Muthiah0f7fc062019-12-10 15:48:14 -0800109 name: "cuttlefish_libicuuc",
Alistair Delva8cd279f2020-09-03 08:35:39 -0700110 target: {
111 host: {
112 shared_libs: [
113 "libicuuc",
114 ],
115 },
116 },
Ram Muthiah0f7fc062019-12-10 15:48:14 -0800117}
118
119cc_defaults {
120 name: "cuttlefish_health_storage",
121 defaults: ["enabled_on_q_and_later"],
Ram Muthiah0f7fc062019-12-10 15:48:14 -0800122}
123
124java_test_host {
125 name: "tombstone_transmit_tests",
126
127 libs: ["tradefed"],
128
129 srcs: ["tests/src/**/TombstoneTransmitTest.java"],
130
131 test_config: "tests/tombstone-transmit-tests.xml",
132
133 test_suites: ["general-tests"],
134}
Jiyong Park4613c422021-02-01 22:14:13 +0900135
136filegroup {
137 name: "cf_dtb",
138 srcs: ["dtb.img"],
139}