Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2008 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 | |
Tom Cherry | 167fbf5 | 2020-09-17 09:39:24 -0700 | [diff] [blame] | 17 | filegroup { |
| 18 | name: "android_filesystem_config_header", |
| 19 | srcs: ["include/private/android_filesystem_config.h"], |
| 20 | } |
| 21 | |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 22 | // some files must not be compiled when building against Mingw |
| 23 | // they correspond to features not used by our host development tools |
| 24 | // which are also hard or even impossible to port to native Win32 |
| 25 | libcutils_nonwindows_sources = [ |
Elliott Hughes | 8e9aeb9 | 2017-11-10 10:22:07 -0800 | [diff] [blame] | 26 | "fs.cpp", |
Elliott Hughes | 9d12725 | 2018-07-13 10:54:49 -0700 | [diff] [blame] | 27 | "hashmap.cpp", |
Jeff Sharkey | 53d37ba | 2017-11-09 17:41:09 -0700 | [diff] [blame] | 28 | "multiuser.cpp", |
Elliott Hughes | 8e9aeb9 | 2017-11-10 10:22:07 -0800 | [diff] [blame] | 29 | "str_parms.cpp", |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 30 | ] |
| 31 | |
Vijay Venkatraman | 651f838 | 2017-01-25 18:52:17 +0000 | [diff] [blame] | 32 | cc_library_headers { |
Vijay Venkatraman | 651f838 | 2017-01-25 18:52:17 +0000 | [diff] [blame] | 33 | name: "libcutils_headers", |
Steven Moreland | 385fe69 | 2017-04-13 14:29:58 -0700 | [diff] [blame] | 34 | vendor_available: true, |
Justin Yun | feef4d3 | 2020-11-11 19:17:40 +0900 | [diff] [blame] | 35 | product_available: true, |
Jiyong Park | 612210c | 2018-04-27 21:48:43 +0900 | [diff] [blame] | 36 | recovery_available: true, |
Tom Cherry | a5edc0f | 2020-09-17 09:38:42 -0700 | [diff] [blame] | 37 | ramdisk_available: true, |
Yifan Hong | 55015ff | 2020-10-27 16:37:06 -0700 | [diff] [blame] | 38 | vendor_ramdisk_available: true, |
Vijay Venkatraman | 651f838 | 2017-01-25 18:52:17 +0000 | [diff] [blame] | 39 | host_supported: true, |
Jiyong Park | 8bf9b16 | 2020-03-07 16:36:09 +0900 | [diff] [blame] | 40 | apex_available: [ |
| 41 | "//apex_available:platform", |
| 42 | "//apex_available:anyapex", |
| 43 | ], |
Jooyung Han | 88f00f2 | 2020-04-16 18:48:33 +0900 | [diff] [blame] | 44 | min_sdk_version: "29", |
dimitry | 051d5cb | 2019-05-16 14:17:00 +0200 | [diff] [blame] | 45 | native_bridge_supported: true, |
Vijay Venkatraman | 651f838 | 2017-01-25 18:52:17 +0000 | [diff] [blame] | 46 | export_include_dirs: ["include"], |
| 47 | target: { |
Steven Moreland | 385fe69 | 2017-04-13 14:29:58 -0700 | [diff] [blame] | 48 | vendor: { |
Justin Yun | feef4d3 | 2020-11-11 19:17:40 +0900 | [diff] [blame] | 49 | override_export_include_dirs: ["include_outside_system"], |
| 50 | }, |
| 51 | product: { |
| 52 | override_export_include_dirs: ["include_outside_system"], |
Steven Moreland | 385fe69 | 2017-04-13 14:29:58 -0700 | [diff] [blame] | 53 | }, |
Dan Willemsen | e0cd1e0 | 2017-03-15 15:23:36 -0700 | [diff] [blame] | 54 | linux_bionic: { |
| 55 | enabled: true, |
| 56 | }, |
| 57 | windows: { |
| 58 | enabled: true, |
| 59 | }, |
Vijay Venkatraman | 651f838 | 2017-01-25 18:52:17 +0000 | [diff] [blame] | 60 | }, |
| 61 | } |
| 62 | |
Josh Gao | a9b62d5 | 2020-02-19 13:50:57 -0800 | [diff] [blame] | 63 | // Socket specific parts of libcutils that are safe to statically link into an APEX. |
Josh Gao | 7f8a37c | 2020-03-09 15:20:55 -0700 | [diff] [blame] | 64 | cc_library { |
Josh Gao | a9b62d5 | 2020-02-19 13:50:57 -0800 | [diff] [blame] | 65 | name: "libcutils_sockets", |
| 66 | vendor_available: true, |
Justin Yun | feef4d3 | 2020-11-11 19:17:40 +0900 | [diff] [blame] | 67 | product_available: true, |
Josh Gao | a9b62d5 | 2020-02-19 13:50:57 -0800 | [diff] [blame] | 68 | recovery_available: true, |
Akilesh Kailash | dfb1e08 | 2020-09-30 01:34:42 +0000 | [diff] [blame] | 69 | ramdisk_available: true, |
Yifan Hong | 55015ff | 2020-10-27 16:37:06 -0700 | [diff] [blame] | 70 | vendor_ramdisk_available: true, |
Josh Gao | a9b62d5 | 2020-02-19 13:50:57 -0800 | [diff] [blame] | 71 | host_supported: true, |
| 72 | native_bridge_supported: true, |
| 73 | apex_available: [ |
| 74 | "//apex_available:platform", |
| 75 | "//apex_available:anyapex", |
| 76 | ], |
Jooyung Han | 88f00f2 | 2020-04-16 18:48:33 +0900 | [diff] [blame] | 77 | min_sdk_version: "29", |
Josh Gao | a9b62d5 | 2020-02-19 13:50:57 -0800 | [diff] [blame] | 78 | |
| 79 | export_include_dirs: ["include"], |
| 80 | |
Josh Gao | 7f8a37c | 2020-03-09 15:20:55 -0700 | [diff] [blame] | 81 | shared_libs: ["liblog"], |
Josh Gao | a9b62d5 | 2020-02-19 13:50:57 -0800 | [diff] [blame] | 82 | srcs: ["sockets.cpp"], |
| 83 | target: { |
| 84 | linux_bionic: { |
| 85 | enabled: true, |
| 86 | }, |
| 87 | |
| 88 | not_windows: { |
| 89 | srcs: [ |
| 90 | "socket_inaddr_any_server_unix.cpp", |
| 91 | "socket_local_client_unix.cpp", |
| 92 | "socket_local_server_unix.cpp", |
| 93 | "socket_network_client_unix.cpp", |
| 94 | "sockets_unix.cpp", |
| 95 | ], |
| 96 | }, |
| 97 | |
| 98 | // "not_windows" means "non-Windows host". |
| 99 | android: { |
| 100 | srcs: [ |
| 101 | "android_get_control_file.cpp", |
| 102 | "socket_inaddr_any_server_unix.cpp", |
| 103 | "socket_local_client_unix.cpp", |
| 104 | "socket_local_server_unix.cpp", |
| 105 | "socket_network_client_unix.cpp", |
| 106 | "sockets_unix.cpp", |
| 107 | ], |
| 108 | static_libs: ["libbase"], |
| 109 | }, |
| 110 | |
| 111 | windows: { |
| 112 | host_ldlibs: ["-lws2_32"], |
| 113 | srcs: [ |
| 114 | "socket_inaddr_any_server_windows.cpp", |
| 115 | "socket_network_client_windows.cpp", |
| 116 | "sockets_windows.cpp", |
| 117 | ], |
| 118 | |
| 119 | enabled: true, |
| 120 | cflags: [ |
| 121 | "-D_GNU_SOURCE", |
| 122 | ], |
| 123 | }, |
| 124 | }, |
| 125 | } |
| 126 | |
| 127 | cc_test { |
| 128 | name: "libcutils_sockets_test", |
| 129 | test_suites: ["device-tests"], |
| 130 | static_libs: ["libbase", "libcutils_sockets"], |
| 131 | cflags: [ |
| 132 | "-Wall", |
| 133 | "-Wextra", |
| 134 | "-Werror", |
| 135 | ], |
| 136 | |
| 137 | srcs: ["sockets_test.cpp"], |
| 138 | target: { |
| 139 | android: { |
| 140 | srcs: [ |
| 141 | "android_get_control_file_test.cpp", |
| 142 | "android_get_control_socket_test.cpp", |
| 143 | ], |
| 144 | }, |
| 145 | }, |
| 146 | } |
| 147 | |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 148 | cc_library { |
| 149 | name: "libcutils", |
Steven Moreland | 385fe69 | 2017-04-13 14:29:58 -0700 | [diff] [blame] | 150 | vendor_available: true, |
Justin Yun | feef4d3 | 2020-11-11 19:17:40 +0900 | [diff] [blame] | 151 | product_available: true, |
Justin Yun | 9ca9245 | 2017-07-31 15:41:10 +0900 | [diff] [blame] | 152 | vndk: { |
| 153 | enabled: true, |
| 154 | support_system_process: true, |
| 155 | }, |
Jiyong Park | 612210c | 2018-04-27 21:48:43 +0900 | [diff] [blame] | 156 | recovery_available: true, |
Yifan Hong | 55015ff | 2020-10-27 16:37:06 -0700 | [diff] [blame] | 157 | vendor_ramdisk_available: true, |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 158 | host_supported: true, |
Jiyong Park | 8bf9b16 | 2020-03-07 16:36:09 +0900 | [diff] [blame] | 159 | apex_available: [ |
| 160 | "//apex_available:platform", |
| 161 | "//apex_available:anyapex", |
| 162 | ], |
Jooyung Han | 88f00f2 | 2020-04-16 18:48:33 +0900 | [diff] [blame] | 163 | min_sdk_version: "29", |
dimitry | 051d5cb | 2019-05-16 14:17:00 +0200 | [diff] [blame] | 164 | native_bridge_supported: true, |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 165 | srcs: [ |
Elliott Hughes | 8e9aeb9 | 2017-11-10 10:22:07 -0800 | [diff] [blame] | 166 | "config_utils.cpp", |
Elliott Hughes | 8e9aeb9 | 2017-11-10 10:22:07 -0800 | [diff] [blame] | 167 | "canned_fs_config.cpp", |
Elliott Hughes | 8e9aeb9 | 2017-11-10 10:22:07 -0800 | [diff] [blame] | 168 | "iosched_policy.cpp", |
| 169 | "load_file.cpp", |
| 170 | "native_handle.cpp", |
S Vasudev Prasad | 100b08a | 2020-05-08 11:45:45 +0530 | [diff] [blame] | 171 | "properties.cpp", |
Elliott Hughes | 8e9aeb9 | 2017-11-10 10:22:07 -0800 | [diff] [blame] | 172 | "record_stream.cpp", |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 173 | "strlcpy.c", |
Elliott Hughes | 8e9aeb9 | 2017-11-10 10:22:07 -0800 | [diff] [blame] | 174 | "threads.cpp", |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 175 | ], |
| 176 | |
| 177 | target: { |
Dan Willemsen | e0cd1e0 | 2017-03-15 15:23:36 -0700 | [diff] [blame] | 178 | linux_bionic: { |
| 179 | enabled: true, |
Dan Willemsen | e0cd1e0 | 2017-03-15 15:23:36 -0700 | [diff] [blame] | 180 | }, |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 181 | not_windows: { |
| 182 | srcs: libcutils_nonwindows_sources + [ |
Elliott Hughes | 8e9aeb9 | 2017-11-10 10:22:07 -0800 | [diff] [blame] | 183 | "ashmem-host.cpp", |
Jiyong Park | a2159c4 | 2019-02-03 00:34:29 +0900 | [diff] [blame] | 184 | "fs_config.cpp", |
Elliott Hughes | 8e9aeb9 | 2017-11-10 10:22:07 -0800 | [diff] [blame] | 185 | "trace-host.cpp", |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 186 | ], |
| 187 | }, |
| 188 | windows: { |
Steven Moreland | e6132be | 2019-03-25 20:38:56 -0700 | [diff] [blame] | 189 | host_ldlibs: ["-lws2_32"], |
| 190 | |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 191 | srcs: [ |
David Sehr | eb2dd20 | 2018-12-20 12:59:36 -0800 | [diff] [blame] | 192 | "trace-host.cpp", |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 193 | ], |
| 194 | |
| 195 | enabled: true, |
Mark Salyzyn | 163ecc6 | 2017-05-02 08:56:15 -0700 | [diff] [blame] | 196 | cflags: [ |
| 197 | "-D_GNU_SOURCE", |
| 198 | ], |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 199 | }, |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 200 | android: { |
| 201 | srcs: libcutils_nonwindows_sources + [ |
Elliott Hughes | 8e9aeb9 | 2017-11-10 10:22:07 -0800 | [diff] [blame] | 202 | "android_reboot.cpp", |
| 203 | "ashmem-dev.cpp", |
Jiyong Park | a2159c4 | 2019-02-03 00:34:29 +0900 | [diff] [blame] | 204 | "fs_config.cpp", |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 205 | "klog.cpp", |
Elliott Hughes | 8e9aeb9 | 2017-11-10 10:22:07 -0800 | [diff] [blame] | 206 | "partition_utils.cpp", |
Chenbo Feng | baede73 | 2017-10-25 12:31:43 -0700 | [diff] [blame] | 207 | "qtaguid.cpp", |
Elliott Hughes | 8e9aeb9 | 2017-11-10 10:22:07 -0800 | [diff] [blame] | 208 | "trace-dev.cpp", |
Luis Hector Chavez | e97a4b9 | 2017-11-02 14:17:43 -0700 | [diff] [blame] | 209 | "uevent.cpp", |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 210 | ], |
Luis Hector Chavez | fae195b | 2017-11-03 16:22:05 -0700 | [diff] [blame] | 211 | }, |
| 212 | |
| 213 | android_arm: { |
Luis Hector Chavez | fae195b | 2017-11-03 16:22:05 -0700 | [diff] [blame] | 214 | sanitize: { |
| 215 | misc_undefined: ["integer"], |
| 216 | }, |
| 217 | }, |
| 218 | android_arm64: { |
Luis Hector Chavez | fae195b | 2017-11-03 16:22:05 -0700 | [diff] [blame] | 219 | sanitize: { |
| 220 | misc_undefined: ["integer"], |
| 221 | }, |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 222 | }, |
| 223 | |
| 224 | android_x86: { |
Luis Hector Chavez | fae195b | 2017-11-03 16:22:05 -0700 | [diff] [blame] | 225 | // TODO: This is to work around b/29412086. |
| 226 | // Remove once __mulodi4 is available and move the "sanitize" block |
| 227 | // to the android target. |
| 228 | sanitize: { |
| 229 | misc_undefined: [], |
| 230 | }, |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 231 | }, |
| 232 | |
| 233 | android_x86_64: { |
Luis Hector Chavez | fae195b | 2017-11-03 16:22:05 -0700 | [diff] [blame] | 234 | sanitize: { |
| 235 | misc_undefined: ["integer"], |
| 236 | }, |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 237 | }, |
Logan Chien | 25b742c | 2018-05-08 17:37:29 +0800 | [diff] [blame] | 238 | |
Justin Yun | feef4d3 | 2020-11-11 19:17:40 +0900 | [diff] [blame] | 239 | // qtaguid.cpp loads libnetd_client.so with dlopen(). Since |
| 240 | // the interface of libnetd_client.so may vary between AOSP |
| 241 | // releases, exclude qtaguid.cpp from the VNDK-SP variant. |
Logan Chien | 25b742c | 2018-05-08 17:37:29 +0800 | [diff] [blame] | 242 | vendor: { |
| 243 | exclude_srcs: [ |
Logan Chien | 25b742c | 2018-05-08 17:37:29 +0800 | [diff] [blame] | 244 | "qtaguid.cpp", |
| 245 | ], |
Justin Yun | feef4d3 | 2020-11-11 19:17:40 +0900 | [diff] [blame] | 246 | }, |
| 247 | product: { |
| 248 | exclude_srcs: [ |
| 249 | "qtaguid.cpp", |
| 250 | ], |
| 251 | }, |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 252 | }, |
| 253 | |
Josh Gao | a9b62d5 | 2020-02-19 13:50:57 -0800 | [diff] [blame] | 254 | whole_static_libs: ["libcutils_sockets"], |
Joel Fernandes | 5194404 | 2018-12-18 13:32:31 -0800 | [diff] [blame] | 255 | shared_libs: [ |
| 256 | "liblog", |
| 257 | "libbase", |
| 258 | ], |
Steven Moreland | d73be1b | 2017-04-13 23:48:57 -0700 | [diff] [blame] | 259 | header_libs: [ |
Elliott Hughes | 9f49508 | 2018-04-25 14:52:50 -0700 | [diff] [blame] | 260 | "libbase_headers", |
Steven Moreland | d73be1b | 2017-04-13 23:48:57 -0700 | [diff] [blame] | 261 | "libcutils_headers", |
| 262 | "libutils_headers", |
Suren Baghdasaryan | 1bd127b | 2019-01-25 05:30:52 +0000 | [diff] [blame] | 263 | "libprocessgroup_headers", |
Steven Moreland | d73be1b | 2017-04-13 23:48:57 -0700 | [diff] [blame] | 264 | ], |
Suren Baghdasaryan | 1bd127b | 2019-01-25 05:30:52 +0000 | [diff] [blame] | 265 | export_header_lib_headers: [ |
| 266 | "libcutils_headers", |
| 267 | "libprocessgroup_headers", |
| 268 | ], |
Yifan Hong | b680712 | 2017-07-25 15:24:04 -0700 | [diff] [blame] | 269 | local_include_dirs: ["include"], |
Vijay Venkatraman | 651f838 | 2017-01-25 18:52:17 +0000 | [diff] [blame] | 270 | |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 271 | cflags: [ |
| 272 | "-Werror", |
| 273 | "-Wall", |
| 274 | "-Wextra", |
| 275 | ], |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 276 | } |
| 277 | |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 278 | cc_defaults { |
| 279 | name: "libcutils_test_default", |
Elliott Hughes | 7e42484 | 2019-11-12 20:20:42 -0800 | [diff] [blame] | 280 | srcs: [ |
| 281 | "native_handle_test.cpp", |
S Vasudev Prasad | 100b08a | 2020-05-08 11:45:45 +0530 | [diff] [blame] | 282 | "properties_test.cpp", |
Elliott Hughes | 7e42484 | 2019-11-12 20:20:42 -0800 | [diff] [blame] | 283 | "sockets_test.cpp", |
| 284 | ], |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 285 | |
| 286 | target: { |
| 287 | android: { |
| 288 | srcs: [ |
| 289 | "android_get_control_file_test.cpp", |
| 290 | "android_get_control_socket_test.cpp", |
| 291 | "ashmem_test.cpp", |
| 292 | "fs_config_test.cpp", |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 293 | "multiuser_test.cpp", |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 294 | "sched_policy_test.cpp", |
| 295 | "str_parms_test.cpp", |
| 296 | "trace-dev_test.cpp", |
| 297 | ], |
| 298 | }, |
| 299 | |
| 300 | not_windows: { |
| 301 | srcs: [ |
| 302 | "str_parms_test.cpp", |
| 303 | ], |
| 304 | }, |
| 305 | }, |
| 306 | |
| 307 | cflags: [ |
| 308 | "-Wall", |
| 309 | "-Wextra", |
| 310 | "-Werror", |
| 311 | ], |
| 312 | } |
| 313 | |
| 314 | test_libraries = [ |
| 315 | "libcutils", |
| 316 | "liblog", |
| 317 | "libbase", |
| 318 | "libjsoncpp", |
| 319 | "libprocessgroup", |
Yifan Hong | 53e0deb | 2019-03-22 17:01:08 -0700 | [diff] [blame] | 320 | "libcgrouprc", |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 321 | ] |
| 322 | |
| 323 | cc_test { |
| 324 | name: "libcutils_test", |
| 325 | test_suites: ["device-tests"], |
| 326 | defaults: ["libcutils_test_default"], |
| 327 | host_supported: true, |
| 328 | shared_libs: test_libraries, |
Tom Cherry | e41aded | 2019-11-07 14:06:21 -0800 | [diff] [blame] | 329 | require_root: true, |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 330 | } |
| 331 | |
nelsonli | d83f390 | 2020-01-16 17:20:18 +0800 | [diff] [blame] | 332 | cc_defaults { |
| 333 | name: "libcutils_test_static_defaults", |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 334 | defaults: ["libcutils_test_default"], |
Yifan Hong | 53e0deb | 2019-03-22 17:01:08 -0700 | [diff] [blame] | 335 | static_libs: [ |
| 336 | "libc", |
| 337 | "libcgrouprc_format", |
| 338 | ] + test_libraries, |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 339 | stl: "libc++_static", |
Tom Cherry | e41aded | 2019-11-07 14:06:21 -0800 | [diff] [blame] | 340 | require_root: true, |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 341 | |
| 342 | target: { |
| 343 | android: { |
| 344 | static_executable: true, |
| 345 | }, |
| 346 | windows: { |
| 347 | host_ldlibs: ["-lws2_32"], |
| 348 | |
| 349 | enabled: true, |
| 350 | }, |
| 351 | }, |
| 352 | } |
nelsonli | d83f390 | 2020-01-16 17:20:18 +0800 | [diff] [blame] | 353 | |
| 354 | cc_test { |
| 355 | name: "libcutils_test_static", |
| 356 | test_suites: ["device-tests"], |
| 357 | defaults: ["libcutils_test_static_defaults"], |
| 358 | } |
| 359 | |
| 360 | cc_test { |
| 361 | name: "KernelLibcutilsTest", |
Dan Shi | a7b9a2b | 2020-04-06 16:11:29 -0700 | [diff] [blame] | 362 | test_suites: ["general-tests", "vts"], |
nelsonli | d83f390 | 2020-01-16 17:20:18 +0800 | [diff] [blame] | 363 | defaults: ["libcutils_test_static_defaults"], |
| 364 | test_config: "KernelLibcutilsTest.xml", |
| 365 | } |