Greg Hartman | bff7e63 | 2017-09-29 11:32:08 -0700 | [diff] [blame] | 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 | |
| 16 | subdirs = [ |
| 17 | "common", |
Tomasz Wiszkowski | eb642fc | 2017-11-28 12:36:31 -0800 | [diff] [blame] | 18 | "guest", |
Greg Hartman | a4ff248 | 2017-10-03 16:35:00 -0700 | [diff] [blame] | 19 | "host", |
Greg Hartman | bff7e63 | 2017-09-29 11:32:08 -0700 | [diff] [blame] | 20 | ] |
| 21 | |
| 22 | cc_library_headers { |
Greg Hartman | a4ff248 | 2017-10-03 16:35:00 -0700 | [diff] [blame] | 23 | name: "cuttlefish_common_headers", |
Isaac Chen | fef21be | 2017-12-11 16:57:33 +0800 | [diff] [blame] | 24 | vendor: true, |
Greg Hartman | a4ff248 | 2017-10-03 16:35:00 -0700 | [diff] [blame] | 25 | export_include_dirs: ["."], |
| 26 | host_supported: true, |
| 27 | } |
| 28 | |
Ram Muthiah | 792e2ad | 2019-04-19 11:19:46 -0700 | [diff] [blame] | 29 | cc_library_headers { |
| 30 | name: "cuttlefish_common_headers_product", |
| 31 | product_specific: true, |
| 32 | export_include_dirs: ["."], |
| 33 | host_supported: true, |
| 34 | } |
| 35 | |
Greg Hartman | a4ff248 | 2017-10-03 16:35:00 -0700 | [diff] [blame] | 36 | // TODO(b/67435044) Update the include paths and remove this |
| 37 | cc_library_headers { |
| 38 | name: "cuttlefish_glog", |
Isaac Chen | fef21be | 2017-12-11 16:57:33 +0800 | [diff] [blame] | 39 | vendor: true, |
Greg Hartman | a4ff248 | 2017-10-03 16:35:00 -0700 | [diff] [blame] | 40 | export_include_dirs: ["common/libs"], |
| 41 | host_supported: true, |
Greg Hartman | bff7e63 | 2017-09-29 11:32:08 -0700 | [diff] [blame] | 42 | } |
| 43 | |
Ram Muthiah | 792e2ad | 2019-04-19 11:19:46 -0700 | [diff] [blame] | 44 | // TODO(b/67435044) Update the include paths and remove this |
| 45 | cc_library_headers { |
| 46 | name: "cuttlefish_glog_product", |
| 47 | product_specific: true, |
| 48 | export_include_dirs: ["common/libs"], |
| 49 | host_supported: true, |
| 50 | } |
| 51 | |
Greg Hartman | bff7e63 | 2017-09-29 11:32:08 -0700 | [diff] [blame] | 52 | cc_defaults { |
Greg Hartman | ce872ef | 2017-12-04 22:51:47 -0800 | [diff] [blame] | 53 | name: "cuttlefish_base", |
Tomasz Wiszkowski | 55d53ff | 2017-12-04 15:39:57 -0800 | [diff] [blame] | 54 | gnu_extensions: false, |
| 55 | header_libs: [ |
| 56 | "cuttlefish_common_headers", |
Tomasz Wiszkowski | 55d53ff | 2017-12-04 15:39:57 -0800 | [diff] [blame] | 57 | ], |
Tomasz Wiszkowski | 55d53ff | 2017-12-04 15:39:57 -0800 | [diff] [blame] | 58 | target: { |
Ryan Haining | 508c808 | 2018-03-13 11:26:19 -0700 | [diff] [blame] | 59 | host: { |
Tomasz Wiszkowski | 55d53ff | 2017-12-04 15:39:57 -0800 | [diff] [blame] | 60 | host_ldlibs: ["-lrt"], |
| 61 | cflags: ["-DCUTTLEFISH_HOST"], |
Ryan Haining | 508c808 | 2018-03-13 11:26:19 -0700 | [diff] [blame] | 62 | compile_multilib: "64", |
Ryan Haining | ed1fe92 | 2018-03-13 17:43:30 +0000 | [diff] [blame] | 63 | }, |
| 64 | // We don't need Darwin host-side builds |
| 65 | darwin: { |
| 66 | enabled: false, |
Greg Hartman | a4ff248 | 2017-10-03 16:35:00 -0700 | [diff] [blame] | 67 | }, |
Greg Hartman | bff7e63 | 2017-09-29 11:32:08 -0700 | [diff] [blame] | 68 | }, |
Cody Schuffelen | 88b82d5 | 2019-05-29 14:16:03 -0700 | [diff] [blame] | 69 | cflags: ["-Werror", "-Wall", "-D_FILE_OFFSET_BITS=64"], |
Greg Hartman | ce872ef | 2017-12-04 22:51:47 -0800 | [diff] [blame] | 70 | vendor: true, |
Greg Hartman | a4ff248 | 2017-10-03 16:35:00 -0700 | [diff] [blame] | 71 | } |
| 72 | |
Greg Hartman | ce872ef | 2017-12-04 22:51:47 -0800 | [diff] [blame] | 73 | cc_defaults { |
Ram Muthiah | 792e2ad | 2019-04-19 11:19:46 -0700 | [diff] [blame] | 74 | name: "cuttlefish_guest_product_only", |
| 75 | product_specific: true, |
| 76 | gnu_extensions: false, |
| 77 | header_libs: [ |
| 78 | "cuttlefish_common_headers_product", |
Ram Muthiah | 792e2ad | 2019-04-19 11:19:46 -0700 | [diff] [blame] | 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 | |
| 94 | cc_defaults { |
Greg Hartman | e9adb54 | 2018-05-09 13:12:51 -0700 | [diff] [blame] | 95 | name: "cuttlefish_guest_only", |
| 96 | defaults: ["cuttlefish_base"], |
| 97 | } |
| 98 | |
| 99 | cc_defaults { |
Greg Hartman | ce872ef | 2017-12-04 22:51:47 -0800 | [diff] [blame] | 100 | name: "cuttlefish_host_only", |
| 101 | device_supported: false, |
| 102 | host_supported: true, |
| 103 | defaults: ["cuttlefish_base"], |
| 104 | } |
| 105 | |
| 106 | cc_defaults { |
| 107 | name: "cuttlefish_host_and_guest", |
| 108 | host_supported: true, |
| 109 | defaults: ["cuttlefish_base"], |
| 110 | } |
Ram Muthiah | 6fbd6c8 | 2019-12-10 15:58:27 -0800 | [diff] [blame] | 111 | // |
| 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 | |
| 127 | cc_defaults { |
| 128 | name: "cuttlefish_recovery_available", |
| 129 | recovery_available : true |
| 130 | } |
| 131 | |
| 132 | cc_defaults { |
| 133 | name: "enabled_on_p_and_later", |
| 134 | enabled: true |
| 135 | } |
| 136 | |
| 137 | cc_defaults { |
| 138 | name: "enabled_on_q_and_later", |
| 139 | enabled: true |
| 140 | } |
| 141 | |
| 142 | cc_defaults { |
| 143 | name: "enabled_on_q_internal_and_later", |
| 144 | enabled: true |
| 145 | } |
| 146 | |
| 147 | cc_defaults { |
| 148 | name: "cuttlefish_host_config", |
| 149 | target: { |
| 150 | linux_glibc: { |
| 151 | static_libs: [ |
| 152 | "libcuttlefish_host_config", |
| 153 | ], |
| 154 | }, |
| 155 | }, |
| 156 | } |
| 157 | |
| 158 | cc_defaults { |
| 159 | name: "cuttlefish_libicuuc", |
| 160 | shared_libs: [ |
| 161 | "libicuuc", |
| 162 | "libandroidicu", |
| 163 | ], |
| 164 | } |
| 165 | |
| 166 | cc_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 | |
| 174 | java_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 | } |