blob: 47dafff26ac353c042eb451ec1296bb4652a2090 [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",
Josh Gao776c2ec2019-01-22 19:36:15 -0800440 "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}