blob: 301307919cdea76b33a9bb762e35f80e7dc78806 [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",
Elliott Hughes038a7ac2022-08-12 15:26:44 +000065 "-framework Security",
Josh Gao361148b2018-01-02 12:01:43 -080066 "-lobjc",
67 ],
Joshua Duong28fd4e52021-03-19 12:12:35 -070068 cflags: [
69 // Required, to use the new IPv6 Sockets options introduced by RFC 3542.
70 "-D__APPLE_USE_RFC_3542",
71 ],
Josh Gao361148b2018-01-02 12:01:43 -080072 },
73
74 windows: {
75 cflags: [
76 // Define windows.h and tchar.h Unicode preprocessor symbols so that
77 // CreateFile(), _tfopen(), etc. map to versions that take wchar_t*, breaking the
78 // build if you accidentally pass char*. Fix by calling like:
79 // std::wstring path_wide;
80 // if (!android::base::UTF8ToWide(path_utf8, &path_wide)) { /* error handling */ }
81 // CreateFileW(path_wide.c_str());
82 "-DUNICODE=1",
83 "-D_UNICODE=1",
84
Elliott Hughesc229a722018-12-03 09:02:18 -080085 // Unlike on Linux, -std=gnu++ doesn't set _GNU_SOURCE on Windows.
Josh Gao361148b2018-01-02 12:01:43 -080086 "-D_GNU_SOURCE",
Josh Gao96049b92018-03-23 13:03:28 -070087
88 // MinGW hides some things behind _POSIX_SOURCE.
89 "-D_POSIX_SOURCE",
Josh Gao0560feb2019-01-22 19:36:15 -080090
Josh Gaoc3b64032019-04-17 16:57:43 -070091 // libusb uses __stdcall on a variadic function, which gets ignored.
92 "-Wno-ignored-attributes",
93
Josh Gao0560feb2019-01-22 19:36:15 -080094 // Not supported yet.
95 "-Wno-thread-safety",
Josh Gao361148b2018-01-02 12:01:43 -080096 ],
Josh Gaoea7b95a2018-03-23 15:37:20 -070097
98 host_ldlibs: [
99 "-lws2_32",
100 "-lgdi32",
101 "-luserenv",
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800102 "-liphlpapi",
Josh Gaoea7b95a2018-03-23 15:37:20 -0700103 ],
Josh Gao361148b2018-01-02 12:01:43 -0800104 },
Josh Gao0560feb2019-01-22 19:36:15 -0800105 },
Joshua Duongb5c3bec2020-07-17 14:14:00 -0700106
107 tidy: true,
108 tidy_checks: tidy_errors,
109 tidy_checks_as_errors: tidy_errors,
Josh Gao0560feb2019-01-22 19:36:15 -0800110}
Pirama Arumuga Nainar7aa20232018-06-01 11:31:38 -0700111
Josh Gao0560feb2019-01-22 19:36:15 -0800112cc_defaults {
113 name: "adbd_defaults",
114 defaults: ["adb_defaults"],
115
116 cflags: ["-UADB_HOST", "-DADB_HOST=0"],
Josh Gao361148b2018-01-02 12:01:43 -0800117}
118
Josh Gao0560feb2019-01-22 19:36:15 -0800119cc_defaults {
120 name: "host_adbd_supported",
121
122 host_supported: true,
123 target: {
124 linux: {
125 enabled: true,
126 host_ldlibs: [
127 "-lresolv", // b64_pton
128 "-lutil", // forkpty
129 ],
130 },
131 darwin: {
132 enabled: false,
133 },
134 windows: {
135 enabled: false,
136 },
137 },
138}
139
Liz Kammer6836b052021-01-22 13:39:03 -0500140soong_config_module_type_import {
141 from: "system/apex/Android.bp",
142 module_types: ["library_linking_strategy_cc_defaults"],
143}
144
145library_linking_strategy_cc_defaults {
Josh Gaodc20c2f2020-03-27 19:41:59 -0700146 name: "libadbd_binary_dependencies",
147 static_libs: [
148 "libadb_crypto",
149 "libadb_pairing_connection",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000150 "libadb_protos",
Joshua Duong93b407c2020-07-30 16:34:29 -0700151 "libadb_sysdeps",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700152 "libadb_tls_connection",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000153 "libadbconnection_server",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700154 "libadbd",
155 "libadbd_core",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000156 "libapp_processes_protos_lite",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700157 "libasyncio",
158 "libbrotli",
Josh Gao7e3f8112021-04-09 17:32:58 -0700159 "libcrypto_utils",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700160 "libcutils_sockets",
161 "libdiagnose_usb",
162 "libmdnssd",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700163 "libprotobuf-cpp-lite",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000164 "libzstd",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700165 ],
166
167 shared_libs: [
168 "libadbd_auth",
169 "libadbd_fs",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700170 "liblog",
171 "libselinux",
172 ],
173
Liz Kammer6836b052021-01-22 13:39:03 -0500174 soong_config_variables:{
175 library_linking_strategy: {
176 prefer_static: {
177 static_libs: [
178 "libbase",
179 ],
180 },
181 conditions_default: {
182 shared_libs: [
183 "libbase",
184 ],
185 },
186 },
187 },
188
Josh Gaodc20c2f2020-03-27 19:41:59 -0700189 target: {
Josh Gao7e3f8112021-04-09 17:32:58 -0700190 android: {
191 shared_libs: ["libcrypto"],
192 },
Colin Cross02290862022-03-24 15:47:28 -0700193 host_linux: {
Josh Gao7e3f8112021-04-09 17:32:58 -0700194 static_libs: ["libcrypto_static"],
195 },
Josh Gaodc20c2f2020-03-27 19:41:59 -0700196 recovery: {
197 exclude_static_libs: [
198 "libadb_pairing_auth",
199 "libadb_pairing_connection",
200 ],
201 },
202 },
203}
204
Josh Gao361148b2018-01-02 12:01:43 -0800205// libadb
206// =========================================================
207// These files are compiled for both the host and the device.
208libadb_srcs = [
209 "adb.cpp",
210 "adb_io.cpp",
211 "adb_listeners.cpp",
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800212 "adb_mdns.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800213 "adb_trace.cpp",
Josh Gao7d5762c2018-05-24 22:54:50 -0700214 "adb_unique_fd.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800215 "adb_utils.cpp",
Josh Gaob51193a2019-06-28 13:50:37 -0700216 "fdevent/fdevent.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800217 "services.cpp",
218 "sockets.cpp",
219 "socket_spec.cpp",
Joshua Duong93b407c2020-07-30 16:34:29 -0700220 "sysdeps/env.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800221 "sysdeps/errno.cpp",
222 "transport.cpp",
Josh Gao1e41fda2018-04-05 16:16:04 -0700223 "transport_fd.cpp",
Yurii Zubrytskyie5e6b0d2019-07-12 14:11:54 -0700224 "types.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800225]
226
Josh Gaod7c49ec2020-04-20 19:22:05 -0700227libadb_darwin_srcs = [
228 "fdevent/fdevent_poll.cpp",
229]
230
231libadb_windows_srcs = [
232 "fdevent/fdevent_poll.cpp",
233 "sysdeps_win32.cpp",
234 "sysdeps/win32/errno.cpp",
235 "sysdeps/win32/stat.cpp",
236]
237
Josh Gao361148b2018-01-02 12:01:43 -0800238libadb_posix_srcs = [
239 "sysdeps_unix.cpp",
240 "sysdeps/posix/network.cpp",
241]
242
Josh Gaodd716422019-07-11 13:47:44 -0700243libadb_linux_srcs = [
244 "fdevent/fdevent_epoll.cpp",
245]
246
Josh Gao361148b2018-01-02 12:01:43 -0800247libadb_test_srcs = [
248 "adb_io_test.cpp",
249 "adb_listeners_test.cpp",
250 "adb_utils_test.cpp",
Josh Gaob51193a2019-06-28 13:50:37 -0700251 "fdevent/fdevent_test.cpp",
Shaju Mathew3f7b4402023-01-19 21:56:37 -0800252 "shell_service_protocol.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800253 "socket_spec_test.cpp",
254 "socket_test.cpp",
255 "sysdeps_test.cpp",
256 "sysdeps/stat_test.cpp",
257 "transport_test.cpp",
Josh Gao9f155db2018-04-03 14:37:11 -0700258 "types_test.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800259]
260
261cc_library_host_static {
262 name: "libadb_host",
263 defaults: ["adb_defaults"],
264
265 srcs: libadb_srcs + [
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800266 "client/openscreen/mdns_service_info.cpp",
267 "client/openscreen/mdns_service_watcher.cpp",
268 "client/openscreen/platform/logging.cpp",
269 "client/openscreen/platform/task_runner.cpp",
270 "client/openscreen/platform/udp_socket.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800271 "client/auth.cpp",
Joshua Duong290ccb52019-11-20 14:18:43 -0800272 "client/adb_wifi.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800273 "client/usb_libusb.cpp",
Josh Gaoa5baef92020-04-22 17:30:06 -0700274 "client/transport_local.cpp",
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800275 "client/mdnsresponder_client.cpp",
Joshua Duongf2a0d872020-04-30 15:45:38 -0700276 "client/mdns_utils.cpp",
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800277 "client/transport_mdns.cpp",
Josh Gao6b55e752020-03-27 18:09:56 -0700278 "client/transport_usb.cpp",
Joshua Duong290ccb52019-11-20 14:18:43 -0800279 "client/pairing/pairing_client.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800280 ],
281
Dan Willemsen18861892018-08-29 14:58:02 -0700282 generated_headers: ["platform_tools_version"],
283
Josh Gao361148b2018-01-02 12:01:43 -0800284 target: {
285 linux: {
Josh Gaodd716422019-07-11 13:47:44 -0700286 srcs: ["client/usb_linux.cpp"] + libadb_linux_srcs,
Josh Gao361148b2018-01-02 12:01:43 -0800287 },
288 darwin: {
Josh Gaod7c49ec2020-04-20 19:22:05 -0700289 srcs: ["client/usb_osx.cpp"] + libadb_darwin_srcs,
Josh Gao361148b2018-01-02 12:01:43 -0800290 },
Josh Gao361148b2018-01-02 12:01:43 -0800291 not_windows: {
292 srcs: libadb_posix_srcs,
293 },
294 windows: {
295 enabled: true,
296 srcs: [
297 "client/usb_windows.cpp",
Josh Gaod7c49ec2020-04-20 19:22:05 -0700298 ] + libadb_windows_srcs,
Josh Gao361148b2018-01-02 12:01:43 -0800299 shared_libs: ["AdbWinApi"],
300 },
301 },
302
303 static_libs: [
Joshua Duong090c8072019-12-19 16:36:30 -0800304 "libadb_crypto",
Joshua Duong290ccb52019-11-20 14:18:43 -0800305 "libadb_pairing_connection",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000306 "libadb_protos",
Joshua Duong290ccb52019-11-20 14:18:43 -0800307 "libadb_tls_connection",
Josh Gao361148b2018-01-02 12:01:43 -0800308 "libbase",
Josh Gao361148b2018-01-02 12:01:43 -0800309 "libcrypto",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000310 "libcrypto_utils",
Idries Hamadi78330f02018-09-13 18:00:25 +0100311 "libcutils",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000312 "libdiagnose_usb",
313 "liblog",
314 "libmdnssd",
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800315 "libopenscreen-discovery",
316 "libopenscreen-platform-impl",
Joshua Duong290ccb52019-11-20 14:18:43 -0800317 "libprotobuf-cpp-lite",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000318 "libusb",
319 "libutils",
Josh Gao361148b2018-01-02 12:01:43 -0800320 ],
321}
322
Joshua Duong93b407c2020-07-30 16:34:29 -0700323cc_library {
324 name: "libadb_sysdeps",
325 defaults: ["adb_defaults"],
326 recovery_available: true,
327 host_supported: true,
328 compile_multilib: "both",
329 min_sdk_version: "apex_inherit",
Jiyong Parkc55fa5c2020-08-25 17:05:41 +0900330 // This library doesn't use build::GetBuildNumber()
331 use_version_lib: false,
Joshua Duong93b407c2020-07-30 16:34:29 -0700332
333 srcs: [
334 "sysdeps/env.cpp",
335 ],
336
337 shared_libs: [
338 "libbase",
339 "liblog",
340 ],
341
342 target: {
343 windows: {
344 enabled: true,
345 ldflags: ["-municode"],
346 },
347 },
348
349 export_include_dirs: ["."],
350
351 visibility: [
Joshua Duong93b407c2020-07-30 16:34:29 -0700352 "//bootable/recovery/minadbd:__subpackages__",
Baligh Uddin95e03672020-10-18 15:09:52 +0000353 "//packages/modules/adb:__subpackages__",
Joshua Duong93b407c2020-07-30 16:34:29 -0700354 ],
355
356 apex_available: [
357 "com.android.adbd",
358 "test_com.android.adbd",
359 ],
360}
361
Josh Gao361148b2018-01-02 12:01:43 -0800362cc_test_host {
363 name: "adb_test",
364 defaults: ["adb_defaults"],
Joshua Duongf2a0d872020-04-30 15:45:38 -0700365 srcs: libadb_test_srcs + [
366 "client/mdns_utils_test.cpp",
Shaju Mathew3f7b4402023-01-19 21:56:37 -0800367 "test_utils/test_utils.cpp",
Joshua Duongf2a0d872020-04-30 15:45:38 -0700368 ],
369
Josh Gao361148b2018-01-02 12:01:43 -0800370 static_libs: [
Joshua Duong290ccb52019-11-20 14:18:43 -0800371 "libadb_crypto_static",
Josh Gao361148b2018-01-02 12:01:43 -0800372 "libadb_host",
Joshua Duong290ccb52019-11-20 14:18:43 -0800373 "libadb_pairing_auth_static",
374 "libadb_pairing_connection_static",
375 "libadb_protos_static",
Joshua Duong93b407c2020-07-30 16:34:29 -0700376 "libadb_sysdeps",
Joshua Duong290ccb52019-11-20 14:18:43 -0800377 "libadb_tls_connection_static",
Josh Gao361148b2018-01-02 12:01:43 -0800378 "libbase",
Josh Gao361148b2018-01-02 12:01:43 -0800379 "libcrypto",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000380 "libcrypto_utils",
381 "libcutils",
382 "libdiagnose_usb",
Tom Cherry49b96ec2020-01-08 13:41:56 -0800383 "liblog",
Josh Gao361148b2018-01-02 12:01:43 -0800384 "libmdnssd",
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800385 "libopenscreen-discovery",
386 "libopenscreen-platform-impl",
Joshua Duong290ccb52019-11-20 14:18:43 -0800387 "libprotobuf-cpp-lite",
388 "libssl",
Josh Gao361148b2018-01-02 12:01:43 -0800389 "libusb",
390 ],
Josh Gaoea7b95a2018-03-23 15:37:20 -0700391
392 target: {
393 windows: {
394 enabled: true,
Josh Gao3e8bdab2019-07-16 15:08:42 -0700395 ldflags: ["-municode"],
Josh Gaoea7b95a2018-03-23 15:37:20 -0700396 shared_libs: ["AdbWinApi"],
397 },
398 },
zeek9afe4f82022-09-20 00:49:44 +0800399
400 test_options: {
401 // TODO(b/247985207) remove "no-remote" tag when b/247985207 is fixed.
402 tags: ["no-remote"],
403 }
Josh Gao361148b2018-01-02 12:01:43 -0800404}
405
406cc_binary_host {
407 name: "adb",
Josh Gao361148b2018-01-02 12:01:43 -0800408
Josh Gao06af61e2020-02-03 23:08:05 -0800409 stl: "libc++_static",
Josh Gao361148b2018-01-02 12:01:43 -0800410 defaults: ["adb_defaults"],
411
412 srcs: [
413 "client/adb_client.cpp",
414 "client/bugreport.cpp",
415 "client/commandline.cpp",
416 "client/file_sync_client.cpp",
417 "client/main.cpp",
418 "client/console.cpp",
Idries Hamadi1ecee442018-01-29 16:30:36 +0000419 "client/adb_install.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800420 "client/line_printer.cpp",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700421 "client/fastdeploy.cpp",
422 "client/fastdeploycallbacks.cpp",
Alex Buynytskyy175ce292020-02-13 06:52:04 -0800423 "client/incremental.cpp",
424 "client/incremental_server.cpp",
Songchun Fan965301e2020-03-13 13:11:43 -0700425 "client/incremental_utils.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800426 "shell_service_protocol.cpp",
427 ],
428
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700429 generated_headers: [
430 "bin2c_fastdeployagent",
431 "bin2c_fastdeployagentscript"
432 ],
433
Josh Gao361148b2018-01-02 12:01:43 -0800434 static_libs: [
Joshua Duong090c8072019-12-19 16:36:30 -0800435 "libadb_crypto",
Josh Gao361148b2018-01-02 12:01:43 -0800436 "libadb_host",
Josh Gaod8bad8e2020-03-26 13:46:08 -0700437 "libadb_pairing_auth",
438 "libadb_pairing_connection",
Joshua Duong290ccb52019-11-20 14:18:43 -0800439 "libadb_protos",
Joshua Duong93b407c2020-07-30 16:34:29 -0700440 "libadb_sysdeps",
Joshua Duong290ccb52019-11-20 14:18:43 -0800441 "libadb_tls_connection",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700442 "libandroidfw",
Shukang Zhou420ad552020-02-13 17:01:39 -0800443 "libapp_processes_protos_full",
Josh Gao361148b2018-01-02 12:01:43 -0800444 "libbase",
Josh Gao2f0f9eb2020-03-04 19:34:08 -0800445 "libbrotli",
Josh Gao361148b2018-01-02 12:01:43 -0800446 "libcrypto",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000447 "libcrypto_utils",
448 "libcutils",
Josh Gao361148b2018-01-02 12:01:43 -0800449 "libdiagnose_usb",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000450 "libfastdeploy_host",
451 "liblog",
Josh Gao361148b2018-01-02 12:01:43 -0800452 "liblog",
Alex Buynytskyy175ce292020-02-13 06:52:04 -0800453 "liblz4",
Josh Gao361148b2018-01-02 12:01:43 -0800454 "libmdnssd",
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800455 "libopenscreen-discovery",
456 "libopenscreen-platform-impl",
Shukang Zhou420ad552020-02-13 17:01:39 -0800457 "libprotobuf-cpp-full",
Joshua Duong290ccb52019-11-20 14:18:43 -0800458 "libssl",
Josh Gao361148b2018-01-02 12:01:43 -0800459 "libusb",
Idries Hamadi78330f02018-09-13 18:00:25 +0100460 "libutils",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700461 "libz",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000462 "libziparchive",
Josh Gaobdebc9b2020-05-27 17:52:52 -0700463 "libzstd",
Josh Gao361148b2018-01-02 12:01:43 -0800464 ],
465
Josh Gao361148b2018-01-02 12:01:43 -0800466 // Don't add anything here, we don't want additional shared dependencies
467 // on the host adb tool, and shared libraries that link against libc++
468 // will violate ODR
469 shared_libs: [],
470
Dan Willemsen7024da42018-11-19 19:11:35 -0800471 // Archive adb, adb.exe.
472 dist: {
473 targets: [
474 "dist_files",
475 "sdk",
Shaju Mathew9510d642022-10-06 22:18:29 +0000476 "sdk-repo-platform-tools",
477 "sdk_repo",
Dan Willemsen7024da42018-11-19 19:11:35 -0800478 "win_sdk",
479 ],
480 },
481
Josh Gao361148b2018-01-02 12:01:43 -0800482 target: {
483 darwin: {
484 cflags: [
485 "-Wno-sizeof-pointer-memaccess",
486 ],
487 },
488 windows: {
489 enabled: true,
490 ldflags: ["-municode"],
Josh Gao361148b2018-01-02 12:01:43 -0800491 shared_libs: ["AdbWinApi"],
492 required: [
493 "AdbWinUsbApi",
494 ],
495 },
496 },
497}
498
Tao Bao49042e32018-07-30 20:45:27 -0700499// libadbd_core contains the common sources to build libadbd and libadbd_services.
Josh Gao361148b2018-01-02 12:01:43 -0800500cc_library_static {
Tao Bao49042e32018-07-30 20:45:27 -0700501 name: "libadbd_core",
Josh Gao0560feb2019-01-22 19:36:15 -0800502 defaults: ["adbd_defaults", "host_adbd_supported"],
Tao Bao49042e32018-07-30 20:45:27 -0700503 recovery_available: true,
504
505 // libminadbd wants both, as it's used to build native tests.
506 compile_multilib: "both",
507
Josh Gaodd716422019-07-11 13:47:44 -0700508 srcs: libadb_srcs + libadb_linux_srcs + libadb_posix_srcs + [
Josh Gaoa5baef92020-04-22 17:30:06 -0700509 "daemon/adb_wifi.cpp",
Tao Bao49042e32018-07-30 20:45:27 -0700510 "daemon/auth.cpp",
511 "daemon/jdwp_service.cpp",
Josh Gaobd775212020-02-26 16:39:20 -0800512 "daemon/logging.cpp",
Josh Gaoa5baef92020-04-22 17:30:06 -0700513 "daemon/transport_local.cpp",
Tao Bao49042e32018-07-30 20:45:27 -0700514 ],
515
Dan Willemsen18861892018-08-29 14:58:02 -0700516 generated_headers: ["platform_tools_version"],
517
Tao Bao49042e32018-07-30 20:45:27 -0700518 static_libs: [
519 "libdiagnose_usb",
Tao Bao49042e32018-07-30 20:45:27 -0700520 ],
521
522 shared_libs: [
Joshua Duong090c8072019-12-19 16:36:30 -0800523 "libadb_crypto",
Joshua Duong290ccb52019-11-20 14:18:43 -0800524 "libadb_pairing_connection",
525 "libadb_protos",
526 "libadb_tls_connection",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000527 "libadbconnection_server",
Josh Gao7cac88a2019-10-22 12:30:39 -0700528 "libadbd_auth",
Josh Gaofa3605a2020-03-16 11:30:09 -0700529 "libapp_processes_protos_lite",
Tao Bao49042e32018-07-30 20:45:27 -0700530 "libasyncio",
531 "libbase",
532 "libcrypto",
533 "libcrypto_utils",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700534 "libcutils_sockets",
Tao Bao49042e32018-07-30 20:45:27 -0700535 "liblog",
536 ],
Josh Gao0560feb2019-01-22 19:36:15 -0800537
Shukang Zhou420ad552020-02-13 17:01:39 -0800538 proto: {
539 type: "lite",
540 static: true,
541 export_proto_headers: true,
542 },
543
Josh Gao0560feb2019-01-22 19:36:15 -0800544 target: {
545 android: {
Josh Gao0560feb2019-01-22 19:36:15 -0800546 srcs: [
Josh Gao822f6742021-02-03 22:12:41 -0800547 "daemon/property_monitor.cpp",
Josh Gao0560feb2019-01-22 19:36:15 -0800548 "daemon/usb.cpp",
549 "daemon/usb_ffs.cpp",
Josh Gao2dc61962021-02-03 22:11:45 -0800550 "daemon/watchdog.cpp",
Josh Gao0560feb2019-01-22 19:36:15 -0800551 ]
Joshua Duong929364a2020-02-26 15:43:44 -0800552 },
553 recovery: {
554 exclude_shared_libs: [
555 "libadb_pairing_auth",
556 "libadb_pairing_connection",
Josh Gaofa3605a2020-03-16 11:30:09 -0700557 "libapp_processes_protos_lite",
Joshua Duong929364a2020-02-26 15:43:44 -0800558 ],
Josh Gao0560feb2019-01-22 19:36:15 -0800559 }
560 },
Josh Gao5fcd7ae2020-03-16 12:48:18 -0700561
Jooyung Han9864dad2021-11-22 10:15:19 +0900562 min_sdk_version: "30",
Josh Gao5fcd7ae2020-03-16 12:48:18 -0700563 apex_available: [
564 "//apex_available:platform",
565 "com.android.adbd",
566 ],
567 visibility: [
568 "//bootable/recovery/minadbd",
Baligh Uddin95e03672020-10-18 15:09:52 +0000569 "//packages/modules/adb:__subpackages__",
Josh Gao5fcd7ae2020-03-16 12:48:18 -0700570 ],
Tao Bao49042e32018-07-30 20:45:27 -0700571}
572
Josh Gao2029a372020-03-09 15:20:55 -0700573cc_library {
Tao Bao49042e32018-07-30 20:45:27 -0700574 name: "libadbd_services",
Josh Gao0560feb2019-01-22 19:36:15 -0800575 defaults: ["adbd_defaults", "host_adbd_supported"],
Tao Bao49042e32018-07-30 20:45:27 -0700576 recovery_available: true,
577 compile_multilib: "both",
578
579 srcs: [
580 "daemon/file_sync_service.cpp",
Tao Bao49042e32018-07-30 20:45:27 -0700581 "daemon/services.cpp",
Tao Bao49042e32018-07-30 20:45:27 -0700582 "daemon/shell_service.cpp",
583 "shell_service_protocol.cpp",
584 ],
585
586 cflags: [
587 "-D_GNU_SOURCE",
588 "-Wno-deprecated-declarations",
589 ],
590
591 static_libs: [
Josh Gaobf5a9362020-01-22 17:58:03 -0800592 "libadbconnection_server",
Tao Bao49042e32018-07-30 20:45:27 -0700593 "libadbd_core",
Josh Gao2f0f9eb2020-03-04 19:34:08 -0800594 "libbrotli",
Tao Bao49042e32018-07-30 20:45:27 -0700595 "libdiagnose_usb",
Josh Gaofb386cc2020-03-26 22:02:03 -0700596 "liblz4",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000597 "libprotobuf-cpp-lite",
Josh Gaobdebc9b2020-05-27 17:52:52 -0700598 "libzstd",
Tao Bao49042e32018-07-30 20:45:27 -0700599 ],
600
601 shared_libs: [
Joshua Duong290ccb52019-11-20 14:18:43 -0800602 "libadb_crypto",
603 "libadb_pairing_connection",
604 "libadb_protos",
605 "libadb_tls_connection",
Josh Gaofa3605a2020-03-16 11:30:09 -0700606 "libapp_processes_protos_lite",
Tao Bao49042e32018-07-30 20:45:27 -0700607 "libasyncio",
608 "libbase",
Tao Bao49042e32018-07-30 20:45:27 -0700609 "libcrypto_utils",
Josh Gao2029a372020-03-09 15:20:55 -0700610 "libcutils_sockets",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700611
612 // APEX dependencies.
613 "libadbd_auth",
614 "libadbd_fs",
615 "libcrypto",
616 "liblog",
Tao Bao49042e32018-07-30 20:45:27 -0700617 ],
Alex Buynytskyyef34f012018-12-12 10:48:50 -0800618
619 target: {
Josh Gao0560feb2019-01-22 19:36:15 -0800620 android: {
621 srcs: [
622 "daemon/abb_service.cpp",
623 "daemon/framebuffer_service.cpp",
624 "daemon/mdns.cpp",
Josh Gao0560feb2019-01-22 19:36:15 -0800625 "daemon/restart_service.cpp",
Josh Gao0560feb2019-01-22 19:36:15 -0800626 ],
627 shared_libs: [
Josh Gao0560feb2019-01-22 19:36:15 -0800628 "libmdnssd",
Josh Gao0560feb2019-01-22 19:36:15 -0800629 "libselinux",
630 ],
631 },
Alex Buynytskyyef34f012018-12-12 10:48:50 -0800632 recovery: {
633 exclude_srcs: [
634 "daemon/abb_service.cpp",
635 ],
Joshua Duong929364a2020-02-26 15:43:44 -0800636 exclude_shared_libs: [
637 "libadb_pairing_auth",
638 "libadb_pairing_connection",
639 ],
Alex Buynytskyyef34f012018-12-12 10:48:50 -0800640 },
641 },
Josh Gao5fcd7ae2020-03-16 12:48:18 -0700642
Jooyung Han9864dad2021-11-22 10:15:19 +0900643 min_sdk_version: "30",
Josh Gao5fcd7ae2020-03-16 12:48:18 -0700644 apex_available: [
645 "//apex_available:platform",
646 "com.android.adbd",
647 ],
648 visibility: [
Baligh Uddin95e03672020-10-18 15:09:52 +0000649 "//packages/modules/adb",
Josh Gao5fcd7ae2020-03-16 12:48:18 -0700650 ],
651
Tao Bao49042e32018-07-30 20:45:27 -0700652}
653
654cc_library {
Josh Gao361148b2018-01-02 12:01:43 -0800655 name: "libadbd",
Josh Gao0560feb2019-01-22 19:36:15 -0800656 defaults: ["adbd_defaults", "host_adbd_supported"],
Jiyong Parkeb590392018-05-24 14:11:00 +0900657 recovery_available: true,
Jooyung Han9864dad2021-11-22 10:15:19 +0900658 min_sdk_version: "30",
Jiyong Parkc6afe4a2020-03-23 14:40:50 +0000659 apex_available: ["com.android.adbd"],
Josh Gao361148b2018-01-02 12:01:43 -0800660
Josh Gaobf5a9362020-01-22 17:58:03 -0800661 // avoid getting duplicate symbol of android::build::getbuildnumber().
Tao Bao49042e32018-07-30 20:45:27 -0700662 use_version_lib: false,
663
664 // libminadbd wants both, as it's used to build native tests.
Josh Gao361148b2018-01-02 12:01:43 -0800665 compile_multilib: "both",
Tao Bao49042e32018-07-30 20:45:27 -0700666
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000667 static_libs: [
668 "libadbd_core",
669 "libadbd_services",
670 "libbrotli",
671 "libcutils_sockets",
672 "libdiagnose_usb",
673 "liblz4",
674 "libmdnssd",
675 "libprotobuf-cpp-lite",
676 "libzstd",
677 ],
678
Tao Bao49042e32018-07-30 20:45:27 -0700679 shared_libs: [
Josh Gaofa3605a2020-03-16 11:30:09 -0700680 "libadbconnection_server",
681 "libapp_processes_protos_lite",
Joshua Duong290ccb52019-11-20 14:18:43 -0800682 "libadb_crypto",
683 "libadb_pairing_connection",
684 "libadb_tls_connection",
Josh Gao361148b2018-01-02 12:01:43 -0800685 "libasyncio",
Josh Gao361148b2018-01-02 12:01:43 -0800686 "libbase",
Tao Bao49042e32018-07-30 20:45:27 -0700687 "libcrypto",
688 "libcrypto_utils",
Tao Bao49042e32018-07-30 20:45:27 -0700689 "liblog",
Josh Gaoa4dfc142020-02-19 13:50:57 -0800690 "libselinux",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700691
692 // APEX dependencies on the system image.
693 "libadbd_auth",
694 "libadbd_fs",
Josh Gaoa4dfc142020-02-19 13:50:57 -0800695 ],
696
Joshua Duong929364a2020-02-26 15:43:44 -0800697 target: {
698 recovery: {
699 exclude_shared_libs: [
700 "libadb_pairing_auth",
701 "libadb_pairing_connection",
702 ],
703 }
704 },
705
Jerry Zhangd4fe8b62018-05-07 15:14:47 -0700706
Josh Gao6b55e752020-03-27 18:09:56 -0700707 visibility: [
708 "//bootable/recovery/minadbd",
Baligh Uddin95e03672020-10-18 15:09:52 +0000709 "//packages/modules/adb",
Jerry Zhangd4fe8b62018-05-07 15:14:47 -0700710 ],
Josh Gao361148b2018-01-02 12:01:43 -0800711}
712
713cc_binary {
714 name: "adbd",
Josh Gaodc20c2f2020-03-27 19:41:59 -0700715 defaults: ["adbd_defaults", "host_adbd_supported", "libadbd_binary_dependencies"],
Jiyong Parkeb590392018-05-24 14:11:00 +0900716 recovery_available: true,
Jooyung Han9864dad2021-11-22 10:15:19 +0900717 min_sdk_version: "30",
Jiyong Parkc6afe4a2020-03-23 14:40:50 +0000718 apex_available: ["com.android.adbd"],
Josh Gao3e0540a2018-03-06 12:57:27 -0800719
Josh Gao361148b2018-01-02 12:01:43 -0800720 srcs: [
721 "daemon/main.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800722 ],
723
724 cflags: [
725 "-D_GNU_SOURCE",
726 "-Wno-deprecated-declarations",
727 ],
728
729 strip: {
730 keep_symbols: true,
731 },
732
Josh Gao2bfc85e2019-08-15 14:05:12 -0700733 static_libs: [
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000734 "libadb_protos",
Josh Gao361148b2018-01-02 12:01:43 -0800735 "libadbd",
Tao Bao49042e32018-07-30 20:45:27 -0700736 "libadbd_services",
Josh Gao2bfc85e2019-08-15 14:05:12 -0700737 "libasyncio",
Tao Bao49042e32018-07-30 20:45:27 -0700738 "libcap",
Josh Gaofb386cc2020-03-26 22:02:03 -0700739 "liblz4",
Josh Gao361148b2018-01-02 12:01:43 -0800740 "libminijail",
Joshua Duong290ccb52019-11-20 14:18:43 -0800741 "libssl",
Josh Gao361148b2018-01-02 12:01:43 -0800742 ],
Josh Gao2bfc85e2019-08-15 14:05:12 -0700743
744 shared_libs: [
Josh Gao090712a2020-01-16 12:40:43 -0800745 "libadbd_auth",
Josh Gao2bfc85e2019-08-15 14:05:12 -0700746 ],
Josh Gao06af61e2020-02-03 23:08:05 -0800747
Joshua Duong929364a2020-02-26 15:43:44 -0800748 target: {
749 recovery: {
750 exclude_shared_libs: [
751 "libadb_pairing_auth",
752 "libadb_pairing_connection",
753 ],
754 }
755 },
Josh Gao361148b2018-01-02 12:01:43 -0800756}
757
Josh Gao06e45932019-10-23 13:27:17 -0700758phony {
Josh Gaodf43f5e2020-06-01 18:59:21 -0700759 // Interface between adbd in a module and the system.
760 name: "adbd_system_api",
Josh Gao06e45932019-10-23 13:27:17 -0700761 required: [
Josh Gaodf43f5e2020-06-01 18:59:21 -0700762 "libadbd_auth",
763 "libadbd_fs",
Josh Gao06e45932019-10-23 13:27:17 -0700764 "abb",
Josh Gao83ce3e22019-10-22 12:30:36 -0700765 "reboot",
Yi-Yo Chiangc24ad0d2022-08-05 12:07:34 +0800766 ],
767 product_variables: {
768 debuggable: {
769 required: [
770 "remount",
Yi-Yo Chiangc24ad0d2022-08-05 12:07:34 +0800771 ],
772 },
773 },
Josh Gao06e45932019-10-23 13:27:17 -0700774}
775
776phony {
Josh Gaodf43f5e2020-06-01 18:59:21 -0700777 name: "adbd_system_api_recovery",
Josh Gao06e45932019-10-23 13:27:17 -0700778 required: [
Inseob Kimfc0410d2021-06-30 15:07:24 +0900779 "libadbd_auth.recovery",
780 "libadbd_fs.recovery",
Josh Gao83ce3e22019-10-22 12:30:36 -0700781 "reboot.recovery",
Josh Gao06e45932019-10-23 13:27:17 -0700782 ],
783}
784
Alex Buynytskyyef34f012018-12-12 10:48:50 -0800785cc_binary {
786 name: "abb",
787
Josh Gao0560feb2019-01-22 19:36:15 -0800788 defaults: ["adbd_defaults"],
Josh Gao06af61e2020-02-03 23:08:05 -0800789 stl: "libc++",
Alex Buynytskyyef34f012018-12-12 10:48:50 -0800790 recovery_available: false,
791
792 srcs: [
793 "daemon/abb.cpp",
794 ],
795
796 cflags: [
797 "-D_GNU_SOURCE",
798 "-Wno-deprecated-declarations",
799 ],
800
801 strip: {
802 keep_symbols: true,
803 },
804
805 static_libs: [
806 "libadbd_core",
807 "libadbd_services",
808 "libcmd",
809 ],
810
811 shared_libs: [
812 "libbase",
813 "libbinder",
814 "liblog",
815 "libutils",
816 "libselinux",
817 ],
818}
819
Jingwen Chene29935e2022-12-10 03:50:12 +0000820ADBD_TEST_LIBS = [
821 "libadbd",
822 "libadbd_auth",
823 "libbase",
Jingwen Chene29935e2022-12-10 03:50:12 +0000824 "libusb",
825]
826
Josh Gao361148b2018-01-02 12:01:43 -0800827cc_test {
828 name: "adbd_test",
Josh Gao06af61e2020-02-03 23:08:05 -0800829
Josh Gaodc20c2f2020-03-27 19:41:59 -0700830 defaults: ["adbd_defaults", "libadbd_binary_dependencies"],
Josh Gao06af61e2020-02-03 23:08:05 -0800831
832 recovery_available: false,
Josh Gao361148b2018-01-02 12:01:43 -0800833 srcs: libadb_test_srcs + [
Shaju Mathewccdd7ff2023-02-01 03:00:40 -0800834 "daemon/restart_service.cpp",
835 "daemon/restart_service_test.cpp",
Josh Gao5607e922018-07-25 18:15:52 -0700836 "daemon/services.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800837 "daemon/shell_service.cpp",
838 "daemon/shell_service_test.cpp",
Shaju Mathew3f7b4402023-01-19 21:56:37 -0800839 "test_utils/test_utils.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800840 "shell_service_protocol_test.cpp",
Joshua Duong77b8ff32020-04-16 15:58:19 -0700841 "mdns_test.cpp",
Josh Gao361148b2018-01-02 12:01:43 -0800842 ],
843
Fabien Sanglardfcd64992022-09-02 17:43:55 -0700844 test_config: "adbd_test.xml",
Chen Zhu72ccee32020-05-08 16:45:11 -0700845
Josh Gao822f6742021-02-03 22:12:41 -0800846 target: {
847 android: {
848 srcs: [
849 "daemon/property_monitor_test.cpp",
850 ],
851 },
852 },
853
Josh Gaodc20c2f2020-03-27 19:41:59 -0700854 shared_libs: [
855 "liblog",
856 ],
857
Jingwen Chene29935e2022-12-10 03:50:12 +0000858 static_libs: ADBD_TEST_LIBS,
859
860 // Shared lib versions of static libs can potentially come from
861 // libadbd_binary_dependencies (e.g. libbase as a shared_lib, depending on
862 // library_linking_strategy), which will cause both shared/static versions of
863 // the same library to be in the link action.
864 //
865 // adbd_test uses the static version of these libraries above, so exclude them here.
866 exclude_shared_libs: ADBD_TEST_LIBS,
867
easoncylee83d1c9d2021-04-15 16:28:54 +0800868 test_suites: ["general-tests", "mts-adbd"],
Dan Shi22e091b2019-09-24 09:04:05 -0700869 require_root: true,
Josh Gao361148b2018-01-02 12:01:43 -0800870}
871
Julien Desprezae94f512018-08-08 12:08:50 -0700872python_test_host {
Elliott Hughes307e7672018-02-16 17:58:14 -0800873 name: "adb_integration_test_adb",
874 main: "test_adb.py",
875 srcs: [
876 "test_adb.py",
877 ],
Julien Desprezae94f512018-08-08 12:08:50 -0700878 test_config: "adb_integration_test_adb.xml",
879 test_suites: ["general-tests"],
Julien Desprezb099b532021-03-25 19:26:23 +0000880 test_options: {
881 unit_test: false,
882 },
GuangHui Liu35994392017-05-10 14:37:17 -0700883}
884
Julien Desprezcd11d0d2018-10-12 13:48:14 -0700885python_test_host {
Elliott Hughes307e7672018-02-16 17:58:14 -0800886 name: "adb_integration_test_device",
887 main: "test_device.py",
888 srcs: [
889 "test_device.py",
890 ],
891 libs: [
892 "adb_py",
893 ],
Julien Desprezcd11d0d2018-10-12 13:48:14 -0700894 test_config: "adb_integration_test_device.xml",
895 test_suites: ["general-tests"],
Julien Desprezb099b532021-03-25 19:26:23 +0000896 test_options: {
897 unit_test: false,
898 },
GuangHui Liu35994392017-05-10 14:37:17 -0700899}
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700900
901// Note: using pipe for xxd to control the variable name generated
902// the default name used by xxd is the path to the input file.
903java_genrule {
904 name: "bin2c_fastdeployagent",
905 out: ["deployagent.inc"],
906 srcs: [":deployagent"],
907 cmd: "(echo 'unsigned char kDeployAgent[] = {' && xxd -i <$(in) && echo '};') > $(out)",
908}
909
910genrule {
911 name: "bin2c_fastdeployagentscript",
912 out: ["deployagentscript.inc"],
913 srcs: ["fastdeploy/deployagent/deployagent.sh"],
914 cmd: "(echo 'unsigned char kDeployAgentScript[] = {' && xxd -i <$(in) && echo '};') > $(out)",
915}
916
917cc_library_host_static {
918 name: "libfastdeploy_host",
919 defaults: ["adb_defaults"],
920 srcs: [
Alex Buynytskyy1af550e2019-09-16 12:10:54 -0700921 "fastdeploy/deploypatchgenerator/apk_archive.cpp",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700922 "fastdeploy/deploypatchgenerator/deploy_patch_generator.cpp",
923 "fastdeploy/deploypatchgenerator/patch_utils.cpp",
924 "fastdeploy/proto/ApkEntry.proto",
925 ],
926 static_libs: [
927 "libadb_host",
928 "libandroidfw",
929 "libbase",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700930 "libcrypto",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000931 "libcrypto_utils",
932 "libcutils",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700933 "libdiagnose_usb",
934 "liblog",
935 "libmdnssd",
936 "libusb",
937 "libutils",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700938 "libz",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000939 "libziparchive",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700940 ],
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700941 proto: {
942 type: "lite",
943 export_proto_headers: true,
944 },
945 target: {
946 windows: {
947 enabled: true,
948 shared_libs: ["AdbWinApi"],
949 },
950 },
951}
952
953cc_test_host {
954 name: "fastdeploy_test",
955 defaults: ["adb_defaults"],
956 srcs: [
Alex Buynytskyy1af550e2019-09-16 12:10:54 -0700957 "fastdeploy/deploypatchgenerator/apk_archive_test.cpp",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700958 "fastdeploy/deploypatchgenerator/deploy_patch_generator_test.cpp",
959 "fastdeploy/deploypatchgenerator/patch_utils_test.cpp",
960 ],
961 static_libs: [
Joshua Duong290ccb52019-11-20 14:18:43 -0800962 "libadb_crypto_static",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700963 "libadb_host",
Joshua Duong290ccb52019-11-20 14:18:43 -0800964 "libadb_pairing_auth_static",
965 "libadb_pairing_connection_static",
966 "libadb_protos_static",
Joshua Duong93b407c2020-07-30 16:34:29 -0700967 "libadb_sysdeps",
Joshua Duong290ccb52019-11-20 14:18:43 -0800968 "libadb_tls_connection_static",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700969 "libandroidfw",
970 "libbase",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700971 "libcrypto",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000972 "libcrypto_utils",
973 "libcutils",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700974 "libdiagnose_usb",
975 "libfastdeploy_host",
976 "liblog",
977 "libmdnssd",
Joshua Duongf4ba8d72021-01-13 12:18:15 -0800978 "libopenscreen-discovery",
979 "libopenscreen-platform-impl",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700980 "libprotobuf-cpp-lite",
Joshua Duong290ccb52019-11-20 14:18:43 -0800981 "libssl",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700982 "libusb",
983 "libutils",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700984 "libz",
Oriol Prieto Gasco532e5702021-08-20 14:36:42 +0000985 "libziparchive",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700986 ],
987 target: {
988 windows: {
989 enabled: true,
990 shared_libs: ["AdbWinApi"],
991 },
992 },
993 data: [
Alex Buynytskyy1af550e2019-09-16 12:10:54 -0700994 "fastdeploy/testdata/rotating_cube-metadata-release.data",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700995 "fastdeploy/testdata/rotating_cube-release.apk",
Alex Buynytskyy1af550e2019-09-16 12:10:54 -0700996 "fastdeploy/testdata/sample.apk",
997 "fastdeploy/testdata/sample.cd",
Joshua Gilpatrick0d384112019-07-19 09:42:12 -0700998 ],
999}