1//
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
16cc_library_headers {
17    name: "cuttlefish_common_headers",
18    vendor: true,
19    export_include_dirs: ["."],
20    host_supported: true,
21}
22
23cc_library_headers {
24    name: "cuttlefish_common_headers_product",
25    product_specific: true,
26    export_include_dirs: ["."],
27    host_supported: true,
28}
29
30cc_defaults {
31    name: "cuttlefish_base",
32    gnu_extensions: false,
33    header_libs: [
34        "cuttlefish_common_headers",
35    ],
36    target: {
37        host: {
38            host_ldlibs: ["-lrt"],
39            cflags: ["-DCUTTLEFISH_HOST"],
40            compile_multilib: "64",
41        },
42        // We don't need Darwin host-side builds
43        darwin: {
44            enabled: false,
45        },
46    },
47    cflags: ["-Werror", "-Wall", "-D_FILE_OFFSET_BITS=64"],
48    vendor: true,
49}
50
51cc_defaults {
52    name: "cuttlefish_guest_product_only",
53    product_specific: true,
54    gnu_extensions: false,
55    header_libs: [
56        "cuttlefish_common_headers_product",
57    ],
58    target: {
59        host: {
60            host_ldlibs: ["-lrt"],
61            cflags: ["-DCUTTLEFISH_HOST"],
62            compile_multilib: "64",
63        },
64        // We don't need Darwin host-side builds
65        darwin: {
66            enabled: false,
67        },
68    },
69    cflags: ["-Werror", "-Wall"],
70}
71
72cc_defaults {
73    name: "cuttlefish_guest_only",
74    defaults: ["cuttlefish_base"],
75}
76
77cc_defaults {
78    name: "cuttlefish_host_only",
79    device_supported: false,
80    host_supported: true,
81    defaults: ["cuttlefish_base"],
82}
83
84cc_defaults {
85    name: "cuttlefish_host_and_guest",
86    host_supported: true,
87    defaults: ["cuttlefish_base"],
88}
89//
90// Copyright (C) 2018 The Android Open Source Project
91//
92// Licensed under the Apache License, Version 2.0 (the "License");
93// you may not use this file except in compliance with the License.
94// You may obtain a copy of the License at
95//
96//      http://www.apache.org/licenses/LICENSE-2.0
97//
98// Unless required by applicable law or agreed to in writing, software
99// distributed under the License is distributed on an "AS IS" BASIS,
100// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
101// See the License for the specific language governing permissions and
102// limitations under the License.
103
104
105cc_defaults {
106  name: "cuttlefish_recovery_available",
107  recovery_available : true
108}
109
110cc_defaults {
111  name: "enabled_on_p_and_later",
112  enabled: true
113}
114
115cc_defaults {
116  name: "enabled_on_q_and_later",
117  enabled: true
118}
119
120cc_defaults {
121  name: "enabled_on_q_internal_and_later",
122  enabled: true
123}
124
125cc_defaults {
126    name: "cuttlefish_host_config",
127    target: {
128        linux_glibc: {
129            static_libs: [
130                 "libcuttlefish_host_config",
131            ],
132        },
133    },
134}
135
136cc_defaults {
137    name: "cuttlefish_libicuuc",
138    shared_libs: [
139        "libicuuc",
140        "libandroidicu",
141    ],
142}
143
144cc_defaults {
145    name: "cuttlefish_health_storage",
146    defaults: ["enabled_on_q_and_later"],
147    vintf_fragments: [
148        "manifest_android.hardware.health.storage@1.0.cuttlefish.xml",
149    ],
150}
151
152java_test_host {
153    name: "tombstone_transmit_tests",
154
155    libs: ["tradefed"],
156
157    srcs:  ["tests/src/**/TombstoneTransmitTest.java"],
158
159    test_config: "tests/tombstone-transmit-tests.xml",
160
161    test_suites: ["general-tests"],
162}
163