blob: 583248b62c00c170d51d27d4ca821180b31c71d6 [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 Gao27768452018-01-02 12:01:43 -0800128 "services.cpp",
129 "sockets.cpp",
130 "socket_spec.cpp",
131 "sysdeps/errno.cpp",
132 "transport.cpp",
Josh Gao6082e7d2018-04-05 16:16:04 -0700133 "transport_fd.cpp",
Josh Gao27768452018-01-02 12:01:43 -0800134 "transport_local.cpp",
135 "transport_usb.cpp",
136]
137
138libadb_posix_srcs = [
139 "sysdeps_unix.cpp",
140 "sysdeps/posix/network.cpp",
141]
142
143libadb_test_srcs = [
144 "adb_io_test.cpp",
145 "adb_listeners_test.cpp",
146 "adb_utils_test.cpp",
Josh Gao57e09b12019-06-28 13:50:37 -0700147 "fdevent/fdevent_test.cpp",
Josh Gao27768452018-01-02 12:01:43 -0800148 "socket_spec_test.cpp",
149 "socket_test.cpp",
150 "sysdeps_test.cpp",
151 "sysdeps/stat_test.cpp",
152 "transport_test.cpp",
Josh Gao7c738cd2018-04-03 14:37:11 -0700153 "types_test.cpp",
Josh Gao27768452018-01-02 12:01:43 -0800154]
155
156cc_library_host_static {
157 name: "libadb_host",
158 defaults: ["adb_defaults"],
159
160 srcs: libadb_srcs + [
161 "client/auth.cpp",
162 "client/usb_libusb.cpp",
163 "client/usb_dispatch.cpp",
164 "client/transport_mdns.cpp",
165 ],
166
Dan Willemsenab971b52018-08-29 14:58:02 -0700167 generated_headers: ["platform_tools_version"],
168
Josh Gao27768452018-01-02 12:01:43 -0800169 target: {
170 linux: {
171 srcs: ["client/usb_linux.cpp"],
172 },
173 darwin: {
174 srcs: ["client/usb_osx.cpp"],
175 },
176
177 not_windows: {
178 srcs: libadb_posix_srcs,
179 },
180 windows: {
181 enabled: true,
182 srcs: [
183 "client/usb_windows.cpp",
184 "sysdeps_win32.cpp",
185 "sysdeps/win32/errno.cpp",
186 "sysdeps/win32/stat.cpp",
187 ],
188 shared_libs: ["AdbWinApi"],
189 },
190 },
191
192 static_libs: [
193 "libbase",
194 "libcrypto_utils",
195 "libcrypto",
196 "libdiagnose_usb",
197 "libmdnssd",
198 "libusb",
Idries Hamadi269a4b42018-09-13 18:00:25 +0100199 "libutils",
200 "liblog",
201 "libcutils",
Josh Gao27768452018-01-02 12:01:43 -0800202 ],
203}
204
205cc_test_host {
206 name: "adb_test",
207 defaults: ["adb_defaults"],
208 srcs: libadb_test_srcs,
209 static_libs: [
210 "libadb_host",
211 "libbase",
212 "libcutils",
213 "libcrypto_utils",
214 "libcrypto",
215 "libmdnssd",
216 "libdiagnose_usb",
217 "libusb",
218 ],
Josh Gaof8a97c12018-03-23 15:37:20 -0700219
220 target: {
221 windows: {
222 enabled: true,
223 shared_libs: ["AdbWinApi"],
224 },
225 },
Josh Gao27768452018-01-02 12:01:43 -0800226}
227
Josh Gao9c596492018-04-04 11:27:24 -0700228cc_benchmark {
229 name: "adb_benchmark",
230 defaults: ["adb_defaults"],
231
232 srcs: ["transport_benchmark.cpp"],
233 target: {
234 android: {
235 static_libs: [
236 "libadbd",
237 ],
238 },
239 host: {
240 static_libs: [
241 "libadb_host",
242 ],
243 },
244 },
245
246 static_libs: [
247 "libbase",
248 "libcutils",
249 "libcrypto_utils",
250 "libcrypto",
251 "libdiagnose_usb",
252 "liblog",
253 "libusb",
254 ],
255}
256
Josh Gao27768452018-01-02 12:01:43 -0800257cc_binary_host {
258 name: "adb",
Josh Gao27768452018-01-02 12:01:43 -0800259
260 defaults: ["adb_defaults"],
261
262 srcs: [
263 "client/adb_client.cpp",
264 "client/bugreport.cpp",
265 "client/commandline.cpp",
266 "client/file_sync_client.cpp",
267 "client/main.cpp",
268 "client/console.cpp",
Idries Hamadied409ea2018-01-29 16:30:36 +0000269 "client/adb_install.cpp",
Josh Gao27768452018-01-02 12:01:43 -0800270 "client/line_printer.cpp",
271 "shell_service_protocol.cpp",
272 ],
273
274 static_libs: [
275 "libadb_host",
276 "libbase",
277 "libcutils",
278 "libcrypto_utils",
279 "libcrypto",
280 "libdiagnose_usb",
281 "liblog",
282 "libmdnssd",
283 "libusb",
Idries Hamadi269a4b42018-09-13 18:00:25 +0100284 "libutils",
285 "liblog",
286 "libcutils",
Josh Gao27768452018-01-02 12:01:43 -0800287 ],
288
289 stl: "libc++_static",
290
291 // Don't add anything here, we don't want additional shared dependencies
292 // on the host adb tool, and shared libraries that link against libc++
293 // will violate ODR
294 shared_libs: [],
295
Idries Hamadi7575cd92018-08-24 11:46:45 +0100296 required: [
297 "deploypatchgenerator",
298 ],
299
Dan Willemsen3f439a72018-11-19 19:11:35 -0800300 // Archive adb, adb.exe.
301 dist: {
302 targets: [
303 "dist_files",
304 "sdk",
305 "win_sdk",
306 ],
307 },
308
Josh Gao27768452018-01-02 12:01:43 -0800309 target: {
310 darwin: {
311 cflags: [
312 "-Wno-sizeof-pointer-memaccess",
313 ],
314 },
315 windows: {
316 enabled: true,
317 ldflags: ["-municode"],
Josh Gao27768452018-01-02 12:01:43 -0800318 shared_libs: ["AdbWinApi"],
319 required: [
320 "AdbWinUsbApi",
321 ],
322 },
323 },
324}
325
Tao Baoeca59ae2018-07-30 20:45:27 -0700326// libadbd_core contains the common sources to build libadbd and libadbd_services.
Josh Gao27768452018-01-02 12:01:43 -0800327cc_library_static {
Tao Baoeca59ae2018-07-30 20:45:27 -0700328 name: "libadbd_core",
Josh Gao776c2ec2019-01-22 19:36:15 -0800329 defaults: ["adbd_defaults", "host_adbd_supported"],
Tao Baoeca59ae2018-07-30 20:45:27 -0700330 recovery_available: true,
331
332 // libminadbd wants both, as it's used to build native tests.
333 compile_multilib: "both",
334
335 srcs: libadb_srcs + libadb_posix_srcs + [
336 "daemon/auth.cpp",
337 "daemon/jdwp_service.cpp",
Tao Baoeca59ae2018-07-30 20:45:27 -0700338 ],
339
340 local_include_dirs: [
341 "daemon/include",
342 ],
343
Dan Willemsenab971b52018-08-29 14:58:02 -0700344 generated_headers: ["platform_tools_version"],
345
Tao Baoeca59ae2018-07-30 20:45:27 -0700346 static_libs: [
Josh Gao5f2c5bb2019-06-19 14:14:57 -0700347 "libadbconnection_server",
Tao Baoeca59ae2018-07-30 20:45:27 -0700348 "libdiagnose_usb",
Tao Baoeca59ae2018-07-30 20:45:27 -0700349 ],
350
351 shared_libs: [
352 "libasyncio",
353 "libbase",
354 "libcrypto",
355 "libcrypto_utils",
356 "libcutils",
357 "liblog",
358 ],
Josh Gao776c2ec2019-01-22 19:36:15 -0800359
360 target: {
361 android: {
362 whole_static_libs: [
363 "libqemu_pipe",
364 ],
365 srcs: [
366 "daemon/transport_qemu.cpp",
367 "daemon/usb.cpp",
368 "daemon/usb_ffs.cpp",
369 "daemon/usb_legacy.cpp",
370 ]
371 },
372 linux_glibc: {
373 srcs: [
374 "daemon/usb_dummy.cpp",
375 ]
376 }
377 },
Tao Baoeca59ae2018-07-30 20:45:27 -0700378}
379
380cc_library {
381 name: "libadbd_services",
Josh Gao776c2ec2019-01-22 19:36:15 -0800382 defaults: ["adbd_defaults", "host_adbd_supported"],
Tao Baoeca59ae2018-07-30 20:45:27 -0700383 recovery_available: true,
384 compile_multilib: "both",
385
386 srcs: [
387 "daemon/file_sync_service.cpp",
Tao Baoeca59ae2018-07-30 20:45:27 -0700388 "daemon/services.cpp",
Tao Baoeca59ae2018-07-30 20:45:27 -0700389 "daemon/shell_service.cpp",
390 "shell_service_protocol.cpp",
391 ],
392
393 cflags: [
394 "-D_GNU_SOURCE",
395 "-Wno-deprecated-declarations",
396 ],
397
398 static_libs: [
Josh Gao5f2c5bb2019-06-19 14:14:57 -0700399 "libadbconnection_server",
Tao Baoeca59ae2018-07-30 20:45:27 -0700400 "libadbd_core",
Tao Baoeca59ae2018-07-30 20:45:27 -0700401 "libdiagnose_usb",
Tao Baoeca59ae2018-07-30 20:45:27 -0700402 ],
403
404 shared_libs: [
405 "libasyncio",
406 "libbase",
Tao Baoeca59ae2018-07-30 20:45:27 -0700407 "libcrypto",
408 "libcrypto_utils",
409 "libcutils",
Tao Baoeca59ae2018-07-30 20:45:27 -0700410 "liblog",
Tao Baoeca59ae2018-07-30 20:45:27 -0700411 ],
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800412
Mark Salyzyn2f6c1802019-02-15 07:45:26 -0800413 product_variables: {
414 debuggable: {
415 required: [
416 "remount",
417 ],
418 },
419 },
420
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800421 target: {
Josh Gao776c2ec2019-01-22 19:36:15 -0800422 android: {
423 srcs: [
424 "daemon/abb_service.cpp",
425 "daemon/framebuffer_service.cpp",
426 "daemon/mdns.cpp",
427 "daemon/reboot_service.cpp",
428 "daemon/remount_service.cpp",
429 "daemon/restart_service.cpp",
430 "daemon/set_verity_enable_state_service.cpp",
431 ],
432 static_libs: [
433 "libavb_user",
434 ],
435 shared_libs: [
436 "libbootloader_message",
437 "libmdnssd",
438 "libext4_utils",
439 "libfec",
440 "libfs_mgr",
441 "libselinux",
442 ],
443 },
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800444 recovery: {
445 exclude_srcs: [
446 "daemon/abb_service.cpp",
447 ],
448 },
449 },
Tao Baoeca59ae2018-07-30 20:45:27 -0700450}
451
452cc_library {
Josh Gao27768452018-01-02 12:01:43 -0800453 name: "libadbd",
Josh Gao776c2ec2019-01-22 19:36:15 -0800454 defaults: ["adbd_defaults", "host_adbd_supported"],
Jiyong Parka0e75042018-05-24 14:11:00 +0900455 recovery_available: true,
Josh Gao27768452018-01-02 12:01:43 -0800456
Tao Baoeca59ae2018-07-30 20:45:27 -0700457 // Avoid getting duplicate symbol of android::build::GetBuildNumber().
458 use_version_lib: false,
459
460 // libminadbd wants both, as it's used to build native tests.
Josh Gao27768452018-01-02 12:01:43 -0800461 compile_multilib: "both",
Tao Baoeca59ae2018-07-30 20:45:27 -0700462
463 // libadbd doesn't build any additional source, but to expose libadbd_core as a shared library.
464 whole_static_libs: [
465 "libadbd_core",
Josh Gao27768452018-01-02 12:01:43 -0800466 ],
467
Tao Baoeca59ae2018-07-30 20:45:27 -0700468 shared_libs: [
469 "libadbd_services",
Josh Gao27768452018-01-02 12:01:43 -0800470 "libasyncio",
Josh Gao27768452018-01-02 12:01:43 -0800471 "libbase",
Tao Baoeca59ae2018-07-30 20:45:27 -0700472 "libcrypto",
473 "libcrypto_utils",
474 "libcutils",
475 "liblog",
Josh Gao27768452018-01-02 12:01:43 -0800476 ],
Jerry Zhangb156c602018-05-07 15:14:47 -0700477
478 export_include_dirs: [
479 "daemon/include",
480 ],
Josh Gao27768452018-01-02 12:01:43 -0800481}
482
483cc_binary {
484 name: "adbd",
Josh Gao776c2ec2019-01-22 19:36:15 -0800485 defaults: ["adbd_defaults", "host_adbd_supported"],
Jiyong Parka0e75042018-05-24 14:11:00 +0900486 recovery_available: true,
Josh Gao8db99f82018-03-06 12:57:27 -0800487
Josh Gao27768452018-01-02 12:01:43 -0800488 srcs: [
489 "daemon/main.cpp",
Josh Gao27768452018-01-02 12:01:43 -0800490 ],
491
492 cflags: [
493 "-D_GNU_SOURCE",
494 "-Wno-deprecated-declarations",
495 ],
496
497 strip: {
498 keep_symbols: true,
499 },
500
Tao Baoeca59ae2018-07-30 20:45:27 -0700501 shared_libs: [
Josh Gao27768452018-01-02 12:01:43 -0800502 "libadbd",
Tao Baoeca59ae2018-07-30 20:45:27 -0700503 "libadbd_services",
504 "libbase",
505 "libcap",
Josh Gao27768452018-01-02 12:01:43 -0800506 "libcrypto",
Tao Baoeca59ae2018-07-30 20:45:27 -0700507 "libcutils",
Josh Gao27768452018-01-02 12:01:43 -0800508 "liblog",
Josh Gao27768452018-01-02 12:01:43 -0800509 "libminijail",
510 "libselinux",
Josh Gao27768452018-01-02 12:01:43 -0800511 ],
512}
513
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800514cc_binary {
Josh Gaobde8c842019-05-01 18:25:14 -0700515 name: "static_adbd",
516 defaults: ["adbd_defaults", "host_adbd_supported"],
517
518 recovery_available: false,
519 static_executable: true,
520 host_supported: false,
521
522 srcs: [
523 "daemon/main.cpp",
524 ],
525
526 cflags: [
527 "-D_GNU_SOURCE",
528 "-Wno-deprecated-declarations",
529 ],
530
531 strip: {
532 keep_symbols: true,
533 },
534
535 static_libs: [
Josh Gao5f2c5bb2019-06-19 14:14:57 -0700536 "libadbconnection_server",
Josh Gaobde8c842019-05-01 18:25:14 -0700537 "libadbd",
538 "libadbd_services",
539 "libasyncio",
540 "libavb_user",
541 "libbase",
542 "libbootloader_message",
543 "libcap",
544 "libcrypto",
545 "libcrypto_utils",
546 "libcutils",
547 "libdiagnose_usb",
548 "libext4_utils",
549 "libfec",
550 "libfec_rs",
551 "libfs_mgr",
552 "liblog",
553 "liblp",
554 "libmdnssd",
555 "libminijail",
556 "libselinux",
557 "libsquashfs_utils",
558 ],
559}
560
561cc_binary {
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800562 name: "abb",
563
Josh Gao776c2ec2019-01-22 19:36:15 -0800564 defaults: ["adbd_defaults"],
Alex Buynytskyy640407d2018-12-12 10:48:50 -0800565 recovery_available: false,
566
567 srcs: [
568 "daemon/abb.cpp",
569 ],
570
571 cflags: [
572 "-D_GNU_SOURCE",
573 "-Wno-deprecated-declarations",
574 ],
575
576 strip: {
577 keep_symbols: true,
578 },
579
580 static_libs: [
581 "libadbd_core",
582 "libadbd_services",
583 "libcmd",
584 ],
585
586 shared_libs: [
587 "libbase",
588 "libbinder",
589 "liblog",
590 "libutils",
591 "libselinux",
592 ],
593}
594
Josh Gao27768452018-01-02 12:01:43 -0800595cc_test {
596 name: "adbd_test",
Josh Gao776c2ec2019-01-22 19:36:15 -0800597 defaults: ["adbd_defaults"],
Josh Gao27768452018-01-02 12:01:43 -0800598 srcs: libadb_test_srcs + [
Josh Gao997cfac2018-07-25 18:15:52 -0700599 "daemon/services.cpp",
Josh Gao27768452018-01-02 12:01:43 -0800600 "daemon/shell_service.cpp",
601 "daemon/shell_service_test.cpp",
602 "shell_service_protocol.cpp",
603 "shell_service_protocol_test.cpp",
604 ],
605
606 static_libs: [
607 "libadbd",
608 "libbase",
Josh Gao997cfac2018-07-25 18:15:52 -0700609 "libbootloader_message",
Josh Gao27768452018-01-02 12:01:43 -0800610 "libcutils",
611 "libcrypto_utils",
612 "libcrypto",
613 "libdiagnose_usb",
614 "liblog",
615 "libusb",
616 "libmdnssd",
Jiyong Park011ee122018-05-29 16:41:30 +0900617 "libselinux",
Josh Gao27768452018-01-02 12:01:43 -0800618 ],
Elliott Hughes40fdf3f2018-04-27 16:12:06 -0700619 test_suites: ["device-tests"],
Josh Gao27768452018-01-02 12:01:43 -0800620}
621
Julien Desprez75fea7e2018-08-08 12:08:50 -0700622python_test_host {
Elliott Hughesdc699a22018-02-16 17:58:14 -0800623 name: "adb_integration_test_adb",
624 main: "test_adb.py",
625 srcs: [
626 "test_adb.py",
627 ],
Julien Desprez75fea7e2018-08-08 12:08:50 -0700628 test_config: "adb_integration_test_adb.xml",
629 test_suites: ["general-tests"],
Elliott Hughesdc699a22018-02-16 17:58:14 -0800630 version: {
631 py2: {
Josh Gao9b6522b2018-08-07 14:31:17 -0700632 enabled: false,
Elliott Hughesdc699a22018-02-16 17:58:14 -0800633 },
634 py3: {
Josh Gao9b6522b2018-08-07 14:31:17 -0700635 enabled: true,
Elliott Hughesdc699a22018-02-16 17:58:14 -0800636 },
GuangHui Liu41bda342017-05-10 14:37:17 -0700637 },
GuangHui Liu41bda342017-05-10 14:37:17 -0700638}
639
Julien Desprez618f0e12018-10-12 13:48:14 -0700640python_test_host {
Elliott Hughesdc699a22018-02-16 17:58:14 -0800641 name: "adb_integration_test_device",
642 main: "test_device.py",
643 srcs: [
644 "test_device.py",
645 ],
646 libs: [
647 "adb_py",
648 ],
Julien Desprez618f0e12018-10-12 13:48:14 -0700649 test_config: "adb_integration_test_device.xml",
650 test_suites: ["general-tests"],
Elliott Hughesdc699a22018-02-16 17:58:14 -0800651 version: {
652 py2: {
653 enabled: true,
654 },
655 py3: {
656 enabled: false,
657 },
GuangHui Liu41bda342017-05-10 14:37:17 -0700658 },
GuangHui Liu41bda342017-05-10 14:37:17 -0700659}