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