blob: 47afd219e2a5ab3adf60ab5a65741c6e0172e0a7 [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 Muthiah0f7fc062019-12-10 15:48:14 -0800111
112cc_defaults {
113 name: "cuttlefish_recovery_available",
114 recovery_available : true
115}
116
117cc_defaults {
118 name: "enabled_on_p_and_later",
119 enabled: true
120}
121
122cc_defaults {
123 name: "enabled_on_q_and_later",
124 enabled: true
125}
126
127cc_defaults {
128 name: "enabled_on_q_internal_and_later",
129 enabled: true
130}
131
132cc_defaults {
133 name: "cuttlefish_host_config",
134 target: {
135 linux_glibc: {
136 static_libs: [
137 "libcuttlefish_host_config",
138 ],
139 },
140 },
141}
142
143cc_defaults {
144 name: "cuttlefish_libicuuc",
145 shared_libs: [
146 "libicuuc",
147 "libandroidicu",
148 ],
149}
150
151cc_defaults {
152 name: "cuttlefish_health_storage",
153 defaults: ["enabled_on_q_and_later"],
154 vintf_fragments: [
155 "manifest_android.hardware.health.storage@1.0.cuttlefish.xml",
156 ],
157}
158
159java_test_host {
160 name: "tombstone_transmit_tests",
161
162 libs: ["tradefed"],
163
164 srcs: ["tests/src/**/TombstoneTransmitTest.java"],
165
166 test_config: "tests/tombstone-transmit-tests.xml",
167
168 test_suites: ["general-tests"],
169}