blob: f6aede818445d9ab94df73e36cf24b1d1163bc05 [file] [log] [blame]
GuangHui Liu41bda342017-05-10 14:37:17 -07001// 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 Gao27768452018-01-02 12:01:43 -080015cc_defaults {
16 name: "adb_defaults",
17
18 cflags: [
19 "-Wall",
20 "-Wextra",
21 "-Werror",
Pirama Arumuga Nainar79821782018-06-01 11:31:38 -070022 "-Wexit-time-destructors",
Josh Gao27768452018-01-02 12:01:43 -080023 "-Wno-unused-parameter",
24 "-Wno-missing-field-initializers",
Josh Gao776c2ec2019-01-22 19:36:15 -080025 "-Wthread-safety",
Josh Gao27768452018-01-02 12:01:43 -080026 "-Wvla",
Bowgo Tsai9b30c0a2019-03-12 04:25:33 +080027 "-DADB_HOST=1", // overridden by adbd_defaults
28 "-DALLOW_ADBD_ROOT=0", // overridden by adbd_defaults
Josh Gao27241a72019-04-25 14:04:57 -070029 "-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION=1",
Josh Gao27768452018-01-02 12:01:43 -080030 ],
Josh Gao6eb78822018-11-16 15:40:16 -080031 cpp_std: "experimental",
Josh Gao27768452018-01-02 12:01:43 -080032
Josh Gaoc7567fa2018-02-27 15:49:23 -080033 use_version_lib: true,
Josh Gao27768452018-01-02 12:01:43 -080034 compile_multilib: "first",
Josh Gao27768452018-01-02 12:01:43 -080035
36 target: {
Josh Gao27768452018-01-02 12:01:43 -080037 darwin: {
38 host_ldlibs: [
39 "-lpthread",
40 "-framework CoreFoundation",
41 "-framework IOKit",
42 "-lobjc",
43 ],
44 },
45
46 windows: {
47 cflags: [
48 // Define windows.h and tchar.h Unicode preprocessor symbols so that
49 // CreateFile(), _tfopen(), etc. map to versions that take wchar_t*, breaking the
50 // build if you accidentally pass char*. Fix by calling like:
51 // std::wstring path_wide;
52 // if (!android::base::UTF8ToWide(path_utf8, &path_wide)) { /* error handling */ }
53 // CreateFileW(path_wide.c_str());
54 "-DUNICODE=1",
55 "-D_UNICODE=1",
56
Elliott Hughes3c59cb82018-12-03 09:02:18 -080057 // Unlike on Linux, -std=gnu++ doesn't set _GNU_SOURCE on Windows.
Josh Gao27768452018-01-02 12:01:43 -080058 "-D_GNU_SOURCE",
Josh Gao2e1e7892018-03-23 13:03:28 -070059
60 // MinGW hides some things behind _POSIX_SOURCE.
61 "-D_POSIX_SOURCE",
Josh Gao776c2ec2019-01-22 19:36:15 -080062
Josh Gao4710e532019-04-17 16:57:43 -070063 // libusb uses __stdcall on a variadic function, which gets ignored.
64 "-Wno-ignored-attributes",
65
Josh Gao776c2ec2019-01-22 19:36:15 -080066 // Not supported yet.
67 "-Wno-thread-safety",
Josh Gao27768452018-01-02 12:01:43 -080068 ],
Josh Gaof8a97c12018-03-23 15:37:20 -070069
70 host_ldlibs: [
71 "-lws2_32",
72 "-lgdi32",
73 "-luserenv",
74 ],
Josh Gao27768452018-01-02 12:01:43 -080075 },
Josh Gao776c2ec2019-01-22 19:36:15 -080076 },
77}
Pirama Arumuga Nainar79821782018-06-01 11:31:38 -070078
Josh Gao776c2ec2019-01-22 19:36:15 -080079cc_defaults {
80 name: "adbd_defaults",
81 defaults: ["adb_defaults"],
82
83 cflags: ["-UADB_HOST", "-DADB_HOST=0"],
84 product_variables: {
85 debuggable: {
Pirama Arumuga Nainar79821782018-06-01 11:31:38 -070086 cflags: [
Bowgo Tsai9b30c0a2019-03-12 04:25:33 +080087 "-UALLOW_ADBD_ROOT",
88 "-DALLOW_ADBD_ROOT=1",
Josh Gao776c2ec2019-01-22 19:36:15 -080089 "-DALLOW_ADBD_DISABLE_VERITY",
90 "-DALLOW_ADBD_NO_AUTH",
Pirama Arumuga Nainar79821782018-06-01 11:31:38 -070091 ],
92 },
Josh Gao27768452018-01-02 12:01:43 -080093 },
94}
95
Josh Gao776c2ec2019-01-22 19:36:15 -080096cc_defaults {
97 name: "host_adbd_supported",
98
99 host_supported: true,
100 target: {
101 linux: {
102 enabled: true,
103 host_ldlibs: [
104 "-lresolv", // b64_pton
105 "-lutil", // forkpty
106 ],
107 },
108 darwin: {
109 enabled: false,
110 },
111 windows: {
112 enabled: false,
113 },
114 },
115}
116
Josh Gao27768452018-01-02 12:01:43 -0800117// libadb
118// =========================================================
119// These files are compiled for both the host and the device.
120libadb_srcs = [
121 "adb.cpp",
122 "adb_io.cpp",
123 "adb_listeners.cpp",
124 "adb_trace.cpp",
Josh Gao6e1246c2018-05-24 22:54:50 -0700125 "adb_unique_fd.cpp",
Josh Gao27768452018-01-02 12:01:43 -0800126 "adb_utils.cpp",
Josh Gao57e09b12019-06-28 13:50:37 -0700127 "fdevent/fdevent.cpp",
Josh Gao95068bb2019-07-08 15:23:17 -0700128 "fdevent/fdevent_poll.cpp",
Josh Gao27768452018-01-02 12:01:43 -0800129 "services.cpp",
130 "sockets.cpp",
131 "socket_spec.cpp",
132 "sysdeps/errno.cpp",
133 "transport.cpp",
Josh Gao6082e7d2018-04-05 16:16:04 -0700134 "transport_fd.cpp",
Josh Gao27768452018-01-02 12:01:43 -0800135 "transport_local.cpp",
136 "transport_usb.cpp",
137]
138
139libadb_posix_srcs = [
140 "sysdeps_unix.cpp",
141 "sysdeps/posix/network.cpp",
142]
143
144libadb_test_srcs = [
145 "adb_io_test.cpp",
146 "adb_listeners_test.cpp",
147 "adb_utils_test.cpp",
Josh Gao57e09b12019-06-28 13:50:37 -0700148 "fdevent/fdevent_test.cpp",
Josh Gao27768452018-01-02 12:01:43 -0800149 "socket_spec_test.cpp",
150 "socket_test.cpp",
151 "sysdeps_test.cpp",
152 "sysdeps/stat_test.cpp",
153 "transport_test.cpp",
Josh Gao7c738cd2018-04-03 14:37:11 -0700154 "types_test.cpp",
Josh Gao27768452018-01-02 12:01:43 -0800155]
156
157cc_library_host_static {
158 name: "libadb_host",
159 defaults: ["adb_defaults"],
160
161 srcs: libadb_srcs + [
162 "client/auth.cpp",
163 "client/usb_libusb.cpp",
164 "client/usb_dispatch.cpp",
165 "client/transport_mdns.cpp",
166 ],
167
Dan Willemsenab971b52018-08-29 14:58:02 -0700168 generated_headers: ["platform_tools_version"],
169
Josh Gao27768452018-01-02 12:01:43 -0800170 target: {
171 linux: {
172 srcs: ["client/usb_linux.cpp"],
173 },
174 darwin: {
175 srcs: ["client/usb_osx.cpp"],
176 },
177
178 not_windows: {
179 srcs: libadb_posix_srcs,
180 },
181 windows: {
182 enabled: true,
183 srcs: [
184 "client/usb_windows.cpp",
185 "sysdeps_win32.cpp",
186 "sysdeps/win32/errno.cpp",
187 "sysdeps/win32/stat.cpp",
188 ],
189 shared_libs: ["AdbWinApi"],
190 },
191 },
192
193 static_libs: [
194 "libbase",
195 "libcrypto_utils",
196 "libcrypto",
197 "libdiagnose_usb",
198 "libmdnssd",
199 "libusb",
Idries Hamadi269a4b42018-09-13 18:00:25 +0100200 "libutils",
201 "liblog",
202 "libcutils",
Josh Gao27768452018-01-02 12:01:43 -0800203 ],
204}
205
206cc_test_host {
207 name: "adb_test",
208 defaults: ["adb_defaults"],
209 srcs: libadb_test_srcs,
210 static_libs: [
211 "libadb_host",
212 "libbase",
213 "libcutils",
214 "libcrypto_utils",
215 "libcrypto",
216 "libmdnssd",
217 "libdiagnose_usb",
218 "libusb",
219 ],
Josh Gaof8a97c12018-03-23 15:37:20 -0700220
221 target: {
222 windows: {
223 enabled: true,
224 shared_libs: ["AdbWinApi"],
225 },
226 },
Josh Gao27768452018-01-02 12:01:43 -0800227}
228
Josh Gao9c596492018-04-04 11:27:24 -0700229cc_benchmark {
230 name: "adb_benchmark",
231 defaults: ["adb_defaults"],
232
233 srcs: ["transport_benchmark.cpp"],
234 target: {
235 android: {
236 static_libs: [
237 "libadbd",
238 ],
239 },
240 host: {
241 static_libs: [
242 "libadb_host",
243 ],
244 },
245 },
246
247 static_libs: [
248 "libbase",
249 "libcutils",
250 "libcrypto_utils",
251 "libcrypto",
252 "libdiagnose_usb",
253 "liblog",
254 "libusb",
255 ],
256}
257
Josh Gao27768452018-01-02 12:01:43 -0800258cc_binary_host {
259 name: "adb",
Josh Gao27768452018-01-02 12:01:43 -0800260
261 defaults: ["adb_defaults"],
262
263 srcs: [
264 "client/adb_client.cpp",
265 "client/bugreport.cpp",
266 "client/commandline.cpp",
267 "client/file_sync_client.cpp",
268 "client/main.cpp",
269 "client/console.cpp",
Idries Hamadied409ea2018-01-29 16:30:36 +0000270 "client/adb_install.cpp",
Josh Gao27768452018-01-02 12:01:43 -0800271 "client/line_printer.cpp",
272 "shell_service_protocol.cpp",
273 ],
274
275 static_libs: [
276 "libadb_host",
277 "libbase",
278 "libcutils",
279 "libcrypto_utils",
280 "libcrypto",
281 "libdiagnose_usb",
282 "liblog",
283 "libmdnssd",
284 "libusb",
Idries Hamadi269a4b42018-09-13 18:00:25 +0100285 "libutils",
286 "liblog",
287 "libcutils",
Josh Gao27768452018-01-02 12:01:43 -0800288 ],
289
290 stl: "libc++_static",
291
292 // Don't add anything here, we don't want additional shared dependencies
293 // on the host adb tool, and shared libraries that link against libc++
294 // will violate ODR
295 shared_libs: [],
296
Idries Hamadi7575cd92018-08-24 11:46:45 +0100297 required: [
298 "deploypatchgenerator",
299 ],
300
Dan Willemsen3f439a72018-11-19 19:11:35 -0800301 // Archive adb, adb.exe.
302 dist: {
303 targets: [
304 "dist_files",
305 "sdk",
306 "win_sdk",
307 ],
308 },
309
Josh Gao27768452018-01-02 12:01:43 -0800310 target: {
311 darwin: {
312 cflags: [
313 "-Wno-sizeof-pointer-memaccess",
314 ],
315 },
316 windows: {
317 enabled: true,
318 ldflags: ["-municode"],
Josh Gao27768452018-01-02 12:01:43 -0800319 shared_libs: ["AdbWinApi"],
320 required: [
321 "AdbWinUsbApi",
322 ],
323 },
324 },
325}
326
Tao Baoeca59ae2018-07-30 20:45:27 -0700327// libadbd_core contains the common sources to build libadbd and libadbd_services.
Josh Gao27768452018-01-02 12:01:43 -0800328cc_library_static {
Tao Baoeca59ae2018-07-30 20:45:27 -0700329 name: "libadbd_core",
Josh Gao776c2ec2019-01-22 19:36:15 -0800330 defaults: ["adbd_defaults", "host_adbd_supported"],
Tao Baoeca59ae2018-07-30 20:45:27 -0700331 recovery_available: true,
332
333 // libminadbd wants both, as it's used to build native tests.
334 compile_multilib: "both",
335
336 srcs: libadb_srcs + libadb_posix_srcs + [
337 "daemon/auth.cpp",
338 "daemon/jdwp_service.cpp",
Tao Baoeca59ae2018-07-30 20:45:27 -0700339 ],
340
341 local_include_dirs: [
342 "daemon/include",
343 ],
344
Dan Willemsenab971b52018-08-29 14:58:02 -0700345 generated_headers: ["platform_tools_version"],
346
Tao Baoeca59ae2018-07-30 20:45:27 -0700347 static_libs: [
Josh Gao5f2c5bb2019-06-19 14:14:57 -0700348 "libadbconnection_server",
Tao Baoeca59ae2018-07-30 20:45:27 -0700349 "libdiagnose_usb",
Tao Baoeca59ae2018-07-30 20:45:27 -0700350 ],
351
352 shared_libs: [
353 "libasyncio",
354 "libbase",
355 "libcrypto",
356 "libcrypto_utils",
357 "libcutils",
358 "liblog",
359 ],
Josh Gao776c2ec2019-01-22 19:36:15 -0800360
361 target: {
362 android: {
363 whole_static_libs: [
364 "libqemu_pipe",
365 ],
366 srcs: [
367 "daemon/transport_qemu.cpp",
368 "daemon/usb.cpp",
369 "daemon/usb_ffs.cpp",
370 "daemon/usb_legacy.cpp",
371 ]
372 },
373 linux_glibc: {
374 srcs: [
375 "daemon/usb_dummy.cpp",
376 ]
377 }
378 },
Tao Baoeca59ae2018-07-30 20:45:27 -0700379}
380
381cc_library {
382 name: "libadbd_services",
Josh Gao776c2ec2019-01-22 19:36:15 -0800383 defaults: ["adbd_defaults", "host_adbd_supported"],
Tao Baoeca59ae2018-07-30 20:45:27 -0700384 recovery_available: true,
385 compile_multilib: "both",
386
387 srcs: [
388 "daemon/file_sync_service.cpp",
Tao Baoeca59ae2018-07-30 20:45:27 -0700389 "daemon/services.cpp",
Tao Baoeca59ae2018-07-30 20:45:27 -0700390 "daemon/shell_service.cpp",
391 "shell_service_protocol.cpp",
392 ],
393
394 cflags: [
395 "-D_GNU_SOURCE",
396 "-Wno-deprecated-declarations",
397 ],
398
399 static_libs: [
Josh Gao5f2c5bb2019-06-19 14:14:57 -0700400 "libadbconnection_server",
Tao Baoeca59ae2018-07-30 20:45:27 -0700401 "libadbd_core",
Tao Baoeca59ae2018-07-30 20:45:27 -0700402 "libdiagnose_usb",
Tao Baoeca59ae2018-07-30 20:45:27 -0700403 ],
404
405 shared_libs: [
406 "libasyncio",
407 "libbase",
Tao Baoeca59ae2018-07-30 20:45:27 -0700408 "libcrypto",
409 "libcrypto_utils",
410 "libcutils",
Tao Baoeca59ae2018-07-30 20:45:27 -0700411 "liblog",
Tao Baoeca59ae2018-07-30 20:45:27 -0700412 ],
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800413
Mark Salyzyn2f6c1802019-02-15 07:45:26 -0800414 product_variables: {
415 debuggable: {
416 required: [
417 "remount",
418 ],
419 },
420 },
421
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800422 target: {
Josh Gao776c2ec2019-01-22 19:36:15 -0800423 android: {
424 srcs: [
425 "daemon/abb_service.cpp",
426 "daemon/framebuffer_service.cpp",
427 "daemon/mdns.cpp",
428 "daemon/reboot_service.cpp",
429 "daemon/remount_service.cpp",
430 "daemon/restart_service.cpp",
431 "daemon/set_verity_enable_state_service.cpp",
432 ],
433 static_libs: [
434 "libavb_user",
435 ],
436 shared_libs: [
437 "libbootloader_message",
438 "libmdnssd",
439 "libext4_utils",
440 "libfec",
441 "libfs_mgr",
442 "libselinux",
443 ],
444 },
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800445 recovery: {
446 exclude_srcs: [
447 "daemon/abb_service.cpp",
448 ],
449 },
450 },
Tao Baoeca59ae2018-07-30 20:45:27 -0700451}
452
453cc_library {
Josh Gao27768452018-01-02 12:01:43 -0800454 name: "libadbd",
Josh Gao776c2ec2019-01-22 19:36:15 -0800455 defaults: ["adbd_defaults", "host_adbd_supported"],
Jiyong Parka0e75042018-05-24 14:11:00 +0900456 recovery_available: true,
Josh Gao27768452018-01-02 12:01:43 -0800457
Tao Baoeca59ae2018-07-30 20:45:27 -0700458 // Avoid getting duplicate symbol of android::build::GetBuildNumber().
459 use_version_lib: false,
460
461 // libminadbd wants both, as it's used to build native tests.
Josh Gao27768452018-01-02 12:01:43 -0800462 compile_multilib: "both",
Tao Baoeca59ae2018-07-30 20:45:27 -0700463
464 // libadbd doesn't build any additional source, but to expose libadbd_core as a shared library.
465 whole_static_libs: [
466 "libadbd_core",
Josh Gao27768452018-01-02 12:01:43 -0800467 ],
468
Tao Baoeca59ae2018-07-30 20:45:27 -0700469 shared_libs: [
470 "libadbd_services",
Josh Gao27768452018-01-02 12:01:43 -0800471 "libasyncio",
Josh Gao27768452018-01-02 12:01:43 -0800472 "libbase",
Tao Baoeca59ae2018-07-30 20:45:27 -0700473 "libcrypto",
474 "libcrypto_utils",
475 "libcutils",
476 "liblog",
Josh Gao27768452018-01-02 12:01:43 -0800477 ],
Jerry Zhangb156c602018-05-07 15:14:47 -0700478
479 export_include_dirs: [
480 "daemon/include",
481 ],
Josh Gao27768452018-01-02 12:01:43 -0800482}
483
484cc_binary {
485 name: "adbd",
Josh Gao776c2ec2019-01-22 19:36:15 -0800486 defaults: ["adbd_defaults", "host_adbd_supported"],
Jiyong Parka0e75042018-05-24 14:11:00 +0900487 recovery_available: true,
Josh Gao8db99f82018-03-06 12:57:27 -0800488
Josh Gao27768452018-01-02 12:01:43 -0800489 srcs: [
490 "daemon/main.cpp",
Josh Gao27768452018-01-02 12:01:43 -0800491 ],
492
493 cflags: [
494 "-D_GNU_SOURCE",
495 "-Wno-deprecated-declarations",
496 ],
497
498 strip: {
499 keep_symbols: true,
500 },
501
Tao Baoeca59ae2018-07-30 20:45:27 -0700502 shared_libs: [
Josh Gao27768452018-01-02 12:01:43 -0800503 "libadbd",
Tao Baoeca59ae2018-07-30 20:45:27 -0700504 "libadbd_services",
505 "libbase",
506 "libcap",
Josh Gao27768452018-01-02 12:01:43 -0800507 "libcrypto",
Tao Baoeca59ae2018-07-30 20:45:27 -0700508 "libcutils",
Josh Gao27768452018-01-02 12:01:43 -0800509 "liblog",
Josh Gao27768452018-01-02 12:01:43 -0800510 "libminijail",
511 "libselinux",
Josh Gao27768452018-01-02 12:01:43 -0800512 ],
513}
514
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800515cc_binary {
Josh Gaobde8c842019-05-01 18:25:14 -0700516 name: "static_adbd",
517 defaults: ["adbd_defaults", "host_adbd_supported"],
518
519 recovery_available: false,
520 static_executable: true,
521 host_supported: false,
522
523 srcs: [
524 "daemon/main.cpp",
525 ],
526
527 cflags: [
528 "-D_GNU_SOURCE",
529 "-Wno-deprecated-declarations",
530 ],
531
532 strip: {
533 keep_symbols: true,
534 },
535
536 static_libs: [
Josh Gao5f2c5bb2019-06-19 14:14:57 -0700537 "libadbconnection_server",
Josh Gaobde8c842019-05-01 18:25:14 -0700538 "libadbd",
539 "libadbd_services",
540 "libasyncio",
541 "libavb_user",
542 "libbase",
543 "libbootloader_message",
544 "libcap",
545 "libcrypto",
546 "libcrypto_utils",
547 "libcutils",
548 "libdiagnose_usb",
549 "libext4_utils",
550 "libfec",
551 "libfec_rs",
552 "libfs_mgr",
553 "liblog",
554 "liblp",
555 "libmdnssd",
556 "libminijail",
557 "libselinux",
558 "libsquashfs_utils",
559 ],
560}
561
562cc_binary {
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800563 name: "abb",
564
Josh Gao776c2ec2019-01-22 19:36:15 -0800565 defaults: ["adbd_defaults"],
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800566 recovery_available: false,
567
568 srcs: [
569 "daemon/abb.cpp",
570 ],
571
572 cflags: [
573 "-D_GNU_SOURCE",
574 "-Wno-deprecated-declarations",
575 ],
576
577 strip: {
578 keep_symbols: true,
579 },
580
581 static_libs: [
582 "libadbd_core",
583 "libadbd_services",
584 "libcmd",
585 ],
586
587 shared_libs: [
588 "libbase",
589 "libbinder",
590 "liblog",
591 "libutils",
592 "libselinux",
593 ],
594}
595
Josh Gao27768452018-01-02 12:01:43 -0800596cc_test {
597 name: "adbd_test",
Josh Gao776c2ec2019-01-22 19:36:15 -0800598 defaults: ["adbd_defaults"],
Josh Gao27768452018-01-02 12:01:43 -0800599 srcs: libadb_test_srcs + [
Josh Gao997cfac2018-07-25 18:15:52 -0700600 "daemon/services.cpp",
Josh Gao27768452018-01-02 12:01:43 -0800601 "daemon/shell_service.cpp",
602 "daemon/shell_service_test.cpp",
603 "shell_service_protocol.cpp",
604 "shell_service_protocol_test.cpp",
605 ],
606
607 static_libs: [
608 "libadbd",
609 "libbase",
Josh Gao997cfac2018-07-25 18:15:52 -0700610 "libbootloader_message",
Josh Gao27768452018-01-02 12:01:43 -0800611 "libcutils",
612 "libcrypto_utils",
613 "libcrypto",
614 "libdiagnose_usb",
615 "liblog",
616 "libusb",
617 "libmdnssd",
Jiyong Park011ee122018-05-29 16:41:30 +0900618 "libselinux",
Josh Gao27768452018-01-02 12:01:43 -0800619 ],
Elliott Hughes40fdf3f2018-04-27 16:12:06 -0700620 test_suites: ["device-tests"],
Josh Gao27768452018-01-02 12:01:43 -0800621}
622
Julien Desprez75fea7e2018-08-08 12:08:50 -0700623python_test_host {
Elliott Hughesdc699a22018-02-16 17:58:14 -0800624 name: "adb_integration_test_adb",
625 main: "test_adb.py",
626 srcs: [
627 "test_adb.py",
628 ],
Julien Desprez75fea7e2018-08-08 12:08:50 -0700629 test_config: "adb_integration_test_adb.xml",
630 test_suites: ["general-tests"],
Elliott Hughesdc699a22018-02-16 17:58:14 -0800631 version: {
632 py2: {
Josh Gao9b6522b2018-08-07 14:31:17 -0700633 enabled: false,
Elliott Hughesdc699a22018-02-16 17:58:14 -0800634 },
635 py3: {
Josh Gao9b6522b2018-08-07 14:31:17 -0700636 enabled: true,
Elliott Hughesdc699a22018-02-16 17:58:14 -0800637 },
GuangHui Liu41bda342017-05-10 14:37:17 -0700638 },
GuangHui Liu41bda342017-05-10 14:37:17 -0700639}
640
Julien Desprez618f0e12018-10-12 13:48:14 -0700641python_test_host {
Elliott Hughesdc699a22018-02-16 17:58:14 -0800642 name: "adb_integration_test_device",
643 main: "test_device.py",
644 srcs: [
645 "test_device.py",
646 ],
647 libs: [
648 "adb_py",
649 ],
Julien Desprez618f0e12018-10-12 13:48:14 -0700650 test_config: "adb_integration_test_device.xml",
651 test_suites: ["general-tests"],
Elliott Hughesdc699a22018-02-16 17:58:14 -0800652 version: {
653 py2: {
654 enabled: true,
655 },
656 py3: {
657 enabled: false,
658 },
GuangHui Liu41bda342017-05-10 14:37:17 -0700659 },
GuangHui Liu41bda342017-05-10 14:37:17 -0700660}