blob: 67ecf9d3498f07736454c6b3283cfddeb21b3432 [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
16subdirs = [
17 "common",
Tomasz Wiszkowskieb642fc2017-11-28 12:36:31 -080018 "guest",
Greg Hartmana4ff2482017-10-03 16:35:00 -070019 "host",
Greg Hartmanbff7e632017-09-29 11:32:08 -070020]
21
22cc_library_headers {
Greg Hartmana4ff2482017-10-03 16:35:00 -070023 name: "cuttlefish_common_headers",
Isaac Chenfef21be2017-12-11 16:57:33 +080024 vendor: true,
Greg Hartmana4ff2482017-10-03 16:35:00 -070025 export_include_dirs: ["."],
26 host_supported: true,
27}
28
Ram Muthiah792e2ad2019-04-19 11:19:46 -070029cc_library_headers {
30 name: "cuttlefish_common_headers_product",
31 product_specific: true,
32 export_include_dirs: ["."],
33 host_supported: true,
34}
35
Greg Hartmana4ff2482017-10-03 16:35:00 -070036// TODO(b/67435044) Update the include paths and remove this
37cc_library_headers {
38 name: "cuttlefish_glog",
Isaac Chenfef21be2017-12-11 16:57:33 +080039 vendor: true,
Greg Hartmana4ff2482017-10-03 16:35:00 -070040 export_include_dirs: ["common/libs"],
41 host_supported: true,
Greg Hartmanbff7e632017-09-29 11:32:08 -070042}
43
Ram Muthiah792e2ad2019-04-19 11:19:46 -070044// TODO(b/67435044) Update the include paths and remove this
45cc_library_headers {
46 name: "cuttlefish_glog_product",
47 product_specific: true,
48 export_include_dirs: ["common/libs"],
49 host_supported: true,
50}
51
Greg Hartmanbff7e632017-09-29 11:32:08 -070052cc_defaults {
Greg Hartmance872ef2017-12-04 22:51:47 -080053 name: "cuttlefish_base",
Tomasz Wiszkowski55d53ff2017-12-04 15:39:57 -080054 gnu_extensions: false,
55 header_libs: [
56 "cuttlefish_common_headers",
57 "cuttlefish_kernel_headers",
58 ],
Tomasz Wiszkowski55d53ff2017-12-04 15:39:57 -080059 target: {
Ryan Haining508c8082018-03-13 11:26:19 -070060 host: {
Tomasz Wiszkowski55d53ff2017-12-04 15:39:57 -080061 host_ldlibs: ["-lrt"],
62 cflags: ["-DCUTTLEFISH_HOST"],
Ryan Haining508c8082018-03-13 11:26:19 -070063 compile_multilib: "64",
Ryan Haininged1fe922018-03-13 17:43:30 +000064 },
65 // We don't need Darwin host-side builds
66 darwin: {
67 enabled: false,
Greg Hartmana4ff2482017-10-03 16:35:00 -070068 },
Greg Hartmanbff7e632017-09-29 11:32:08 -070069 },
Cody Schuffelen88b82d52019-05-29 14:16:03 -070070 cflags: ["-Werror", "-Wall", "-D_FILE_OFFSET_BITS=64"],
Greg Hartmance872ef2017-12-04 22:51:47 -080071 vendor: true,
Greg Hartmana4ff2482017-10-03 16:35:00 -070072}
73
Greg Hartmance872ef2017-12-04 22:51:47 -080074cc_defaults {
Ram Muthiah792e2ad2019-04-19 11:19:46 -070075 name: "cuttlefish_guest_product_only",
76 product_specific: true,
77 gnu_extensions: false,
78 header_libs: [
79 "cuttlefish_common_headers_product",
80 "cuttlefish_kernel_headers_product",
Ram Muthiah792e2ad2019-04-19 11:19:46 -070081 ],
82 target: {
83 host: {
84 host_ldlibs: ["-lrt"],
85 cflags: ["-DCUTTLEFISH_HOST"],
86 compile_multilib: "64",
87 },
88 // We don't need Darwin host-side builds
89 darwin: {
90 enabled: false,
91 },
92 },
93 cflags: ["-Werror", "-Wall"],
94}
95
96cc_defaults {
Greg Hartmane9adb542018-05-09 13:12:51 -070097 name: "cuttlefish_guest_only",
98 defaults: ["cuttlefish_base"],
99}
100
101cc_defaults {
Greg Hartmance872ef2017-12-04 22:51:47 -0800102 name: "cuttlefish_host_only",
103 device_supported: false,
104 host_supported: true,
105 defaults: ["cuttlefish_base"],
106}
107
108cc_defaults {
109 name: "cuttlefish_host_and_guest",
110 host_supported: true,
111 defaults: ["cuttlefish_base"],
112}
Ram Muthiah6fbd6c82019-12-10 15:58:27 -0800113//
114// Copyright (C) 2018 The Android Open Source Project
115//
116// Licensed under the Apache License, Version 2.0 (the "License");
117// you may not use this file except in compliance with the License.
118// You may obtain a copy of the License at
119//
120// http://www.apache.org/licenses/LICENSE-2.0
121//
122// Unless required by applicable law or agreed to in writing, software
123// distributed under the License is distributed on an "AS IS" BASIS,
124// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
125// See the License for the specific language governing permissions and
126// limitations under the License.
127
128
129cc_defaults {
130 name: "cuttlefish_recovery_available",
131 recovery_available : true
132}
133
134cc_defaults {
135 name: "enabled_on_p_and_later",
136 enabled: true
137}
138
139cc_defaults {
140 name: "enabled_on_q_and_later",
141 enabled: true
142}
143
144cc_defaults {
145 name: "enabled_on_q_internal_and_later",
146 enabled: true
147}
148
149cc_defaults {
150 name: "cuttlefish_host_config",
151 target: {
152 linux_glibc: {
153 static_libs: [
154 "libcuttlefish_host_config",
155 ],
156 },
157 },
158}
159
160cc_defaults {
161 name: "cuttlefish_libicuuc",
162 shared_libs: [
163 "libicuuc",
164 "libandroidicu",
165 ],
166}
167
168cc_defaults {
169 name: "cuttlefish_health_storage",
170 defaults: ["enabled_on_q_and_later"],
171 vintf_fragments: [
172 "manifest_android.hardware.health.storage@1.0.cuttlefish.xml",
173 ],
174}
175
176java_test_host {
177 name: "tombstone_transmit_tests",
178
179 libs: ["tradefed"],
180
181 srcs: ["tests/src/**/TombstoneTransmitTest.java"],
182
183 test_config: "tests/tombstone-transmit-tests.xml",
184
185 test_suites: ["general-tests"],
186}