blob: c44423f005d9006a85bae919d8cd1344eb7eb91f [file] [log] [blame]
GuangHui Liu35994392017-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
Bob Badour4a6774b2021-02-12 19:46:09 -080015package {
16 default_applicable_licenses: ["packages_modules_adb_license"],
17}
18
19// Added automatically by a large-scale-change
20// See: http://go/android-license-faq
21license {
22 name: "packages_modules_adb_license",
23 visibility: [":__subpackages__"],
24 license_kinds: [
25 "SPDX-license-identifier-Apache-2.0",
26 ],
27 license_text: [
28 "NOTICE",
29 ],
30}
31
Joshua Duongb5c3bec2020-07-17 14:14:00 -070032tidy_errors = [
33 "-*",
34 "bugprone-inaccurate-erase",
Joshua Duongf4ba8d72021-01-13 12:18:15 -080035 "bugprone-use-after-move",
Joshua Duongb5c3bec2020-07-17 14:14:00 -070036]
37
Josh Gao361148b2018-01-02 12:01:43 -080038cc_defaults {
39 name: "adb_defaults",
40
41 cflags: [
42 "-Wall",
43 "-Wextra",
44 "-Werror",
Pirama Arumuga Nainar7aa20232018-06-01 11:31:38 -070045 "-Wexit-time-destructors",
Jiyong Parkf2721bc2020-09-18 16:35:06 +090046 "-Wno-non-virtual-dtor",
Josh Gao361148b2018-01-02 12:01:43 -080047 "-Wno-unused-parameter",
48 "-Wno-missing-field-initializers",
Josh Gao0560feb2019-01-22 19:36:15 -080049 "-Wthread-safety",
Josh Gao361148b2018-01-02 12:01:43 -080050 "-Wvla",
Bowgo Tsai35b817b2019-03-12 04:25:33 +080051 "-DADB_HOST=1", // overridden by adbd_defaults
Josh Gao90228a62019-04-25 14:04:57 -070052 "-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION=1",
Josh Gao361148b2018-01-02 12:01:43 -080053 ],
Josh Gao3edf8072018-11-16 15:40:16 -080054 cpp_std: "experimental",
Josh Gao361148b2018-01-02 12:01:43 -080055
Josh Gao66766f82018-02-27 15:49:23 -080056 use_version_lib: true,
Josh Gao361148b2018-01-02 12:01:43 -080057 compile_multilib: "first",
Josh Gao361148b2018-01-02 12:01:43 -080058
59 target: {
Josh Gao361148b2018-01-02 12:01:43 -080060 darwin: {
61 host_ldlibs: [
62 "-lpthread",
63 "-framework CoreFoundation",
64 "-framework IOKit",
65 "-lobjc",
66 ],
Joshua Duong28fd4e52021-03-19 12:12:35 -070067 cflags: [
68 // Required, to use the new IPv6 Sockets options introduced by RFC 3542.
69 "-D__APPLE_USE_RFC_3542",
70 ],
Josh Gao361148b2018-01-02 12:01:43 -080071 },
72
73 windows: {
74 cflags: [
75 // Define windows.h and tchar.h Unicode preprocessor symbols so that
76 // CreateFile(), _tfopen(), etc. map to versions that take wchar_t*, breaking the
77 // build if you accidentally pass char*. Fix by calling like:
78 // std::wstring path_wide;
79 // if (!android::base::UTF8ToWide(path_utf8, &path_wide)) { /* error handling */ }
80 // CreateFileW(path_wide.c_str());
81 "-DUNICODE=1",
82 "-D_UNICODE=1",
83
Elliott Hughesc229a722018-12-03 09:02:18 -080084 // Unlike on Linux, -std=gnu++ doesn't set _GNU_SOURCE on Windows.
Josh Gao361148b2018-01-02 12:01:43 -080085 "-D_GNU_SOURCE",
Josh Gao96049b92018-03-23 13:03:28 -070086
87 // MinGW hides some things behind _POSIX_SOURCE.
88 "-D_POSIX_SOURCE",
Josh Gao0560feb2019-01-22 19:36:15 -080089
Josh Gaoc3b64032019-04-17 16:57:43 -070090 // libusb uses __stdcall on a variadic function, which gets ignored.
91 "-Wno-ignored-attributes",
92
Josh Gao0560feb2019-01-22 19:36:15 -080093 // Not supported yet.
94 "-Wno-thread-safety",
Josh Gao361148b2018-01-02 12:01:43 -080095 ],
Josh Gaoea7b95a2018-03-23 15:37:20 -070096
97 host_ldlibs: [
98 "-lws2_32",
99 "-lgdi32",
100 "-luserenv",
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800101 "-liphlpapi",
Josh Gaoea7b95a2018-03-23 15:37:20 -0700102 ],
Josh Gao361148b2018-01-02 12:01:43 -0800103 },
Josh Gao0560feb2019-01-22 19:36:15 -0800104 },
Joshua Duongb5c3bec2020-07-17 14:14:00 -0700105
106 tidy: true,
107 tidy_checks: tidy_errors,
108 tidy_checks_as_errors: tidy_errors,
Josh Gao0560feb2019-01-22 19:36:15 -0800109}
Pirama Arumuga Nainar7aa20232018-06-01 11:31:38 -0700110
Josh Gao0560feb2019-01-22 19:36:15 -0800111cc_defaults {
112 name: "adbd_defaults",
113 defaults: ["adb_defaults"],
114
115 cflags: ["-UADB_HOST", "-DADB_HOST=0"],
Josh Gao361148b2018-01-02 12:01:43 -0800116}
117
Josh Gao0560feb2019-01-22 19:36:15 -0800118cc_defaults {
119 name: "host_adbd_supported",
120
121 host_supported: true,
122 target: {
123 linux: {
124 enabled: true,
125 host_ldlibs: [
126 "-lresolv", // b64_pton
127 "-lutil", // forkpty
128 ],
129 },
130 darwin: {
131 enabled: false,
132 },
133 windows: {
134 enabled: false,
135 },
136 },
137}
138
Liz Kammer6836b052021-01-22 13:39:03 -0500139soong_config_module_type_import {
140 from: "system/apex/Android.bp",
141 module_types: ["library_linking_strategy_cc_defaults"],
142}
143
144library_linking_strategy_cc_defaults {
Josh Gaodc20c2f2020-03-27 19:41:59 -0700145 name: "libadbd_binary_dependencies",
146 static_libs: [
147 "libadb_crypto",
148 "libadb_pairing_connection",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000149 "libadb_protos",
Joshua Duong93b407c2020-07-30 16:34:29 -0700150 "libadb_sysdeps",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700151 "libadb_tls_connection",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000152 "libadbconnection_server",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700153 "libadbd",
154 "libadbd_core",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000155 "libapp_processes_protos_lite",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700156 "libasyncio",
157 "libbrotli",
Josh Gao7e3f8112021-04-09 17:32:58 -0700158 "libcrypto_utils",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700159 "libcutils_sockets",
160 "libdiagnose_usb",
161 "libmdnssd",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700162 "libprotobuf-cpp-lite",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000163 "libzstd",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700164 ],
165
166 shared_libs: [
167 "libadbd_auth",
168 "libadbd_fs",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700169 "liblog",
170 "libselinux",
171 ],
172
Liz Kammer6836b052021-01-22 13:39:03 -0500173 soong_config_variables:{
174 library_linking_strategy: {
175 prefer_static: {
176 static_libs: [
177 "libbase",
178 ],
179 },
180 conditions_default: {
181 shared_libs: [
182 "libbase",
183 ],
184 },
185 },
186 },
187
Josh Gaodc20c2f2020-03-27 19:41:59 -0700188 target: {
Josh Gao7e3f8112021-04-09 17:32:58 -0700189 android: {
190 shared_libs: ["libcrypto"],
191 },
Colin Cross02290862022-03-24 15:47:28 -0700192 host_linux: {
Josh Gao7e3f8112021-04-09 17:32:58 -0700193 static_libs: ["libcrypto_static"],
194 },
Josh Gaodc20c2f2020-03-27 19:41:59 -0700195 recovery: {
196 exclude_static_libs: [
197 "libadb_pairing_auth",
198 "libadb_pairing_connection",
199 ],
200 },
201 },
202}
203
Josh Gao361148b2018-01-02 12:01:43 -0800204// libadb
205// =========================================================
206// These files are compiled for both the host and the device.
207libadb_srcs = [
208 "adb.cpp",
209 "adb_io.cpp",
210 "adb_listeners.cpp",
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800211 "adb_mdns.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800212 "adb_trace.cpp",
Josh Gao7d5762c2018-05-24 22:54:50 -0700213 "adb_unique_fd.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800214 "adb_utils.cpp",
Josh Gaob51193a2019-06-28 13:50:37 -0700215 "fdevent/fdevent.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800216 "services.cpp",
217 "sockets.cpp",
218 "socket_spec.cpp",
Joshua Duong93b407c2020-07-30 16:34:29 -0700219 "sysdeps/env.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800220 "sysdeps/errno.cpp",
221 "transport.cpp",
Josh Gao1e41fda2018-04-05 16:16:04 -0700222 "transport_fd.cpp",
Yurii Zubrytskyie5e6b0d2019-07-12 14:11:54 -0700223 "types.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800224]
225
Josh Gaod7c49ec2020-04-20 19:22:05 -0700226libadb_darwin_srcs = [
227 "fdevent/fdevent_poll.cpp",
228]
229
230libadb_windows_srcs = [
231 "fdevent/fdevent_poll.cpp",
232 "sysdeps_win32.cpp",
233 "sysdeps/win32/errno.cpp",
234 "sysdeps/win32/stat.cpp",
235]
236
Josh Gao361148b2018-01-02 12:01:43 -0800237libadb_posix_srcs = [
238 "sysdeps_unix.cpp",
239 "sysdeps/posix/network.cpp",
240]
241
Josh Gaodd716422019-07-11 13:47:44 -0700242libadb_linux_srcs = [
243 "fdevent/fdevent_epoll.cpp",
244]
245
Josh Gao361148b2018-01-02 12:01:43 -0800246libadb_test_srcs = [
247 "adb_io_test.cpp",
248 "adb_listeners_test.cpp",
249 "adb_utils_test.cpp",
Josh Gaob51193a2019-06-28 13:50:37 -0700250 "fdevent/fdevent_test.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800251 "socket_spec_test.cpp",
252 "socket_test.cpp",
253 "sysdeps_test.cpp",
254 "sysdeps/stat_test.cpp",
255 "transport_test.cpp",
Josh Gao9f155db2018-04-03 14:37:11 -0700256 "types_test.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800257]
258
259cc_library_host_static {
260 name: "libadb_host",
261 defaults: ["adb_defaults"],
262
263 srcs: libadb_srcs + [
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800264 "client/openscreen/mdns_service_info.cpp",
265 "client/openscreen/mdns_service_watcher.cpp",
266 "client/openscreen/platform/logging.cpp",
267 "client/openscreen/platform/task_runner.cpp",
268 "client/openscreen/platform/udp_socket.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800269 "client/auth.cpp",
Joshua Duong290ccb52019-11-20 14:18:43 -0800270 "client/adb_wifi.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800271 "client/usb_libusb.cpp",
Josh Gaoa5baef92020-04-22 17:30:06 -0700272 "client/transport_local.cpp",
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800273 "client/mdnsresponder_client.cpp",
Joshua Duongf2a0d872020-04-30 15:45:38 -0700274 "client/mdns_utils.cpp",
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800275 "client/transport_mdns.cpp",
Josh Gao6b55e752020-03-27 18:09:56 -0700276 "client/transport_usb.cpp",
Joshua Duong290ccb52019-11-20 14:18:43 -0800277 "client/pairing/pairing_client.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800278 ],
279
Dan Willemsen18861892018-08-29 14:58:02 -0700280 generated_headers: ["platform_tools_version"],
281
Josh Gao361148b2018-01-02 12:01:43 -0800282 target: {
283 linux: {
Josh Gaodd716422019-07-11 13:47:44 -0700284 srcs: ["client/usb_linux.cpp"] + libadb_linux_srcs,
Josh Gao361148b2018-01-02 12:01:43 -0800285 },
286 darwin: {
Josh Gaod7c49ec2020-04-20 19:22:05 -0700287 srcs: ["client/usb_osx.cpp"] + libadb_darwin_srcs,
Josh Gao361148b2018-01-02 12:01:43 -0800288 },
Josh Gao361148b2018-01-02 12:01:43 -0800289 not_windows: {
290 srcs: libadb_posix_srcs,
291 },
292 windows: {
293 enabled: true,
294 srcs: [
295 "client/usb_windows.cpp",
Josh Gaod7c49ec2020-04-20 19:22:05 -0700296 ] + libadb_windows_srcs,
Josh Gao361148b2018-01-02 12:01:43 -0800297 shared_libs: ["AdbWinApi"],
298 },
299 },
300
301 static_libs: [
Joshua Duong090c8072019-12-19 16:36:30 -0800302 "libadb_crypto",
Joshua Duong290ccb52019-11-20 14:18:43 -0800303 "libadb_pairing_connection",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000304 "libadb_protos",
Joshua Duong290ccb52019-11-20 14:18:43 -0800305 "libadb_tls_connection",
Josh Gao361148b2018-01-02 12:01:43 -0800306 "libbase",
Josh Gao361148b2018-01-02 12:01:43 -0800307 "libcrypto",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000308 "libcrypto_utils",
Idries Hamadi78330f02018-09-13 18:00:25 +0100309 "libcutils",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000310 "libdiagnose_usb",
311 "liblog",
312 "libmdnssd",
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800313 "libopenscreen-discovery",
314 "libopenscreen-platform-impl",
Joshua Duong290ccb52019-11-20 14:18:43 -0800315 "libprotobuf-cpp-lite",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000316 "libusb",
317 "libutils",
Josh Gao361148b2018-01-02 12:01:43 -0800318 ],
319}
320
Joshua Duong93b407c2020-07-30 16:34:29 -0700321cc_library {
322 name: "libadb_sysdeps",
323 defaults: ["adb_defaults"],
324 recovery_available: true,
325 host_supported: true,
326 compile_multilib: "both",
327 min_sdk_version: "apex_inherit",
Jiyong Parkc55fa5c2020-08-25 17:05:41 +0900328 // This library doesn't use build::GetBuildNumber()
329 use_version_lib: false,
Joshua Duong93b407c2020-07-30 16:34:29 -0700330
331 srcs: [
332 "sysdeps/env.cpp",
333 ],
334
335 shared_libs: [
336 "libbase",
337 "liblog",
338 ],
339
340 target: {
341 windows: {
342 enabled: true,
343 ldflags: ["-municode"],
344 },
345 },
346
347 export_include_dirs: ["."],
348
349 visibility: [
Joshua Duong93b407c2020-07-30 16:34:29 -0700350 "//bootable/recovery/minadbd:__subpackages__",
Baligh Uddin95e03672020-10-18 15:09:52 +0000351 "//packages/modules/adb:__subpackages__",
Joshua Duong93b407c2020-07-30 16:34:29 -0700352 ],
353
354 apex_available: [
355 "com.android.adbd",
356 "test_com.android.adbd",
357 ],
358}
359
Josh Gao361148b2018-01-02 12:01:43 -0800360cc_test_host {
361 name: "adb_test",
362 defaults: ["adb_defaults"],
Joshua Duongf2a0d872020-04-30 15:45:38 -0700363 srcs: libadb_test_srcs + [
364 "client/mdns_utils_test.cpp",
365 ],
366
Josh Gao361148b2018-01-02 12:01:43 -0800367 static_libs: [
Joshua Duong290ccb52019-11-20 14:18:43 -0800368 "libadb_crypto_static",
Josh Gao361148b2018-01-02 12:01:43 -0800369 "libadb_host",
Joshua Duong290ccb52019-11-20 14:18:43 -0800370 "libadb_pairing_auth_static",
371 "libadb_pairing_connection_static",
372 "libadb_protos_static",
Joshua Duong93b407c2020-07-30 16:34:29 -0700373 "libadb_sysdeps",
Joshua Duong290ccb52019-11-20 14:18:43 -0800374 "libadb_tls_connection_static",
Josh Gao361148b2018-01-02 12:01:43 -0800375 "libbase",
Josh Gao361148b2018-01-02 12:01:43 -0800376 "libcrypto",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000377 "libcrypto_utils",
378 "libcutils",
379 "libdiagnose_usb",
Tom Cherry49b96ec2020-01-08 13:41:56 -0800380 "liblog",
Josh Gao361148b2018-01-02 12:01:43 -0800381 "libmdnssd",
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800382 "libopenscreen-discovery",
383 "libopenscreen-platform-impl",
Joshua Duong290ccb52019-11-20 14:18:43 -0800384 "libprotobuf-cpp-lite",
385 "libssl",
Josh Gao361148b2018-01-02 12:01:43 -0800386 "libusb",
387 ],
Josh Gaoea7b95a2018-03-23 15:37:20 -0700388
389 target: {
390 windows: {
391 enabled: true,
Josh Gao3e8bdab2019-07-16 15:08:42 -0700392 ldflags: ["-municode"],
Josh Gaoea7b95a2018-03-23 15:37:20 -0700393 shared_libs: ["AdbWinApi"],
394 },
395 },
Josh Gao361148b2018-01-02 12:01:43 -0800396}
397
398cc_binary_host {
399 name: "adb",
Josh Gao361148b2018-01-02 12:01:43 -0800400
Josh Gao06af61e2020-02-03 23:08:05 -0800401 stl: "libc++_static",
Josh Gao361148b2018-01-02 12:01:43 -0800402 defaults: ["adb_defaults"],
403
404 srcs: [
405 "client/adb_client.cpp",
406 "client/bugreport.cpp",
407 "client/commandline.cpp",
408 "client/file_sync_client.cpp",
409 "client/main.cpp",
410 "client/console.cpp",
Idries Hamadi1ecee442018-01-29 16:30:36 +0000411 "client/adb_install.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800412 "client/line_printer.cpp",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700413 "client/fastdeploy.cpp",
414 "client/fastdeploycallbacks.cpp",
Alex Buynytskyy175ce292020-02-13 06:52:04 -0800415 "client/incremental.cpp",
416 "client/incremental_server.cpp",
Songchun Fan965301e2020-03-13 13:11:43 -0700417 "client/incremental_utils.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800418 "shell_service_protocol.cpp",
419 ],
420
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700421 generated_headers: [
422 "bin2c_fastdeployagent",
423 "bin2c_fastdeployagentscript"
424 ],
425
Josh Gao361148b2018-01-02 12:01:43 -0800426 static_libs: [
Joshua Duong090c8072019-12-19 16:36:30 -0800427 "libadb_crypto",
Josh Gao361148b2018-01-02 12:01:43 -0800428 "libadb_host",
Josh Gaod8bad8e2020-03-26 13:46:08 -0700429 "libadb_pairing_auth",
430 "libadb_pairing_connection",
Joshua Duong290ccb52019-11-20 14:18:43 -0800431 "libadb_protos",
Joshua Duong93b407c2020-07-30 16:34:29 -0700432 "libadb_sysdeps",
Joshua Duong290ccb52019-11-20 14:18:43 -0800433 "libadb_tls_connection",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700434 "libandroidfw",
Shukang Zhou420ad552020-02-13 17:01:39 -0800435 "libapp_processes_protos_full",
Josh Gao361148b2018-01-02 12:01:43 -0800436 "libbase",
Josh Gao2f0f9eb2020-03-04 19:34:08 -0800437 "libbrotli",
Josh Gao361148b2018-01-02 12:01:43 -0800438 "libcrypto",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000439 "libcrypto_utils",
440 "libcutils",
Josh Gao361148b2018-01-02 12:01:43 -0800441 "libdiagnose_usb",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000442 "libfastdeploy_host",
443 "liblog",
Josh Gao361148b2018-01-02 12:01:43 -0800444 "liblog",
Alex Buynytskyy175ce292020-02-13 06:52:04 -0800445 "liblz4",
Josh Gao361148b2018-01-02 12:01:43 -0800446 "libmdnssd",
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800447 "libopenscreen-discovery",
448 "libopenscreen-platform-impl",
Shukang Zhou420ad552020-02-13 17:01:39 -0800449 "libprotobuf-cpp-full",
Joshua Duong290ccb52019-11-20 14:18:43 -0800450 "libssl",
Josh Gao361148b2018-01-02 12:01:43 -0800451 "libusb",
Idries Hamadi78330f02018-09-13 18:00:25 +0100452 "libutils",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700453 "libz",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000454 "libziparchive",
Josh Gaobdebc9b2020-05-27 17:52:52 -0700455 "libzstd",
Josh Gao361148b2018-01-02 12:01:43 -0800456 ],
457
Josh Gao361148b2018-01-02 12:01:43 -0800458 // Don't add anything here, we don't want additional shared dependencies
459 // on the host adb tool, and shared libraries that link against libc++
460 // will violate ODR
461 shared_libs: [],
462
Dan Willemsen7024da42018-11-19 19:11:35 -0800463 // Archive adb, adb.exe.
464 dist: {
465 targets: [
466 "dist_files",
467 "sdk",
468 "win_sdk",
469 ],
470 },
471
Josh Gao361148b2018-01-02 12:01:43 -0800472 target: {
473 darwin: {
474 cflags: [
475 "-Wno-sizeof-pointer-memaccess",
476 ],
477 },
478 windows: {
479 enabled: true,
480 ldflags: ["-municode"],
Josh Gao361148b2018-01-02 12:01:43 -0800481 shared_libs: ["AdbWinApi"],
482 required: [
483 "AdbWinUsbApi",
484 ],
485 },
486 },
487}
488
Tao Bao49042e32018-07-30 20:45:27 -0700489// libadbd_core contains the common sources to build libadbd and libadbd_services.
Josh Gao361148b2018-01-02 12:01:43 -0800490cc_library_static {
Tao Bao49042e32018-07-30 20:45:27 -0700491 name: "libadbd_core",
Josh Gao0560feb2019-01-22 19:36:15 -0800492 defaults: ["adbd_defaults", "host_adbd_supported"],
Tao Bao49042e32018-07-30 20:45:27 -0700493 recovery_available: true,
494
495 // libminadbd wants both, as it's used to build native tests.
496 compile_multilib: "both",
497
Josh Gaodd716422019-07-11 13:47:44 -0700498 srcs: libadb_srcs + libadb_linux_srcs + libadb_posix_srcs + [
Josh Gaoa5baef92020-04-22 17:30:06 -0700499 "daemon/adb_wifi.cpp",
Tao Bao49042e32018-07-30 20:45:27 -0700500 "daemon/auth.cpp",
501 "daemon/jdwp_service.cpp",
Josh Gaobd775212020-02-26 16:39:20 -0800502 "daemon/logging.cpp",
Josh Gaoa5baef92020-04-22 17:30:06 -0700503 "daemon/transport_local.cpp",
Tao Bao49042e32018-07-30 20:45:27 -0700504 ],
505
Dan Willemsen18861892018-08-29 14:58:02 -0700506 generated_headers: ["platform_tools_version"],
507
Tao Bao49042e32018-07-30 20:45:27 -0700508 static_libs: [
509 "libdiagnose_usb",
Tao Bao49042e32018-07-30 20:45:27 -0700510 ],
511
512 shared_libs: [
Joshua Duong090c8072019-12-19 16:36:30 -0800513 "libadb_crypto",
Joshua Duong290ccb52019-11-20 14:18:43 -0800514 "libadb_pairing_connection",
515 "libadb_protos",
516 "libadb_tls_connection",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000517 "libadbconnection_server",
Josh Gao7cac88a2019-10-22 12:30:39 -0700518 "libadbd_auth",
Josh Gaofa3605a2020-03-16 11:30:09 -0700519 "libapp_processes_protos_lite",
Tao Bao49042e32018-07-30 20:45:27 -0700520 "libasyncio",
521 "libbase",
522 "libcrypto",
523 "libcrypto_utils",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700524 "libcutils_sockets",
Tao Bao49042e32018-07-30 20:45:27 -0700525 "liblog",
526 ],
Josh Gao0560feb2019-01-22 19:36:15 -0800527
Shukang Zhou420ad552020-02-13 17:01:39 -0800528 proto: {
529 type: "lite",
530 static: true,
531 export_proto_headers: true,
532 },
533
Josh Gao0560feb2019-01-22 19:36:15 -0800534 target: {
535 android: {
Josh Gao0560feb2019-01-22 19:36:15 -0800536 srcs: [
Josh Gao822f6742021-02-03 22:12:41 -0800537 "daemon/property_monitor.cpp",
Josh Gao0560feb2019-01-22 19:36:15 -0800538 "daemon/usb.cpp",
539 "daemon/usb_ffs.cpp",
Josh Gao2dc61962021-02-03 22:11:45 -0800540 "daemon/watchdog.cpp",
Josh Gao0560feb2019-01-22 19:36:15 -0800541 ]
Joshua Duong929364a2020-02-26 15:43:44 -0800542 },
543 recovery: {
544 exclude_shared_libs: [
545 "libadb_pairing_auth",
546 "libadb_pairing_connection",
Josh Gaofa3605a2020-03-16 11:30:09 -0700547 "libapp_processes_protos_lite",
Joshua Duong929364a2020-02-26 15:43:44 -0800548 ],
Josh Gao0560feb2019-01-22 19:36:15 -0800549 }
550 },
Josh Gao5fcd7ae2020-03-16 12:48:18 -0700551
Jooyung Han9864dad2021-11-22 10:15:19 +0900552 min_sdk_version: "30",
Josh Gao5fcd7ae2020-03-16 12:48:18 -0700553 apex_available: [
554 "//apex_available:platform",
555 "com.android.adbd",
556 ],
557 visibility: [
558 "//bootable/recovery/minadbd",
Baligh Uddin95e03672020-10-18 15:09:52 +0000559 "//packages/modules/adb:__subpackages__",
Josh Gao5fcd7ae2020-03-16 12:48:18 -0700560 ],
Tao Bao49042e32018-07-30 20:45:27 -0700561}
562
Josh Gao2029a372020-03-09 15:20:55 -0700563cc_library {
Tao Bao49042e32018-07-30 20:45:27 -0700564 name: "libadbd_services",
Josh Gao0560feb2019-01-22 19:36:15 -0800565 defaults: ["adbd_defaults", "host_adbd_supported"],
Tao Bao49042e32018-07-30 20:45:27 -0700566 recovery_available: true,
567 compile_multilib: "both",
568
569 srcs: [
570 "daemon/file_sync_service.cpp",
Tao Bao49042e32018-07-30 20:45:27 -0700571 "daemon/services.cpp",
Tao Bao49042e32018-07-30 20:45:27 -0700572 "daemon/shell_service.cpp",
573 "shell_service_protocol.cpp",
574 ],
575
576 cflags: [
577 "-D_GNU_SOURCE",
578 "-Wno-deprecated-declarations",
579 ],
580
581 static_libs: [
Josh Gaobf5a9362020-01-22 17:58:03 -0800582 "libadbconnection_server",
Tao Bao49042e32018-07-30 20:45:27 -0700583 "libadbd_core",
Josh Gao2f0f9eb2020-03-04 19:34:08 -0800584 "libbrotli",
Tao Bao49042e32018-07-30 20:45:27 -0700585 "libdiagnose_usb",
Josh Gaofb386cc2020-03-26 22:02:03 -0700586 "liblz4",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000587 "libprotobuf-cpp-lite",
Josh Gaobdebc9b2020-05-27 17:52:52 -0700588 "libzstd",
Tao Bao49042e32018-07-30 20:45:27 -0700589 ],
590
591 shared_libs: [
Joshua Duong290ccb52019-11-20 14:18:43 -0800592 "libadb_crypto",
593 "libadb_pairing_connection",
594 "libadb_protos",
595 "libadb_tls_connection",
Josh Gaofa3605a2020-03-16 11:30:09 -0700596 "libapp_processes_protos_lite",
Tao Bao49042e32018-07-30 20:45:27 -0700597 "libasyncio",
598 "libbase",
Tao Bao49042e32018-07-30 20:45:27 -0700599 "libcrypto_utils",
Josh Gao2029a372020-03-09 15:20:55 -0700600 "libcutils_sockets",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700601
602 // APEX dependencies.
603 "libadbd_auth",
604 "libadbd_fs",
605 "libcrypto",
606 "liblog",
Tao Bao49042e32018-07-30 20:45:27 -0700607 ],
Alex Buynytskyyef34f012018-12-12 10:48:50 -0800608
609 target: {
Josh Gao0560feb2019-01-22 19:36:15 -0800610 android: {
611 srcs: [
612 "daemon/abb_service.cpp",
613 "daemon/framebuffer_service.cpp",
614 "daemon/mdns.cpp",
Josh Gao0560feb2019-01-22 19:36:15 -0800615 "daemon/restart_service.cpp",
Josh Gao0560feb2019-01-22 19:36:15 -0800616 ],
617 shared_libs: [
Josh Gao0560feb2019-01-22 19:36:15 -0800618 "libmdnssd",
Josh Gao0560feb2019-01-22 19:36:15 -0800619 "libselinux",
620 ],
621 },
Alex Buynytskyyef34f012018-12-12 10:48:50 -0800622 recovery: {
623 exclude_srcs: [
624 "daemon/abb_service.cpp",
625 ],
Joshua Duong929364a2020-02-26 15:43:44 -0800626 exclude_shared_libs: [
627 "libadb_pairing_auth",
628 "libadb_pairing_connection",
629 ],
Alex Buynytskyyef34f012018-12-12 10:48:50 -0800630 },
631 },
Josh Gao5fcd7ae2020-03-16 12:48:18 -0700632
Jooyung Han9864dad2021-11-22 10:15:19 +0900633 min_sdk_version: "30",
Josh Gao5fcd7ae2020-03-16 12:48:18 -0700634 apex_available: [
635 "//apex_available:platform",
636 "com.android.adbd",
637 ],
638 visibility: [
Baligh Uddin95e03672020-10-18 15:09:52 +0000639 "//packages/modules/adb",
Josh Gao5fcd7ae2020-03-16 12:48:18 -0700640 ],
641
Tao Bao49042e32018-07-30 20:45:27 -0700642}
643
644cc_library {
Josh Gao361148b2018-01-02 12:01:43 -0800645 name: "libadbd",
Josh Gao0560feb2019-01-22 19:36:15 -0800646 defaults: ["adbd_defaults", "host_adbd_supported"],
Jiyong Parkeb590392018-05-24 14:11:00 +0900647 recovery_available: true,
Jooyung Han9864dad2021-11-22 10:15:19 +0900648 min_sdk_version: "30",
Jiyong Parkc6afe4a2020-03-23 14:40:50 +0000649 apex_available: ["com.android.adbd"],
Josh Gao361148b2018-01-02 12:01:43 -0800650
Josh Gaobf5a9362020-01-22 17:58:03 -0800651 // avoid getting duplicate symbol of android::build::getbuildnumber().
Tao Bao49042e32018-07-30 20:45:27 -0700652 use_version_lib: false,
653
654 // libminadbd wants both, as it's used to build native tests.
Josh Gao361148b2018-01-02 12:01:43 -0800655 compile_multilib: "both",
Tao Bao49042e32018-07-30 20:45:27 -0700656
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000657 static_libs: [
658 "libadbd_core",
659 "libadbd_services",
660 "libbrotli",
661 "libcutils_sockets",
662 "libdiagnose_usb",
663 "liblz4",
664 "libmdnssd",
665 "libprotobuf-cpp-lite",
666 "libzstd",
667 ],
668
Tao Bao49042e32018-07-30 20:45:27 -0700669 shared_libs: [
Josh Gaofa3605a2020-03-16 11:30:09 -0700670 "libadbconnection_server",
671 "libapp_processes_protos_lite",
Joshua Duong290ccb52019-11-20 14:18:43 -0800672 "libadb_crypto",
673 "libadb_pairing_connection",
674 "libadb_tls_connection",
Josh Gao361148b2018-01-02 12:01:43 -0800675 "libasyncio",
Josh Gao361148b2018-01-02 12:01:43 -0800676 "libbase",
Tao Bao49042e32018-07-30 20:45:27 -0700677 "libcrypto",
678 "libcrypto_utils",
Tao Bao49042e32018-07-30 20:45:27 -0700679 "liblog",
Josh Gaoa4dfc142020-02-19 13:50:57 -0800680 "libselinux",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700681
682 // APEX dependencies on the system image.
683 "libadbd_auth",
684 "libadbd_fs",
Josh Gaoa4dfc142020-02-19 13:50:57 -0800685 ],
686
Joshua Duong929364a2020-02-26 15:43:44 -0800687 target: {
688 recovery: {
689 exclude_shared_libs: [
690 "libadb_pairing_auth",
691 "libadb_pairing_connection",
692 ],
693 }
694 },
695
Jerry Zhangd4fe8b62018-05-07 15:14:47 -0700696
Josh Gao6b55e752020-03-27 18:09:56 -0700697 visibility: [
698 "//bootable/recovery/minadbd",
Baligh Uddin95e03672020-10-18 15:09:52 +0000699 "//packages/modules/adb",
Jerry Zhangd4fe8b62018-05-07 15:14:47 -0700700 ],
Josh Gao361148b2018-01-02 12:01:43 -0800701}
702
703cc_binary {
704 name: "adbd",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700705 defaults: ["adbd_defaults", "host_adbd_supported", "libadbd_binary_dependencies"],
Jiyong Parkeb590392018-05-24 14:11:00 +0900706 recovery_available: true,
Jooyung Han9864dad2021-11-22 10:15:19 +0900707 min_sdk_version: "30",
Jiyong Parkc6afe4a2020-03-23 14:40:50 +0000708 apex_available: ["com.android.adbd"],
Josh Gao3e0540a2018-03-06 12:57:27 -0800709
Josh Gao361148b2018-01-02 12:01:43 -0800710 srcs: [
711 "daemon/main.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800712 ],
713
714 cflags: [
715 "-D_GNU_SOURCE",
716 "-Wno-deprecated-declarations",
717 ],
718
719 strip: {
720 keep_symbols: true,
721 },
722
Josh Gao2bfc85e2019-08-15 14:05:12 -0700723 static_libs: [
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000724 "libadb_protos",
Josh Gao361148b2018-01-02 12:01:43 -0800725 "libadbd",
Tao Bao49042e32018-07-30 20:45:27 -0700726 "libadbd_services",
Josh Gao2bfc85e2019-08-15 14:05:12 -0700727 "libasyncio",
Tao Bao49042e32018-07-30 20:45:27 -0700728 "libcap",
Josh Gaofb386cc2020-03-26 22:02:03 -0700729 "liblz4",
Josh Gao361148b2018-01-02 12:01:43 -0800730 "libminijail",
Joshua Duong290ccb52019-11-20 14:18:43 -0800731 "libssl",
Josh Gao361148b2018-01-02 12:01:43 -0800732 ],
Josh Gao2bfc85e2019-08-15 14:05:12 -0700733
734 shared_libs: [
Josh Gao090712a2020-01-16 12:40:43 -0800735 "libadbd_auth",
Josh Gao2bfc85e2019-08-15 14:05:12 -0700736 ],
Josh Gao06af61e2020-02-03 23:08:05 -0800737
Joshua Duong929364a2020-02-26 15:43:44 -0800738 target: {
739 recovery: {
740 exclude_shared_libs: [
741 "libadb_pairing_auth",
742 "libadb_pairing_connection",
743 ],
744 }
745 },
Josh Gao361148b2018-01-02 12:01:43 -0800746}
747
Josh Gao06e45932019-10-23 13:27:17 -0700748phony {
Josh Gaodf43f5e2020-06-01 18:59:21 -0700749 // Interface between adbd in a module and the system.
750 name: "adbd_system_api",
Josh Gao06e45932019-10-23 13:27:17 -0700751 required: [
Josh Gaodf43f5e2020-06-01 18:59:21 -0700752 "libadbd_auth",
753 "libadbd_fs",
Josh Gao06e45932019-10-23 13:27:17 -0700754 "abb",
Josh Gao83ce3e22019-10-22 12:30:36 -0700755 "reboot",
Josh Gaob554f4b2019-10-22 12:30:30 -0700756 "set-verity-state",
Josh Gao06e45932019-10-23 13:27:17 -0700757 ]
758}
759
760phony {
Josh Gaodf43f5e2020-06-01 18:59:21 -0700761 name: "adbd_system_api_recovery",
Josh Gao06e45932019-10-23 13:27:17 -0700762 required: [
Inseob Kimfc0410d2021-06-30 15:07:24 +0900763 "libadbd_auth.recovery",
764 "libadbd_fs.recovery",
Josh Gao83ce3e22019-10-22 12:30:36 -0700765 "reboot.recovery",
Josh Gao06e45932019-10-23 13:27:17 -0700766 ],
767}
768
Alex Buynytskyyef34f012018-12-12 10:48:50 -0800769cc_binary {
770 name: "abb",
771
Josh Gao0560feb2019-01-22 19:36:15 -0800772 defaults: ["adbd_defaults"],
Josh Gao06af61e2020-02-03 23:08:05 -0800773 stl: "libc++",
Alex Buynytskyyef34f012018-12-12 10:48:50 -0800774 recovery_available: false,
775
776 srcs: [
777 "daemon/abb.cpp",
778 ],
779
780 cflags: [
781 "-D_GNU_SOURCE",
782 "-Wno-deprecated-declarations",
783 ],
784
785 strip: {
786 keep_symbols: true,
787 },
788
789 static_libs: [
790 "libadbd_core",
791 "libadbd_services",
792 "libcmd",
793 ],
794
795 shared_libs: [
796 "libbase",
797 "libbinder",
798 "liblog",
799 "libutils",
800 "libselinux",
801 ],
802}
803
Josh Gao361148b2018-01-02 12:01:43 -0800804cc_test {
805 name: "adbd_test",
Josh Gao06af61e2020-02-03 23:08:05 -0800806
Josh Gaodc20c2f2020-03-27 19:41:59 -0700807 defaults: ["adbd_defaults", "libadbd_binary_dependencies"],
Josh Gao06af61e2020-02-03 23:08:05 -0800808
809 recovery_available: false,
Josh Gao361148b2018-01-02 12:01:43 -0800810 srcs: libadb_test_srcs + [
Josh Gao5607e922018-07-25 18:15:52 -0700811 "daemon/services.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800812 "daemon/shell_service.cpp",
813 "daemon/shell_service_test.cpp",
814 "shell_service_protocol.cpp",
815 "shell_service_protocol_test.cpp",
Joshua Duong77b8ff32020-04-16 15:58:19 -0700816 "mdns_test.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800817 ],
818
Chen Zhu72ccee32020-05-08 16:45:11 -0700819 test_config: "adb_test.xml",
820
Josh Gao822f6742021-02-03 22:12:41 -0800821 target: {
822 android: {
823 srcs: [
824 "daemon/property_monitor_test.cpp",
825 ],
826 },
827 },
828
Josh Gaodc20c2f2020-03-27 19:41:59 -0700829 shared_libs: [
830 "liblog",
831 ],
832
Josh Gao361148b2018-01-02 12:01:43 -0800833 static_libs: [
834 "libadbd",
Josh Gao7cac88a2019-10-22 12:30:39 -0700835 "libadbd_auth",
Josh Gao361148b2018-01-02 12:01:43 -0800836 "libbase",
Josh Gao361148b2018-01-02 12:01:43 -0800837 "libcrypto_utils",
Josh Gao361148b2018-01-02 12:01:43 -0800838 "libusb",
Josh Gao361148b2018-01-02 12:01:43 -0800839 ],
easoncylee83d1c9d2021-04-15 16:28:54 +0800840 test_suites: ["general-tests", "mts-adbd"],
Dan Shi22e091b2019-09-24 09:04:05 -0700841 require_root: true,
Josh Gao361148b2018-01-02 12:01:43 -0800842}
843
Julien Desprezae94f512018-08-08 12:08:50 -0700844python_test_host {
Elliott Hughes307e7672018-02-16 17:58:14 -0800845 name: "adb_integration_test_adb",
846 main: "test_adb.py",
847 srcs: [
848 "test_adb.py",
849 ],
Julien Desprezae94f512018-08-08 12:08:50 -0700850 test_config: "adb_integration_test_adb.xml",
851 test_suites: ["general-tests"],
Elliott Hughes307e7672018-02-16 17:58:14 -0800852 version: {
853 py2: {
Josh Gaob1df00e2018-08-07 14:31:17 -0700854 enabled: false,
Elliott Hughes307e7672018-02-16 17:58:14 -0800855 },
856 py3: {
Josh Gaob1df00e2018-08-07 14:31:17 -0700857 enabled: true,
Elliott Hughes307e7672018-02-16 17:58:14 -0800858 },
GuangHui Liu35994392017-05-10 14:37:17 -0700859 },
Julien Desprezb099b532021-03-25 19:26:23 +0000860 test_options: {
861 unit_test: false,
862 },
GuangHui Liu35994392017-05-10 14:37:17 -0700863}
864
Julien Desprezcd11d0d2018-10-12 13:48:14 -0700865python_test_host {
Elliott Hughes307e7672018-02-16 17:58:14 -0800866 name: "adb_integration_test_device",
867 main: "test_device.py",
868 srcs: [
869 "test_device.py",
870 ],
871 libs: [
872 "adb_py",
873 ],
Julien Desprezcd11d0d2018-10-12 13:48:14 -0700874 test_config: "adb_integration_test_device.xml",
875 test_suites: ["general-tests"],
Elliott Hughes307e7672018-02-16 17:58:14 -0800876 version: {
877 py2: {
Josh Gao4218d852020-02-06 17:52:38 -0800878 enabled: false,
Elliott Hughes307e7672018-02-16 17:58:14 -0800879 },
880 py3: {
Josh Gao4218d852020-02-06 17:52:38 -0800881 enabled: true,
Elliott Hughes307e7672018-02-16 17:58:14 -0800882 },
GuangHui Liu35994392017-05-10 14:37:17 -0700883 },
Julien Desprezb099b532021-03-25 19:26:23 +0000884 test_options: {
885 unit_test: false,
886 },
GuangHui Liu35994392017-05-10 14:37:17 -0700887}
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700888
889// Note: using pipe for xxd to control the variable name generated
890// the default name used by xxd is the path to the input file.
891java_genrule {
892 name: "bin2c_fastdeployagent",
893 out: ["deployagent.inc"],
894 srcs: [":deployagent"],
895 cmd: "(echo 'unsigned char kDeployAgent[] = {' && xxd -i <$(in) && echo '};') > $(out)",
896}
897
898genrule {
899 name: "bin2c_fastdeployagentscript",
900 out: ["deployagentscript.inc"],
901 srcs: ["fastdeploy/deployagent/deployagent.sh"],
902 cmd: "(echo 'unsigned char kDeployAgentScript[] = {' && xxd -i <$(in) && echo '};') > $(out)",
903}
904
905cc_library_host_static {
906 name: "libfastdeploy_host",
907 defaults: ["adb_defaults"],
908 srcs: [
Alex Buynytskyy1af550e2019-09-16 12:10:54 -0700909 "fastdeploy/deploypatchgenerator/apk_archive.cpp",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700910 "fastdeploy/deploypatchgenerator/deploy_patch_generator.cpp",
911 "fastdeploy/deploypatchgenerator/patch_utils.cpp",
912 "fastdeploy/proto/ApkEntry.proto",
913 ],
914 static_libs: [
915 "libadb_host",
916 "libandroidfw",
917 "libbase",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700918 "libcrypto",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000919 "libcrypto_utils",
920 "libcutils",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700921 "libdiagnose_usb",
922 "liblog",
923 "libmdnssd",
924 "libusb",
925 "libutils",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700926 "libz",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000927 "libziparchive",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700928 ],
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700929 proto: {
930 type: "lite",
931 export_proto_headers: true,
932 },
933 target: {
934 windows: {
935 enabled: true,
936 shared_libs: ["AdbWinApi"],
937 },
938 },
939}
940
941cc_test_host {
942 name: "fastdeploy_test",
943 defaults: ["adb_defaults"],
944 srcs: [
Alex Buynytskyy1af550e2019-09-16 12:10:54 -0700945 "fastdeploy/deploypatchgenerator/apk_archive_test.cpp",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700946 "fastdeploy/deploypatchgenerator/deploy_patch_generator_test.cpp",
947 "fastdeploy/deploypatchgenerator/patch_utils_test.cpp",
948 ],
949 static_libs: [
Joshua Duong290ccb52019-11-20 14:18:43 -0800950 "libadb_crypto_static",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700951 "libadb_host",
Joshua Duong290ccb52019-11-20 14:18:43 -0800952 "libadb_pairing_auth_static",
953 "libadb_pairing_connection_static",
954 "libadb_protos_static",
Joshua Duong93b407c2020-07-30 16:34:29 -0700955 "libadb_sysdeps",
Joshua Duong290ccb52019-11-20 14:18:43 -0800956 "libadb_tls_connection_static",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700957 "libandroidfw",
958 "libbase",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700959 "libcrypto",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000960 "libcrypto_utils",
961 "libcutils",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700962 "libdiagnose_usb",
963 "libfastdeploy_host",
964 "liblog",
965 "libmdnssd",
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800966 "libopenscreen-discovery",
967 "libopenscreen-platform-impl",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700968 "libprotobuf-cpp-lite",
Joshua Duong290ccb52019-11-20 14:18:43 -0800969 "libssl",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700970 "libusb",
971 "libutils",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700972 "libz",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000973 "libziparchive",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700974 ],
975 target: {
976 windows: {
977 enabled: true,
978 shared_libs: ["AdbWinApi"],
979 },
980 },
981 data: [
Alex Buynytskyy1af550e2019-09-16 12:10:54 -0700982 "fastdeploy/testdata/rotating_cube-metadata-release.data",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700983 "fastdeploy/testdata/rotating_cube-release.apk",
Alex Buynytskyy1af550e2019-09-16 12:10:54 -0700984 "fastdeploy/testdata/sample.apk",
985 "fastdeploy/testdata/sample.cd",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700986 ],
987}