blob: ef5057aaff2d9859bc385c455a73fe293bf1f70a [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,
Josh Gaoefd8ae22019-07-16 15:08:42 -0700224 ldflags: ["-municode"],
Josh Gaof8a97c12018-03-23 15:37:20 -0700225 shared_libs: ["AdbWinApi"],
226 },
227 },
Josh Gao27768452018-01-02 12:01:43 -0800228}
229
Josh Gao9c596492018-04-04 11:27:24 -0700230cc_benchmark {
231 name: "adb_benchmark",
232 defaults: ["adb_defaults"],
233
234 srcs: ["transport_benchmark.cpp"],
235 target: {
236 android: {
237 static_libs: [
238 "libadbd",
239 ],
240 },
241 host: {
242 static_libs: [
243 "libadb_host",
244 ],
245 },
246 },
247
248 static_libs: [
249 "libbase",
250 "libcutils",
251 "libcrypto_utils",
252 "libcrypto",
253 "libdiagnose_usb",
254 "liblog",
255 "libusb",
256 ],
257}
258
Josh Gao27768452018-01-02 12:01:43 -0800259cc_binary_host {
260 name: "adb",
Josh Gao27768452018-01-02 12:01:43 -0800261
262 defaults: ["adb_defaults"],
263
264 srcs: [
265 "client/adb_client.cpp",
266 "client/bugreport.cpp",
267 "client/commandline.cpp",
268 "client/file_sync_client.cpp",
269 "client/main.cpp",
270 "client/console.cpp",
Idries Hamadied409ea2018-01-29 16:30:36 +0000271 "client/adb_install.cpp",
Josh Gao27768452018-01-02 12:01:43 -0800272 "client/line_printer.cpp",
273 "shell_service_protocol.cpp",
274 ],
275
276 static_libs: [
277 "libadb_host",
278 "libbase",
279 "libcutils",
280 "libcrypto_utils",
281 "libcrypto",
282 "libdiagnose_usb",
283 "liblog",
284 "libmdnssd",
285 "libusb",
Idries Hamadi269a4b42018-09-13 18:00:25 +0100286 "libutils",
287 "liblog",
288 "libcutils",
Josh Gao27768452018-01-02 12:01:43 -0800289 ],
290
291 stl: "libc++_static",
292
293 // Don't add anything here, we don't want additional shared dependencies
294 // on the host adb tool, and shared libraries that link against libc++
295 // will violate ODR
296 shared_libs: [],
297
Idries Hamadi7575cd92018-08-24 11:46:45 +0100298 required: [
299 "deploypatchgenerator",
300 ],
301
Dan Willemsen3f439a72018-11-19 19:11:35 -0800302 // Archive adb, adb.exe.
303 dist: {
304 targets: [
305 "dist_files",
306 "sdk",
307 "win_sdk",
308 ],
309 },
310
Josh Gao27768452018-01-02 12:01:43 -0800311 target: {
312 darwin: {
313 cflags: [
314 "-Wno-sizeof-pointer-memaccess",
315 ],
316 },
317 windows: {
318 enabled: true,
319 ldflags: ["-municode"],
Josh Gao27768452018-01-02 12:01:43 -0800320 shared_libs: ["AdbWinApi"],
321 required: [
322 "AdbWinUsbApi",
323 ],
324 },
325 },
326}
327
Tao Baoeca59ae2018-07-30 20:45:27 -0700328// libadbd_core contains the common sources to build libadbd and libadbd_services.
Josh Gao27768452018-01-02 12:01:43 -0800329cc_library_static {
Tao Baoeca59ae2018-07-30 20:45:27 -0700330 name: "libadbd_core",
Josh Gao776c2ec2019-01-22 19:36:15 -0800331 defaults: ["adbd_defaults", "host_adbd_supported"],
Tao Baoeca59ae2018-07-30 20:45:27 -0700332 recovery_available: true,
333
334 // libminadbd wants both, as it's used to build native tests.
335 compile_multilib: "both",
336
337 srcs: libadb_srcs + libadb_posix_srcs + [
338 "daemon/auth.cpp",
339 "daemon/jdwp_service.cpp",
Tao Baoeca59ae2018-07-30 20:45:27 -0700340 ],
341
342 local_include_dirs: [
343 "daemon/include",
344 ],
345
Dan Willemsenab971b52018-08-29 14:58:02 -0700346 generated_headers: ["platform_tools_version"],
347
Tao Baoeca59ae2018-07-30 20:45:27 -0700348 static_libs: [
Josh Gao5f2c5bb2019-06-19 14:14:57 -0700349 "libadbconnection_server",
Tao Baoeca59ae2018-07-30 20:45:27 -0700350 "libdiagnose_usb",
Tao Baoeca59ae2018-07-30 20:45:27 -0700351 ],
352
353 shared_libs: [
354 "libasyncio",
355 "libbase",
356 "libcrypto",
357 "libcrypto_utils",
358 "libcutils",
359 "liblog",
360 ],
Josh Gao776c2ec2019-01-22 19:36:15 -0800361
362 target: {
363 android: {
364 whole_static_libs: [
365 "libqemu_pipe",
366 ],
367 srcs: [
368 "daemon/transport_qemu.cpp",
369 "daemon/usb.cpp",
370 "daemon/usb_ffs.cpp",
371 "daemon/usb_legacy.cpp",
372 ]
373 },
374 linux_glibc: {
375 srcs: [
376 "daemon/usb_dummy.cpp",
377 ]
378 }
379 },
Tao Baoeca59ae2018-07-30 20:45:27 -0700380}
381
382cc_library {
383 name: "libadbd_services",
Josh Gao776c2ec2019-01-22 19:36:15 -0800384 defaults: ["adbd_defaults", "host_adbd_supported"],
Tao Baoeca59ae2018-07-30 20:45:27 -0700385 recovery_available: true,
386 compile_multilib: "both",
387
388 srcs: [
389 "daemon/file_sync_service.cpp",
Tao Baoeca59ae2018-07-30 20:45:27 -0700390 "daemon/services.cpp",
Tao Baoeca59ae2018-07-30 20:45:27 -0700391 "daemon/shell_service.cpp",
392 "shell_service_protocol.cpp",
393 ],
394
395 cflags: [
396 "-D_GNU_SOURCE",
397 "-Wno-deprecated-declarations",
398 ],
399
400 static_libs: [
Josh Gao5f2c5bb2019-06-19 14:14:57 -0700401 "libadbconnection_server",
Tao Baoeca59ae2018-07-30 20:45:27 -0700402 "libadbd_core",
Tao Baoeca59ae2018-07-30 20:45:27 -0700403 "libdiagnose_usb",
Tao Baoeca59ae2018-07-30 20:45:27 -0700404 ],
405
406 shared_libs: [
407 "libasyncio",
408 "libbase",
Tao Baoeca59ae2018-07-30 20:45:27 -0700409 "libcrypto",
410 "libcrypto_utils",
411 "libcutils",
Tao Baoeca59ae2018-07-30 20:45:27 -0700412 "liblog",
Tao Baoeca59ae2018-07-30 20:45:27 -0700413 ],
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800414
Mark Salyzyn2f6c1802019-02-15 07:45:26 -0800415 product_variables: {
416 debuggable: {
417 required: [
418 "remount",
419 ],
420 },
421 },
422
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800423 target: {
Josh Gao776c2ec2019-01-22 19:36:15 -0800424 android: {
425 srcs: [
426 "daemon/abb_service.cpp",
427 "daemon/framebuffer_service.cpp",
428 "daemon/mdns.cpp",
429 "daemon/reboot_service.cpp",
430 "daemon/remount_service.cpp",
431 "daemon/restart_service.cpp",
432 "daemon/set_verity_enable_state_service.cpp",
433 ],
434 static_libs: [
435 "libavb_user",
436 ],
437 shared_libs: [
438 "libbootloader_message",
439 "libmdnssd",
440 "libext4_utils",
441 "libfec",
442 "libfs_mgr",
443 "libselinux",
444 ],
445 },
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800446 recovery: {
447 exclude_srcs: [
448 "daemon/abb_service.cpp",
449 ],
450 },
451 },
Tao Baoeca59ae2018-07-30 20:45:27 -0700452}
453
454cc_library {
Josh Gao27768452018-01-02 12:01:43 -0800455 name: "libadbd",
Josh Gao776c2ec2019-01-22 19:36:15 -0800456 defaults: ["adbd_defaults", "host_adbd_supported"],
Jiyong Parka0e75042018-05-24 14:11:00 +0900457 recovery_available: true,
Josh Gao27768452018-01-02 12:01:43 -0800458
Tao Baoeca59ae2018-07-30 20:45:27 -0700459 // Avoid getting duplicate symbol of android::build::GetBuildNumber().
460 use_version_lib: false,
461
462 // libminadbd wants both, as it's used to build native tests.
Josh Gao27768452018-01-02 12:01:43 -0800463 compile_multilib: "both",
Tao Baoeca59ae2018-07-30 20:45:27 -0700464
465 // libadbd doesn't build any additional source, but to expose libadbd_core as a shared library.
466 whole_static_libs: [
467 "libadbd_core",
Josh Gao27768452018-01-02 12:01:43 -0800468 ],
469
Tao Baoeca59ae2018-07-30 20:45:27 -0700470 shared_libs: [
471 "libadbd_services",
Josh Gao27768452018-01-02 12:01:43 -0800472 "libasyncio",
Josh Gao27768452018-01-02 12:01:43 -0800473 "libbase",
Tao Baoeca59ae2018-07-30 20:45:27 -0700474 "libcrypto",
475 "libcrypto_utils",
476 "libcutils",
477 "liblog",
Josh Gao27768452018-01-02 12:01:43 -0800478 ],
Jerry Zhangb156c602018-05-07 15:14:47 -0700479
480 export_include_dirs: [
481 "daemon/include",
482 ],
Josh Gao27768452018-01-02 12:01:43 -0800483}
484
485cc_binary {
486 name: "adbd",
Josh Gao776c2ec2019-01-22 19:36:15 -0800487 defaults: ["adbd_defaults", "host_adbd_supported"],
Jiyong Parka0e75042018-05-24 14:11:00 +0900488 recovery_available: true,
Josh Gao8db99f82018-03-06 12:57:27 -0800489
Josh Gao27768452018-01-02 12:01:43 -0800490 srcs: [
491 "daemon/main.cpp",
Josh Gao27768452018-01-02 12:01:43 -0800492 ],
493
494 cflags: [
495 "-D_GNU_SOURCE",
496 "-Wno-deprecated-declarations",
497 ],
498
499 strip: {
500 keep_symbols: true,
501 },
502
Tao Baoeca59ae2018-07-30 20:45:27 -0700503 shared_libs: [
Josh Gao27768452018-01-02 12:01:43 -0800504 "libadbd",
Tao Baoeca59ae2018-07-30 20:45:27 -0700505 "libadbd_services",
506 "libbase",
507 "libcap",
Josh Gao27768452018-01-02 12:01:43 -0800508 "libcrypto",
Tao Baoeca59ae2018-07-30 20:45:27 -0700509 "libcutils",
Josh Gao27768452018-01-02 12:01:43 -0800510 "liblog",
Josh Gao27768452018-01-02 12:01:43 -0800511 "libminijail",
512 "libselinux",
Josh Gao27768452018-01-02 12:01:43 -0800513 ],
514}
515
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800516cc_binary {
Josh Gaobde8c842019-05-01 18:25:14 -0700517 name: "static_adbd",
518 defaults: ["adbd_defaults", "host_adbd_supported"],
519
520 recovery_available: false,
521 static_executable: true,
522 host_supported: false,
523
524 srcs: [
525 "daemon/main.cpp",
526 ],
527
528 cflags: [
529 "-D_GNU_SOURCE",
530 "-Wno-deprecated-declarations",
531 ],
532
533 strip: {
534 keep_symbols: true,
535 },
536
537 static_libs: [
Josh Gao5f2c5bb2019-06-19 14:14:57 -0700538 "libadbconnection_server",
Josh Gaobde8c842019-05-01 18:25:14 -0700539 "libadbd",
540 "libadbd_services",
541 "libasyncio",
542 "libavb_user",
543 "libbase",
544 "libbootloader_message",
545 "libcap",
546 "libcrypto",
547 "libcrypto_utils",
548 "libcutils",
549 "libdiagnose_usb",
550 "libext4_utils",
551 "libfec",
552 "libfec_rs",
553 "libfs_mgr",
554 "liblog",
555 "liblp",
556 "libmdnssd",
557 "libminijail",
558 "libselinux",
559 "libsquashfs_utils",
560 ],
561}
562
563cc_binary {
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800564 name: "abb",
565
Josh Gao776c2ec2019-01-22 19:36:15 -0800566 defaults: ["adbd_defaults"],
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800567 recovery_available: false,
568
569 srcs: [
570 "daemon/abb.cpp",
571 ],
572
573 cflags: [
574 "-D_GNU_SOURCE",
575 "-Wno-deprecated-declarations",
576 ],
577
578 strip: {
579 keep_symbols: true,
580 },
581
582 static_libs: [
583 "libadbd_core",
584 "libadbd_services",
585 "libcmd",
586 ],
587
588 shared_libs: [
589 "libbase",
590 "libbinder",
591 "liblog",
592 "libutils",
593 "libselinux",
594 ],
595}
596
Josh Gao27768452018-01-02 12:01:43 -0800597cc_test {
598 name: "adbd_test",
Josh Gao776c2ec2019-01-22 19:36:15 -0800599 defaults: ["adbd_defaults"],
Josh Gao27768452018-01-02 12:01:43 -0800600 srcs: libadb_test_srcs + [
Josh Gao997cfac2018-07-25 18:15:52 -0700601 "daemon/services.cpp",
Josh Gao27768452018-01-02 12:01:43 -0800602 "daemon/shell_service.cpp",
603 "daemon/shell_service_test.cpp",
604 "shell_service_protocol.cpp",
605 "shell_service_protocol_test.cpp",
606 ],
607
608 static_libs: [
609 "libadbd",
610 "libbase",
Josh Gao997cfac2018-07-25 18:15:52 -0700611 "libbootloader_message",
Josh Gao27768452018-01-02 12:01:43 -0800612 "libcutils",
613 "libcrypto_utils",
614 "libcrypto",
615 "libdiagnose_usb",
616 "liblog",
617 "libusb",
618 "libmdnssd",
Jiyong Park011ee122018-05-29 16:41:30 +0900619 "libselinux",
Josh Gao27768452018-01-02 12:01:43 -0800620 ],
Elliott Hughes40fdf3f2018-04-27 16:12:06 -0700621 test_suites: ["device-tests"],
Josh Gao27768452018-01-02 12:01:43 -0800622}
623
Julien Desprez75fea7e2018-08-08 12:08:50 -0700624python_test_host {
Elliott Hughesdc699a22018-02-16 17:58:14 -0800625 name: "adb_integration_test_adb",
626 main: "test_adb.py",
627 srcs: [
628 "test_adb.py",
629 ],
Julien Desprez75fea7e2018-08-08 12:08:50 -0700630 test_config: "adb_integration_test_adb.xml",
631 test_suites: ["general-tests"],
Elliott Hughesdc699a22018-02-16 17:58:14 -0800632 version: {
633 py2: {
Josh Gao9b6522b2018-08-07 14:31:17 -0700634 enabled: false,
Elliott Hughesdc699a22018-02-16 17:58:14 -0800635 },
636 py3: {
Josh Gao9b6522b2018-08-07 14:31:17 -0700637 enabled: true,
Elliott Hughesdc699a22018-02-16 17:58:14 -0800638 },
GuangHui Liu41bda342017-05-10 14:37:17 -0700639 },
GuangHui Liu41bda342017-05-10 14:37:17 -0700640}
641
Julien Desprez618f0e12018-10-12 13:48:14 -0700642python_test_host {
Elliott Hughesdc699a22018-02-16 17:58:14 -0800643 name: "adb_integration_test_device",
644 main: "test_device.py",
645 srcs: [
646 "test_device.py",
647 ],
648 libs: [
649 "adb_py",
650 ],
Julien Desprez618f0e12018-10-12 13:48:14 -0700651 test_config: "adb_integration_test_device.xml",
652 test_suites: ["general-tests"],
Elliott Hughesdc699a22018-02-16 17:58:14 -0800653 version: {
654 py2: {
655 enabled: true,
656 },
657 py3: {
658 enabled: false,
659 },
GuangHui Liu41bda342017-05-10 14:37:17 -0700660 },
GuangHui Liu41bda342017-05-10 14:37:17 -0700661}