• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16subdirs = [
17    "common",
18    "guest",
19    "host",
20]
21
22cc_library_headers {
23    name: "cuttlefish_common_headers",
24    vendor: true,
25    export_include_dirs: ["."],
26    host_supported: true,
27}
28
29cc_library_headers {
30    name: "cuttlefish_common_headers_product",
31    product_specific: true,
32    export_include_dirs: ["."],
33    host_supported: true,
34}
35
36// TODO(b/67435044) Update the include paths and remove this
37cc_library_headers {
38    name: "cuttlefish_glog",
39    vendor: true,
40    export_include_dirs: ["common/libs"],
41    host_supported: true,
42}
43
44// 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
52cc_defaults {
53    name: "cuttlefish_base",
54    gnu_extensions: false,
55    header_libs: [
56        "cuttlefish_common_headers",
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", "-D_FILE_OFFSET_BITS=64"],
70    vendor: true,
71}
72
73cc_defaults {
74    name: "cuttlefish_guest_product_only",
75    product_specific: true,
76    gnu_extensions: false,
77    header_libs: [
78        "cuttlefish_common_headers_product",
79    ],
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 {
95    name: "cuttlefish_guest_only",
96    defaults: ["cuttlefish_base"],
97}
98
99cc_defaults {
100    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}
111
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}
170