blob: 5f48b769209c67571f6603dd5ae09b67bbb43a25 [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",
Tomasz Wiszkowski55d53ff2017-12-04 15:39:57 -080057 ],
Tomasz Wiszkowski55d53ff2017-12-04 15:39:57 -080058 target: {
Ryan Haining508c8082018-03-13 11:26:19 -070059 host: {
Tomasz Wiszkowski55d53ff2017-12-04 15:39:57 -080060 host_ldlibs: ["-lrt"],
61 cflags: ["-DCUTTLEFISH_HOST"],
Ryan Haining508c8082018-03-13 11:26:19 -070062 compile_multilib: "64",
Ryan Haininged1fe922018-03-13 17:43:30 +000063 },
64 // We don't need Darwin host-side builds
65 darwin: {
66 enabled: false,
Greg Hartmana4ff2482017-10-03 16:35:00 -070067 },
Greg Hartmanbff7e632017-09-29 11:32:08 -070068 },
Cody Schuffelen88b82d52019-05-29 14:16:03 -070069 cflags: ["-Werror", "-Wall", "-D_FILE_OFFSET_BITS=64"],
Greg Hartmance872ef2017-12-04 22:51:47 -080070 vendor: true,
Greg Hartmana4ff2482017-10-03 16:35:00 -070071}
72
Greg Hartmance872ef2017-12-04 22:51:47 -080073cc_defaults {
Ram Muthiah792e2ad2019-04-19 11:19:46 -070074 name: "cuttlefish_guest_product_only",
75 product_specific: true,
76 gnu_extensions: false,
77 header_libs: [
78 "cuttlefish_common_headers_product",
Ram Muthiah792e2ad2019-04-19 11:19:46 -070079 ],
80 target: {
81 host: {
82 host_ldlibs: ["-lrt"],
83 cflags: ["-DCUTTLEFISH_HOST"],
84 compile_multilib: "64",
85 },
86 // We don't need Darwin host-side builds
87 darwin: {
88 enabled: false,
89 },
90 },
91 cflags: ["-Werror", "-Wall"],
92}
93
94cc_defaults {
Greg Hartmane9adb542018-05-09 13:12:51 -070095 name: "cuttlefish_guest_only",
96 defaults: ["cuttlefish_base"],
97}
98
99cc_defaults {
Greg Hartmance872ef2017-12-04 22:51:47 -0800100 name: "cuttlefish_host_only",
101 device_supported: false,
102 host_supported: true,
103 defaults: ["cuttlefish_base"],
104}
105
106cc_defaults {
107 name: "cuttlefish_host_and_guest",
108 host_supported: true,
109 defaults: ["cuttlefish_base"],
110}
Ram Muthiah6fbd6c82019-12-10 15:58:27 -0800111//
112// Copyright (C) 2018 The Android Open Source Project
113//
114// Licensed under the Apache License, Version 2.0 (the "License");
115// you may not use this file except in compliance with the License.
116// You may obtain a copy of the License at
117//
118// http://www.apache.org/licenses/LICENSE-2.0
119//
120// Unless required by applicable law or agreed to in writing, software
121// distributed under the License is distributed on an "AS IS" BASIS,
122// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
123// See the License for the specific language governing permissions and
124// limitations under the License.
125
126
127cc_defaults {
128 name: "cuttlefish_recovery_available",
129 recovery_available : true
130}
131
132cc_defaults {
133 name: "enabled_on_p_and_later",
134 enabled: true
135}
136
137cc_defaults {
138 name: "enabled_on_q_and_later",
139 enabled: true
140}
141
142cc_defaults {
143 name: "enabled_on_q_internal_and_later",
144 enabled: true
145}
146
147cc_defaults {
148 name: "cuttlefish_host_config",
149 target: {
150 linux_glibc: {
151 static_libs: [
152 "libcuttlefish_host_config",
153 ],
154 },
155 },
156}
157
158cc_defaults {
159 name: "cuttlefish_libicuuc",
160 shared_libs: [
161 "libicuuc",
162 "libandroidicu",
163 ],
164}
165
166cc_defaults {
167 name: "cuttlefish_health_storage",
168 defaults: ["enabled_on_q_and_later"],
169 vintf_fragments: [
170 "manifest_android.hardware.health.storage@1.0.cuttlefish.xml",
171 ],
172}
173
174java_test_host {
175 name: "tombstone_transmit_tests",
176
177 libs: ["tradefed"],
178
179 srcs: ["tests/src/**/TombstoneTransmitTest.java"],
180
181 test_config: "tests/tombstone-transmit-tests.xml",
182
183 test_suites: ["general-tests"],
184}