GuangHui Liu | 3599439 | 2017-05-10 14:37:17 -0700 | [diff] [blame] | 1 | // Copyright (C) 2017 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 15 | cc_defaults { |
| 16 | name: "adb_defaults", |
| 17 | |
| 18 | cflags: [ |
| 19 | "-Wall", |
| 20 | "-Wextra", |
| 21 | "-Werror", |
Pirama Arumuga Nainar | 7aa2023 | 2018-06-01 11:31:38 -0700 | [diff] [blame] | 22 | "-Wexit-time-destructors", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 23 | "-Wno-unused-parameter", |
| 24 | "-Wno-missing-field-initializers", |
| 25 | "-Wvla", |
| 26 | ], |
| 27 | rtti: true, |
| 28 | |
Josh Gao | 66766f8 | 2018-02-27 15:49:23 -0800 | [diff] [blame] | 29 | use_version_lib: true, |
| 30 | |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 31 | compile_multilib: "first", |
| 32 | product_variables: { |
| 33 | debuggable: { |
| 34 | cflags: [ |
| 35 | "-DALLOW_ADBD_ROOT", |
| 36 | "-DALLOW_ADBD_DISABLE_VERITY", |
| 37 | "-DALLOW_ADBD_NO_AUTH", |
| 38 | ], |
| 39 | }, |
| 40 | }, |
| 41 | |
| 42 | target: { |
| 43 | android: { |
| 44 | cflags: ["-DADB_HOST=0"], |
| 45 | }, |
| 46 | |
| 47 | host: { |
| 48 | cflags: ["-DADB_HOST=1"], |
| 49 | }, |
| 50 | |
| 51 | darwin: { |
| 52 | host_ldlibs: [ |
| 53 | "-lpthread", |
| 54 | "-framework CoreFoundation", |
| 55 | "-framework IOKit", |
| 56 | "-lobjc", |
| 57 | ], |
| 58 | }, |
| 59 | |
| 60 | windows: { |
| 61 | cflags: [ |
| 62 | // Define windows.h and tchar.h Unicode preprocessor symbols so that |
| 63 | // CreateFile(), _tfopen(), etc. map to versions that take wchar_t*, breaking the |
| 64 | // build if you accidentally pass char*. Fix by calling like: |
| 65 | // std::wstring path_wide; |
| 66 | // if (!android::base::UTF8ToWide(path_utf8, &path_wide)) { /* error handling */ } |
| 67 | // CreateFileW(path_wide.c_str()); |
| 68 | "-DUNICODE=1", |
| 69 | "-D_UNICODE=1", |
| 70 | |
Josh Gao | 96049b9 | 2018-03-23 13:03:28 -0700 | [diff] [blame] | 71 | // -std=gnu++11 doesn't set _GNU_SOURCE on Windows. |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 72 | "-D_GNU_SOURCE", |
Josh Gao | 96049b9 | 2018-03-23 13:03:28 -0700 | [diff] [blame] | 73 | |
| 74 | // MinGW hides some things behind _POSIX_SOURCE. |
| 75 | "-D_POSIX_SOURCE", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 76 | ], |
Josh Gao | ea7b95a | 2018-03-23 15:37:20 -0700 | [diff] [blame] | 77 | |
| 78 | host_ldlibs: [ |
| 79 | "-lws2_32", |
| 80 | "-lgdi32", |
| 81 | "-luserenv", |
| 82 | ], |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 83 | }, |
Pirama Arumuga Nainar | 7aa2023 | 2018-06-01 11:31:38 -0700 | [diff] [blame] | 84 | |
| 85 | not_windows: { |
| 86 | cflags: [ |
| 87 | "-Wthread-safety", |
| 88 | ], |
| 89 | }, |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 90 | }, |
| 91 | } |
| 92 | |
| 93 | // libadb |
| 94 | // ========================================================= |
| 95 | // These files are compiled for both the host and the device. |
| 96 | libadb_srcs = [ |
| 97 | "adb.cpp", |
| 98 | "adb_io.cpp", |
| 99 | "adb_listeners.cpp", |
| 100 | "adb_trace.cpp", |
Josh Gao | 7d5762c | 2018-05-24 22:54:50 -0700 | [diff] [blame] | 101 | "adb_unique_fd.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 102 | "adb_utils.cpp", |
| 103 | "fdevent.cpp", |
| 104 | "services.cpp", |
| 105 | "sockets.cpp", |
| 106 | "socket_spec.cpp", |
| 107 | "sysdeps/errno.cpp", |
| 108 | "transport.cpp", |
Josh Gao | 1e41fda | 2018-04-05 16:16:04 -0700 | [diff] [blame] | 109 | "transport_fd.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 110 | "transport_local.cpp", |
| 111 | "transport_usb.cpp", |
| 112 | ] |
| 113 | |
| 114 | libadb_posix_srcs = [ |
| 115 | "sysdeps_unix.cpp", |
| 116 | "sysdeps/posix/network.cpp", |
| 117 | ] |
| 118 | |
| 119 | libadb_test_srcs = [ |
| 120 | "adb_io_test.cpp", |
| 121 | "adb_listeners_test.cpp", |
| 122 | "adb_utils_test.cpp", |
| 123 | "fdevent_test.cpp", |
| 124 | "socket_spec_test.cpp", |
| 125 | "socket_test.cpp", |
| 126 | "sysdeps_test.cpp", |
| 127 | "sysdeps/stat_test.cpp", |
| 128 | "transport_test.cpp", |
Josh Gao | 9f155db | 2018-04-03 14:37:11 -0700 | [diff] [blame] | 129 | "types_test.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 130 | ] |
| 131 | |
| 132 | cc_library_host_static { |
| 133 | name: "libadb_host", |
| 134 | defaults: ["adb_defaults"], |
| 135 | |
| 136 | srcs: libadb_srcs + [ |
| 137 | "client/auth.cpp", |
| 138 | "client/usb_libusb.cpp", |
| 139 | "client/usb_dispatch.cpp", |
| 140 | "client/transport_mdns.cpp", |
Idries Hamadi | 1ecee44 | 2018-01-29 16:30:36 +0000 | [diff] [blame] | 141 | "client/fastdeploy.cpp", |
| 142 | "client/fastdeploycallbacks.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 143 | ], |
| 144 | |
Dan Willemsen | 1886189 | 2018-08-29 14:58:02 -0700 | [diff] [blame^] | 145 | generated_headers: ["platform_tools_version"], |
| 146 | |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 147 | target: { |
| 148 | linux: { |
| 149 | srcs: ["client/usb_linux.cpp"], |
| 150 | }, |
| 151 | darwin: { |
| 152 | srcs: ["client/usb_osx.cpp"], |
| 153 | }, |
| 154 | |
| 155 | not_windows: { |
| 156 | srcs: libadb_posix_srcs, |
| 157 | }, |
| 158 | windows: { |
| 159 | enabled: true, |
| 160 | srcs: [ |
| 161 | "client/usb_windows.cpp", |
| 162 | "sysdeps_win32.cpp", |
| 163 | "sysdeps/win32/errno.cpp", |
| 164 | "sysdeps/win32/stat.cpp", |
| 165 | ], |
| 166 | shared_libs: ["AdbWinApi"], |
| 167 | }, |
| 168 | }, |
| 169 | |
| 170 | static_libs: [ |
| 171 | "libbase", |
| 172 | "libcrypto_utils", |
| 173 | "libcrypto", |
| 174 | "libdiagnose_usb", |
| 175 | "libmdnssd", |
| 176 | "libusb", |
Idries Hamadi | 1ecee44 | 2018-01-29 16:30:36 +0000 | [diff] [blame] | 177 | "libandroidfw", |
| 178 | "libziparchive", |
| 179 | "libz", |
| 180 | "libutils", |
| 181 | "liblog", |
| 182 | "libcutils", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 183 | ], |
| 184 | } |
| 185 | |
| 186 | cc_test_host { |
| 187 | name: "adb_test", |
| 188 | defaults: ["adb_defaults"], |
| 189 | srcs: libadb_test_srcs, |
| 190 | static_libs: [ |
| 191 | "libadb_host", |
| 192 | "libbase", |
| 193 | "libcutils", |
| 194 | "libcrypto_utils", |
| 195 | "libcrypto", |
| 196 | "libmdnssd", |
| 197 | "libdiagnose_usb", |
| 198 | "libusb", |
| 199 | ], |
Josh Gao | ea7b95a | 2018-03-23 15:37:20 -0700 | [diff] [blame] | 200 | |
| 201 | target: { |
| 202 | windows: { |
| 203 | enabled: true, |
| 204 | shared_libs: ["AdbWinApi"], |
| 205 | }, |
| 206 | }, |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 207 | } |
| 208 | |
Josh Gao | 11e41d6 | 2018-04-04 11:27:24 -0700 | [diff] [blame] | 209 | cc_benchmark { |
| 210 | name: "adb_benchmark", |
| 211 | defaults: ["adb_defaults"], |
| 212 | |
| 213 | srcs: ["transport_benchmark.cpp"], |
| 214 | target: { |
| 215 | android: { |
| 216 | static_libs: [ |
| 217 | "libadbd", |
| 218 | ], |
| 219 | }, |
| 220 | host: { |
| 221 | static_libs: [ |
| 222 | "libadb_host", |
| 223 | ], |
| 224 | }, |
| 225 | }, |
| 226 | |
| 227 | static_libs: [ |
| 228 | "libbase", |
| 229 | "libcutils", |
| 230 | "libcrypto_utils", |
| 231 | "libcrypto", |
| 232 | "libdiagnose_usb", |
| 233 | "liblog", |
| 234 | "libusb", |
| 235 | ], |
| 236 | } |
| 237 | |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 238 | cc_binary_host { |
| 239 | name: "adb", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 240 | |
| 241 | defaults: ["adb_defaults"], |
| 242 | |
| 243 | srcs: [ |
| 244 | "client/adb_client.cpp", |
| 245 | "client/bugreport.cpp", |
| 246 | "client/commandline.cpp", |
| 247 | "client/file_sync_client.cpp", |
| 248 | "client/main.cpp", |
| 249 | "client/console.cpp", |
Idries Hamadi | 1ecee44 | 2018-01-29 16:30:36 +0000 | [diff] [blame] | 250 | "client/adb_install.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 251 | "client/line_printer.cpp", |
| 252 | "shell_service_protocol.cpp", |
| 253 | ], |
| 254 | |
| 255 | static_libs: [ |
| 256 | "libadb_host", |
| 257 | "libbase", |
| 258 | "libcutils", |
| 259 | "libcrypto_utils", |
| 260 | "libcrypto", |
| 261 | "libdiagnose_usb", |
| 262 | "liblog", |
| 263 | "libmdnssd", |
| 264 | "libusb", |
Idries Hamadi | 1ecee44 | 2018-01-29 16:30:36 +0000 | [diff] [blame] | 265 | "libandroidfw", |
| 266 | "libziparchive", |
| 267 | "libz", |
| 268 | "libutils", |
| 269 | "liblog", |
| 270 | "libcutils", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 271 | ], |
| 272 | |
| 273 | stl: "libc++_static", |
| 274 | |
| 275 | // Don't add anything here, we don't want additional shared dependencies |
| 276 | // on the host adb tool, and shared libraries that link against libc++ |
| 277 | // will violate ODR |
| 278 | shared_libs: [], |
| 279 | |
| 280 | target: { |
| 281 | darwin: { |
| 282 | cflags: [ |
| 283 | "-Wno-sizeof-pointer-memaccess", |
| 284 | ], |
| 285 | }, |
| 286 | windows: { |
| 287 | enabled: true, |
| 288 | ldflags: ["-municode"], |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 289 | shared_libs: ["AdbWinApi"], |
| 290 | required: [ |
| 291 | "AdbWinUsbApi", |
| 292 | ], |
| 293 | }, |
| 294 | }, |
| 295 | } |
| 296 | |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 297 | // libadbd_core contains the common sources to build libadbd and libadbd_services. |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 298 | cc_library_static { |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 299 | name: "libadbd_core", |
| 300 | defaults: ["adb_defaults"], |
| 301 | recovery_available: true, |
| 302 | |
| 303 | // libminadbd wants both, as it's used to build native tests. |
| 304 | compile_multilib: "both", |
| 305 | |
| 306 | srcs: libadb_srcs + libadb_posix_srcs + [ |
| 307 | "daemon/auth.cpp", |
| 308 | "daemon/jdwp_service.cpp", |
| 309 | "daemon/usb.cpp", |
| 310 | ], |
| 311 | |
| 312 | local_include_dirs: [ |
| 313 | "daemon/include", |
| 314 | ], |
| 315 | |
Dan Willemsen | 1886189 | 2018-08-29 14:58:02 -0700 | [diff] [blame^] | 316 | generated_headers: ["platform_tools_version"], |
| 317 | |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 318 | static_libs: [ |
| 319 | "libdiagnose_usb", |
| 320 | "libqemu_pipe", |
| 321 | ], |
| 322 | |
| 323 | shared_libs: [ |
| 324 | "libasyncio", |
| 325 | "libbase", |
| 326 | "libcrypto", |
| 327 | "libcrypto_utils", |
| 328 | "libcutils", |
| 329 | "liblog", |
| 330 | ], |
| 331 | } |
| 332 | |
| 333 | cc_library { |
| 334 | name: "libadbd_services", |
| 335 | defaults: ["adb_defaults"], |
| 336 | recovery_available: true, |
| 337 | compile_multilib: "both", |
| 338 | |
| 339 | srcs: [ |
| 340 | "daemon/file_sync_service.cpp", |
| 341 | "daemon/framebuffer_service.cpp", |
| 342 | "daemon/mdns.cpp", |
| 343 | "daemon/remount_service.cpp", |
| 344 | "daemon/services.cpp", |
| 345 | "daemon/set_verity_enable_state_service.cpp", |
| 346 | "daemon/shell_service.cpp", |
| 347 | "shell_service_protocol.cpp", |
| 348 | ], |
| 349 | |
| 350 | cflags: [ |
| 351 | "-D_GNU_SOURCE", |
| 352 | "-Wno-deprecated-declarations", |
| 353 | ], |
| 354 | |
| 355 | static_libs: [ |
| 356 | "libadbd_core", |
| 357 | "libavb_user", |
| 358 | "libdiagnose_usb", |
| 359 | "libqemu_pipe", |
| 360 | |
| 361 | // `daemon/shell_service.cpp` uses selinux_android_setcon(), which is not exposed by |
| 362 | // libselinux. |
| 363 | "libselinux", |
| 364 | ], |
| 365 | |
| 366 | shared_libs: [ |
| 367 | "libasyncio", |
| 368 | "libbase", |
| 369 | "libbootloader_message", |
| 370 | "libcrypto", |
| 371 | "libcrypto_utils", |
| 372 | "libcutils", |
| 373 | "libext4_utils", |
| 374 | "libfec", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 375 | "libfs_mgr", |
| 376 | "liblog", |
| 377 | "libmdnssd", |
| 378 | ], |
| 379 | } |
| 380 | |
| 381 | cc_library { |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 382 | name: "libadbd", |
| 383 | defaults: ["adb_defaults"], |
Jiyong Park | eb59039 | 2018-05-24 14:11:00 +0900 | [diff] [blame] | 384 | recovery_available: true, |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 385 | |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 386 | // Avoid getting duplicate symbol of android::build::GetBuildNumber(). |
| 387 | use_version_lib: false, |
| 388 | |
| 389 | // libminadbd wants both, as it's used to build native tests. |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 390 | compile_multilib: "both", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 391 | |
| 392 | // libadbd doesn't build any additional source, but to expose libadbd_core as a shared library. |
| 393 | whole_static_libs: [ |
| 394 | "libadbd_core", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 395 | ], |
| 396 | |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 397 | shared_libs: [ |
| 398 | "libadbd_services", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 399 | "libasyncio", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 400 | "libbase", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 401 | "libcrypto", |
| 402 | "libcrypto_utils", |
| 403 | "libcutils", |
| 404 | "liblog", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 405 | ], |
Jerry Zhang | d4fe8b6 | 2018-05-07 15:14:47 -0700 | [diff] [blame] | 406 | |
| 407 | export_include_dirs: [ |
| 408 | "daemon/include", |
| 409 | ], |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 410 | } |
| 411 | |
| 412 | cc_binary { |
| 413 | name: "adbd", |
| 414 | defaults: ["adb_defaults"], |
Jiyong Park | eb59039 | 2018-05-24 14:11:00 +0900 | [diff] [blame] | 415 | recovery_available: true, |
Josh Gao | 3e0540a | 2018-03-06 12:57:27 -0800 | [diff] [blame] | 416 | |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 417 | srcs: [ |
| 418 | "daemon/main.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 419 | ], |
| 420 | |
| 421 | cflags: [ |
| 422 | "-D_GNU_SOURCE", |
| 423 | "-Wno-deprecated-declarations", |
| 424 | ], |
| 425 | |
| 426 | strip: { |
| 427 | keep_symbols: true, |
| 428 | }, |
| 429 | |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 430 | shared_libs: [ |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 431 | "libadbd", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 432 | "libadbd_services", |
| 433 | "libbase", |
| 434 | "libcap", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 435 | "libcrypto", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 436 | "libcutils", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 437 | "liblog", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 438 | "libminijail", |
| 439 | "libselinux", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 440 | ], |
| 441 | } |
| 442 | |
| 443 | cc_test { |
| 444 | name: "adbd_test", |
| 445 | defaults: ["adb_defaults"], |
| 446 | srcs: libadb_test_srcs + [ |
Josh Gao | 5607e92 | 2018-07-25 18:15:52 -0700 | [diff] [blame] | 447 | "daemon/services.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 448 | "daemon/shell_service.cpp", |
| 449 | "daemon/shell_service_test.cpp", |
| 450 | "shell_service_protocol.cpp", |
| 451 | "shell_service_protocol_test.cpp", |
| 452 | ], |
| 453 | |
| 454 | static_libs: [ |
| 455 | "libadbd", |
| 456 | "libbase", |
Josh Gao | 5607e92 | 2018-07-25 18:15:52 -0700 | [diff] [blame] | 457 | "libbootloader_message", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 458 | "libcutils", |
| 459 | "libcrypto_utils", |
| 460 | "libcrypto", |
| 461 | "libdiagnose_usb", |
| 462 | "liblog", |
| 463 | "libusb", |
| 464 | "libmdnssd", |
Jiyong Park | 19c39fa | 2018-05-29 16:41:30 +0900 | [diff] [blame] | 465 | "libselinux", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 466 | ], |
Elliott Hughes | ce226c9 | 2018-04-27 16:12:06 -0700 | [diff] [blame] | 467 | test_suites: ["device-tests"], |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 468 | } |
| 469 | |
Julien Desprez | ae94f51 | 2018-08-08 12:08:50 -0700 | [diff] [blame] | 470 | python_test_host { |
Elliott Hughes | 307e767 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 471 | name: "adb_integration_test_adb", |
| 472 | main: "test_adb.py", |
| 473 | srcs: [ |
| 474 | "test_adb.py", |
| 475 | ], |
Julien Desprez | ae94f51 | 2018-08-08 12:08:50 -0700 | [diff] [blame] | 476 | test_config: "adb_integration_test_adb.xml", |
| 477 | test_suites: ["general-tests"], |
Elliott Hughes | 307e767 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 478 | version: { |
| 479 | py2: { |
Josh Gao | b1df00e | 2018-08-07 14:31:17 -0700 | [diff] [blame] | 480 | enabled: false, |
Elliott Hughes | 307e767 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 481 | }, |
| 482 | py3: { |
Josh Gao | b1df00e | 2018-08-07 14:31:17 -0700 | [diff] [blame] | 483 | enabled: true, |
Elliott Hughes | 307e767 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 484 | }, |
GuangHui Liu | 3599439 | 2017-05-10 14:37:17 -0700 | [diff] [blame] | 485 | }, |
GuangHui Liu | 3599439 | 2017-05-10 14:37:17 -0700 | [diff] [blame] | 486 | } |
| 487 | |
| 488 | python_binary_host { |
Elliott Hughes | 307e767 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 489 | name: "adb_integration_test_device", |
| 490 | main: "test_device.py", |
| 491 | srcs: [ |
| 492 | "test_device.py", |
| 493 | ], |
| 494 | libs: [ |
| 495 | "adb_py", |
| 496 | ], |
| 497 | version: { |
| 498 | py2: { |
| 499 | enabled: true, |
| 500 | }, |
| 501 | py3: { |
| 502 | enabled: false, |
| 503 | }, |
GuangHui Liu | 3599439 | 2017-05-10 14:37:17 -0700 | [diff] [blame] | 504 | }, |
GuangHui Liu | 3599439 | 2017-05-10 14:37:17 -0700 | [diff] [blame] | 505 | } |