GuangHui Liu | 3599439 | 2017-05-10 14:37:17 -0700 | [diff] [blame] | 1 | // 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 Badour | 4a6774b | 2021-02-12 19:46:09 -0800 | [diff] [blame] | 15 | package { |
| 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 |
| 21 | license { |
| 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 Duong | b5c3bec | 2020-07-17 14:14:00 -0700 | [diff] [blame] | 32 | tidy_errors = [ |
| 33 | "-*", |
| 34 | "bugprone-inaccurate-erase", |
Joshua Duong | f4ba8d7 | 2021-01-13 12:18:15 -0800 | [diff] [blame] | 35 | "bugprone-use-after-move", |
Joshua Duong | b5c3bec | 2020-07-17 14:14:00 -0700 | [diff] [blame] | 36 | ] |
| 37 | |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 38 | cc_defaults { |
| 39 | name: "adb_defaults", |
| 40 | |
| 41 | cflags: [ |
| 42 | "-Wall", |
| 43 | "-Wextra", |
| 44 | "-Werror", |
Pirama Arumuga Nainar | 7aa2023 | 2018-06-01 11:31:38 -0700 | [diff] [blame] | 45 | "-Wexit-time-destructors", |
Jiyong Park | f2721bc | 2020-09-18 16:35:06 +0900 | [diff] [blame] | 46 | "-Wno-non-virtual-dtor", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 47 | "-Wno-unused-parameter", |
| 48 | "-Wno-missing-field-initializers", |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 49 | "-Wthread-safety", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 50 | "-Wvla", |
Bowgo Tsai | 35b817b | 2019-03-12 04:25:33 +0800 | [diff] [blame] | 51 | "-DADB_HOST=1", // overridden by adbd_defaults |
Josh Gao | 90228a6 | 2019-04-25 14:04:57 -0700 | [diff] [blame] | 52 | "-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION=1", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 53 | ], |
Josh Gao | 3edf807 | 2018-11-16 15:40:16 -0800 | [diff] [blame] | 54 | cpp_std: "experimental", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 55 | |
Josh Gao | 66766f8 | 2018-02-27 15:49:23 -0800 | [diff] [blame] | 56 | use_version_lib: true, |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 57 | compile_multilib: "first", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 58 | |
| 59 | target: { |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 60 | darwin: { |
| 61 | host_ldlibs: [ |
| 62 | "-lpthread", |
| 63 | "-framework CoreFoundation", |
| 64 | "-framework IOKit", |
| 65 | "-lobjc", |
| 66 | ], |
Joshua Duong | 28fd4e5 | 2021-03-19 12:12:35 -0700 | [diff] [blame] | 67 | cflags: [ |
| 68 | // Required, to use the new IPv6 Sockets options introduced by RFC 3542. |
| 69 | "-D__APPLE_USE_RFC_3542", |
| 70 | ], |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 71 | }, |
| 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 Hughes | c229a72 | 2018-12-03 09:02:18 -0800 | [diff] [blame] | 84 | // Unlike on Linux, -std=gnu++ doesn't set _GNU_SOURCE on Windows. |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 85 | "-D_GNU_SOURCE", |
Josh Gao | 96049b9 | 2018-03-23 13:03:28 -0700 | [diff] [blame] | 86 | |
| 87 | // MinGW hides some things behind _POSIX_SOURCE. |
| 88 | "-D_POSIX_SOURCE", |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 89 | |
Josh Gao | c3b6403 | 2019-04-17 16:57:43 -0700 | [diff] [blame] | 90 | // libusb uses __stdcall on a variadic function, which gets ignored. |
| 91 | "-Wno-ignored-attributes", |
| 92 | |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 93 | // Not supported yet. |
| 94 | "-Wno-thread-safety", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 95 | ], |
Josh Gao | ea7b95a | 2018-03-23 15:37:20 -0700 | [diff] [blame] | 96 | |
| 97 | host_ldlibs: [ |
| 98 | "-lws2_32", |
| 99 | "-lgdi32", |
| 100 | "-luserenv", |
Joshua Duong | f4ba8d7 | 2021-01-13 12:18:15 -0800 | [diff] [blame] | 101 | "-liphlpapi", |
Josh Gao | ea7b95a | 2018-03-23 15:37:20 -0700 | [diff] [blame] | 102 | ], |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 103 | }, |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 104 | }, |
Joshua Duong | b5c3bec | 2020-07-17 14:14:00 -0700 | [diff] [blame] | 105 | |
| 106 | tidy: true, |
| 107 | tidy_checks: tidy_errors, |
| 108 | tidy_checks_as_errors: tidy_errors, |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 109 | } |
Pirama Arumuga Nainar | 7aa2023 | 2018-06-01 11:31:38 -0700 | [diff] [blame] | 110 | |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 111 | cc_defaults { |
| 112 | name: "adbd_defaults", |
| 113 | defaults: ["adb_defaults"], |
| 114 | |
| 115 | cflags: ["-UADB_HOST", "-DADB_HOST=0"], |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 116 | } |
| 117 | |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 118 | cc_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 Kammer | 6836b05 | 2021-01-22 13:39:03 -0500 | [diff] [blame] | 139 | soong_config_module_type_import { |
| 140 | from: "system/apex/Android.bp", |
| 141 | module_types: ["library_linking_strategy_cc_defaults"], |
| 142 | } |
| 143 | |
| 144 | library_linking_strategy_cc_defaults { |
Josh Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 145 | name: "libadbd_binary_dependencies", |
| 146 | static_libs: [ |
| 147 | "libadb_crypto", |
| 148 | "libadb_pairing_connection", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 149 | "libadb_protos", |
Joshua Duong | 93b407c | 2020-07-30 16:34:29 -0700 | [diff] [blame] | 150 | "libadb_sysdeps", |
Josh Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 151 | "libadb_tls_connection", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 152 | "libadbconnection_server", |
Josh Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 153 | "libadbd", |
| 154 | "libadbd_core", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 155 | "libapp_processes_protos_lite", |
Josh Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 156 | "libasyncio", |
| 157 | "libbrotli", |
Josh Gao | 7e3f811 | 2021-04-09 17:32:58 -0700 | [diff] [blame] | 158 | "libcrypto_utils", |
Josh Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 159 | "libcutils_sockets", |
| 160 | "libdiagnose_usb", |
| 161 | "libmdnssd", |
Josh Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 162 | "libprotobuf-cpp-lite", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 163 | "libzstd", |
Josh Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 164 | ], |
| 165 | |
| 166 | shared_libs: [ |
| 167 | "libadbd_auth", |
| 168 | "libadbd_fs", |
Josh Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 169 | "liblog", |
| 170 | "libselinux", |
| 171 | ], |
| 172 | |
Liz Kammer | 6836b05 | 2021-01-22 13:39:03 -0500 | [diff] [blame] | 173 | 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 Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 188 | target: { |
Josh Gao | 7e3f811 | 2021-04-09 17:32:58 -0700 | [diff] [blame] | 189 | android: { |
| 190 | shared_libs: ["libcrypto"], |
| 191 | }, |
Colin Cross | 0229086 | 2022-03-24 15:47:28 -0700 | [diff] [blame] | 192 | host_linux: { |
Josh Gao | 7e3f811 | 2021-04-09 17:32:58 -0700 | [diff] [blame] | 193 | static_libs: ["libcrypto_static"], |
| 194 | }, |
Josh Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 195 | recovery: { |
| 196 | exclude_static_libs: [ |
| 197 | "libadb_pairing_auth", |
| 198 | "libadb_pairing_connection", |
| 199 | ], |
| 200 | }, |
| 201 | }, |
| 202 | } |
| 203 | |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 204 | // libadb |
| 205 | // ========================================================= |
| 206 | // These files are compiled for both the host and the device. |
| 207 | libadb_srcs = [ |
| 208 | "adb.cpp", |
| 209 | "adb_io.cpp", |
| 210 | "adb_listeners.cpp", |
Joshua Duong | f4ba8d7 | 2021-01-13 12:18:15 -0800 | [diff] [blame] | 211 | "adb_mdns.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 212 | "adb_trace.cpp", |
Josh Gao | 7d5762c | 2018-05-24 22:54:50 -0700 | [diff] [blame] | 213 | "adb_unique_fd.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 214 | "adb_utils.cpp", |
Josh Gao | b51193a | 2019-06-28 13:50:37 -0700 | [diff] [blame] | 215 | "fdevent/fdevent.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 216 | "services.cpp", |
| 217 | "sockets.cpp", |
| 218 | "socket_spec.cpp", |
Joshua Duong | 93b407c | 2020-07-30 16:34:29 -0700 | [diff] [blame] | 219 | "sysdeps/env.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 220 | "sysdeps/errno.cpp", |
| 221 | "transport.cpp", |
Josh Gao | 1e41fda | 2018-04-05 16:16:04 -0700 | [diff] [blame] | 222 | "transport_fd.cpp", |
Yurii Zubrytskyi | e5e6b0d | 2019-07-12 14:11:54 -0700 | [diff] [blame] | 223 | "types.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 224 | ] |
| 225 | |
Josh Gao | d7c49ec | 2020-04-20 19:22:05 -0700 | [diff] [blame] | 226 | libadb_darwin_srcs = [ |
| 227 | "fdevent/fdevent_poll.cpp", |
| 228 | ] |
| 229 | |
| 230 | libadb_windows_srcs = [ |
| 231 | "fdevent/fdevent_poll.cpp", |
| 232 | "sysdeps_win32.cpp", |
| 233 | "sysdeps/win32/errno.cpp", |
| 234 | "sysdeps/win32/stat.cpp", |
| 235 | ] |
| 236 | |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 237 | libadb_posix_srcs = [ |
| 238 | "sysdeps_unix.cpp", |
| 239 | "sysdeps/posix/network.cpp", |
| 240 | ] |
| 241 | |
Josh Gao | dd71642 | 2019-07-11 13:47:44 -0700 | [diff] [blame] | 242 | libadb_linux_srcs = [ |
| 243 | "fdevent/fdevent_epoll.cpp", |
| 244 | ] |
| 245 | |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 246 | libadb_test_srcs = [ |
| 247 | "adb_io_test.cpp", |
| 248 | "adb_listeners_test.cpp", |
| 249 | "adb_utils_test.cpp", |
Josh Gao | b51193a | 2019-06-28 13:50:37 -0700 | [diff] [blame] | 250 | "fdevent/fdevent_test.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 251 | "socket_spec_test.cpp", |
| 252 | "socket_test.cpp", |
| 253 | "sysdeps_test.cpp", |
| 254 | "sysdeps/stat_test.cpp", |
| 255 | "transport_test.cpp", |
Josh Gao | 9f155db | 2018-04-03 14:37:11 -0700 | [diff] [blame] | 256 | "types_test.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 257 | ] |
| 258 | |
| 259 | cc_library_host_static { |
| 260 | name: "libadb_host", |
| 261 | defaults: ["adb_defaults"], |
| 262 | |
| 263 | srcs: libadb_srcs + [ |
Joshua Duong | f4ba8d7 | 2021-01-13 12:18:15 -0800 | [diff] [blame] | 264 | "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 Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 269 | "client/auth.cpp", |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 270 | "client/adb_wifi.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 271 | "client/usb_libusb.cpp", |
Josh Gao | a5baef9 | 2020-04-22 17:30:06 -0700 | [diff] [blame] | 272 | "client/transport_local.cpp", |
Joshua Duong | f4ba8d7 | 2021-01-13 12:18:15 -0800 | [diff] [blame] | 273 | "client/mdnsresponder_client.cpp", |
Joshua Duong | f2a0d87 | 2020-04-30 15:45:38 -0700 | [diff] [blame] | 274 | "client/mdns_utils.cpp", |
Joshua Duong | f4ba8d7 | 2021-01-13 12:18:15 -0800 | [diff] [blame] | 275 | "client/transport_mdns.cpp", |
Josh Gao | 6b55e75 | 2020-03-27 18:09:56 -0700 | [diff] [blame] | 276 | "client/transport_usb.cpp", |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 277 | "client/pairing/pairing_client.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 278 | ], |
| 279 | |
Dan Willemsen | 1886189 | 2018-08-29 14:58:02 -0700 | [diff] [blame] | 280 | generated_headers: ["platform_tools_version"], |
| 281 | |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 282 | target: { |
| 283 | linux: { |
Josh Gao | dd71642 | 2019-07-11 13:47:44 -0700 | [diff] [blame] | 284 | srcs: ["client/usb_linux.cpp"] + libadb_linux_srcs, |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 285 | }, |
| 286 | darwin: { |
Josh Gao | d7c49ec | 2020-04-20 19:22:05 -0700 | [diff] [blame] | 287 | srcs: ["client/usb_osx.cpp"] + libadb_darwin_srcs, |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 288 | }, |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 289 | not_windows: { |
| 290 | srcs: libadb_posix_srcs, |
| 291 | }, |
| 292 | windows: { |
| 293 | enabled: true, |
| 294 | srcs: [ |
| 295 | "client/usb_windows.cpp", |
Josh Gao | d7c49ec | 2020-04-20 19:22:05 -0700 | [diff] [blame] | 296 | ] + libadb_windows_srcs, |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 297 | shared_libs: ["AdbWinApi"], |
| 298 | }, |
| 299 | }, |
| 300 | |
| 301 | static_libs: [ |
Joshua Duong | 090c807 | 2019-12-19 16:36:30 -0800 | [diff] [blame] | 302 | "libadb_crypto", |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 303 | "libadb_pairing_connection", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 304 | "libadb_protos", |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 305 | "libadb_tls_connection", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 306 | "libbase", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 307 | "libcrypto", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 308 | "libcrypto_utils", |
Idries Hamadi | 78330f0 | 2018-09-13 18:00:25 +0100 | [diff] [blame] | 309 | "libcutils", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 310 | "libdiagnose_usb", |
| 311 | "liblog", |
| 312 | "libmdnssd", |
Joshua Duong | f4ba8d7 | 2021-01-13 12:18:15 -0800 | [diff] [blame] | 313 | "libopenscreen-discovery", |
| 314 | "libopenscreen-platform-impl", |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 315 | "libprotobuf-cpp-lite", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 316 | "libusb", |
| 317 | "libutils", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 318 | ], |
| 319 | } |
| 320 | |
Joshua Duong | 93b407c | 2020-07-30 16:34:29 -0700 | [diff] [blame] | 321 | cc_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 Park | c55fa5c | 2020-08-25 17:05:41 +0900 | [diff] [blame] | 328 | // This library doesn't use build::GetBuildNumber() |
| 329 | use_version_lib: false, |
Joshua Duong | 93b407c | 2020-07-30 16:34:29 -0700 | [diff] [blame] | 330 | |
| 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 Duong | 93b407c | 2020-07-30 16:34:29 -0700 | [diff] [blame] | 350 | "//bootable/recovery/minadbd:__subpackages__", |
Baligh Uddin | 95e0367 | 2020-10-18 15:09:52 +0000 | [diff] [blame] | 351 | "//packages/modules/adb:__subpackages__", |
Joshua Duong | 93b407c | 2020-07-30 16:34:29 -0700 | [diff] [blame] | 352 | ], |
| 353 | |
| 354 | apex_available: [ |
| 355 | "com.android.adbd", |
| 356 | "test_com.android.adbd", |
| 357 | ], |
| 358 | } |
| 359 | |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 360 | cc_test_host { |
| 361 | name: "adb_test", |
| 362 | defaults: ["adb_defaults"], |
Joshua Duong | f2a0d87 | 2020-04-30 15:45:38 -0700 | [diff] [blame] | 363 | srcs: libadb_test_srcs + [ |
| 364 | "client/mdns_utils_test.cpp", |
| 365 | ], |
| 366 | |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 367 | static_libs: [ |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 368 | "libadb_crypto_static", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 369 | "libadb_host", |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 370 | "libadb_pairing_auth_static", |
| 371 | "libadb_pairing_connection_static", |
| 372 | "libadb_protos_static", |
Joshua Duong | 93b407c | 2020-07-30 16:34:29 -0700 | [diff] [blame] | 373 | "libadb_sysdeps", |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 374 | "libadb_tls_connection_static", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 375 | "libbase", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 376 | "libcrypto", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 377 | "libcrypto_utils", |
| 378 | "libcutils", |
| 379 | "libdiagnose_usb", |
Tom Cherry | 49b96ec | 2020-01-08 13:41:56 -0800 | [diff] [blame] | 380 | "liblog", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 381 | "libmdnssd", |
Joshua Duong | f4ba8d7 | 2021-01-13 12:18:15 -0800 | [diff] [blame] | 382 | "libopenscreen-discovery", |
| 383 | "libopenscreen-platform-impl", |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 384 | "libprotobuf-cpp-lite", |
| 385 | "libssl", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 386 | "libusb", |
| 387 | ], |
Josh Gao | ea7b95a | 2018-03-23 15:37:20 -0700 | [diff] [blame] | 388 | |
| 389 | target: { |
| 390 | windows: { |
| 391 | enabled: true, |
Josh Gao | 3e8bdab | 2019-07-16 15:08:42 -0700 | [diff] [blame] | 392 | ldflags: ["-municode"], |
Josh Gao | ea7b95a | 2018-03-23 15:37:20 -0700 | [diff] [blame] | 393 | shared_libs: ["AdbWinApi"], |
| 394 | }, |
| 395 | }, |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 396 | } |
| 397 | |
| 398 | cc_binary_host { |
| 399 | name: "adb", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 400 | |
Josh Gao | 06af61e | 2020-02-03 23:08:05 -0800 | [diff] [blame] | 401 | stl: "libc++_static", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 402 | 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 Hamadi | 1ecee44 | 2018-01-29 16:30:36 +0000 | [diff] [blame] | 411 | "client/adb_install.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 412 | "client/line_printer.cpp", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 413 | "client/fastdeploy.cpp", |
| 414 | "client/fastdeploycallbacks.cpp", |
Alex Buynytskyy | 175ce29 | 2020-02-13 06:52:04 -0800 | [diff] [blame] | 415 | "client/incremental.cpp", |
| 416 | "client/incremental_server.cpp", |
Songchun Fan | 965301e | 2020-03-13 13:11:43 -0700 | [diff] [blame] | 417 | "client/incremental_utils.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 418 | "shell_service_protocol.cpp", |
| 419 | ], |
| 420 | |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 421 | generated_headers: [ |
| 422 | "bin2c_fastdeployagent", |
| 423 | "bin2c_fastdeployagentscript" |
| 424 | ], |
| 425 | |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 426 | static_libs: [ |
Joshua Duong | 090c807 | 2019-12-19 16:36:30 -0800 | [diff] [blame] | 427 | "libadb_crypto", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 428 | "libadb_host", |
Josh Gao | d8bad8e | 2020-03-26 13:46:08 -0700 | [diff] [blame] | 429 | "libadb_pairing_auth", |
| 430 | "libadb_pairing_connection", |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 431 | "libadb_protos", |
Joshua Duong | 93b407c | 2020-07-30 16:34:29 -0700 | [diff] [blame] | 432 | "libadb_sysdeps", |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 433 | "libadb_tls_connection", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 434 | "libandroidfw", |
Shukang Zhou | 420ad55 | 2020-02-13 17:01:39 -0800 | [diff] [blame] | 435 | "libapp_processes_protos_full", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 436 | "libbase", |
Josh Gao | 2f0f9eb | 2020-03-04 19:34:08 -0800 | [diff] [blame] | 437 | "libbrotli", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 438 | "libcrypto", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 439 | "libcrypto_utils", |
| 440 | "libcutils", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 441 | "libdiagnose_usb", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 442 | "libfastdeploy_host", |
| 443 | "liblog", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 444 | "liblog", |
Alex Buynytskyy | 175ce29 | 2020-02-13 06:52:04 -0800 | [diff] [blame] | 445 | "liblz4", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 446 | "libmdnssd", |
Joshua Duong | f4ba8d7 | 2021-01-13 12:18:15 -0800 | [diff] [blame] | 447 | "libopenscreen-discovery", |
| 448 | "libopenscreen-platform-impl", |
Shukang Zhou | 420ad55 | 2020-02-13 17:01:39 -0800 | [diff] [blame] | 449 | "libprotobuf-cpp-full", |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 450 | "libssl", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 451 | "libusb", |
Idries Hamadi | 78330f0 | 2018-09-13 18:00:25 +0100 | [diff] [blame] | 452 | "libutils", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 453 | "libz", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 454 | "libziparchive", |
Josh Gao | bdebc9b | 2020-05-27 17:52:52 -0700 | [diff] [blame] | 455 | "libzstd", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 456 | ], |
| 457 | |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 458 | // 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 Willemsen | 7024da4 | 2018-11-19 19:11:35 -0800 | [diff] [blame] | 463 | // Archive adb, adb.exe. |
| 464 | dist: { |
| 465 | targets: [ |
| 466 | "dist_files", |
| 467 | "sdk", |
| 468 | "win_sdk", |
| 469 | ], |
| 470 | }, |
| 471 | |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 472 | target: { |
| 473 | darwin: { |
| 474 | cflags: [ |
| 475 | "-Wno-sizeof-pointer-memaccess", |
| 476 | ], |
| 477 | }, |
| 478 | windows: { |
| 479 | enabled: true, |
| 480 | ldflags: ["-municode"], |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 481 | shared_libs: ["AdbWinApi"], |
| 482 | required: [ |
| 483 | "AdbWinUsbApi", |
| 484 | ], |
| 485 | }, |
| 486 | }, |
| 487 | } |
| 488 | |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 489 | // libadbd_core contains the common sources to build libadbd and libadbd_services. |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 490 | cc_library_static { |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 491 | name: "libadbd_core", |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 492 | defaults: ["adbd_defaults", "host_adbd_supported"], |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 493 | recovery_available: true, |
| 494 | |
| 495 | // libminadbd wants both, as it's used to build native tests. |
| 496 | compile_multilib: "both", |
| 497 | |
Josh Gao | dd71642 | 2019-07-11 13:47:44 -0700 | [diff] [blame] | 498 | srcs: libadb_srcs + libadb_linux_srcs + libadb_posix_srcs + [ |
Josh Gao | a5baef9 | 2020-04-22 17:30:06 -0700 | [diff] [blame] | 499 | "daemon/adb_wifi.cpp", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 500 | "daemon/auth.cpp", |
| 501 | "daemon/jdwp_service.cpp", |
Josh Gao | bd77521 | 2020-02-26 16:39:20 -0800 | [diff] [blame] | 502 | "daemon/logging.cpp", |
Josh Gao | a5baef9 | 2020-04-22 17:30:06 -0700 | [diff] [blame] | 503 | "daemon/transport_local.cpp", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 504 | ], |
| 505 | |
Dan Willemsen | 1886189 | 2018-08-29 14:58:02 -0700 | [diff] [blame] | 506 | generated_headers: ["platform_tools_version"], |
| 507 | |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 508 | static_libs: [ |
| 509 | "libdiagnose_usb", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 510 | ], |
| 511 | |
| 512 | shared_libs: [ |
Joshua Duong | 090c807 | 2019-12-19 16:36:30 -0800 | [diff] [blame] | 513 | "libadb_crypto", |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 514 | "libadb_pairing_connection", |
| 515 | "libadb_protos", |
| 516 | "libadb_tls_connection", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 517 | "libadbconnection_server", |
Josh Gao | 7cac88a | 2019-10-22 12:30:39 -0700 | [diff] [blame] | 518 | "libadbd_auth", |
Josh Gao | fa3605a | 2020-03-16 11:30:09 -0700 | [diff] [blame] | 519 | "libapp_processes_protos_lite", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 520 | "libasyncio", |
| 521 | "libbase", |
| 522 | "libcrypto", |
| 523 | "libcrypto_utils", |
Josh Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 524 | "libcutils_sockets", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 525 | "liblog", |
| 526 | ], |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 527 | |
Shukang Zhou | 420ad55 | 2020-02-13 17:01:39 -0800 | [diff] [blame] | 528 | proto: { |
| 529 | type: "lite", |
| 530 | static: true, |
| 531 | export_proto_headers: true, |
| 532 | }, |
| 533 | |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 534 | target: { |
| 535 | android: { |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 536 | srcs: [ |
Josh Gao | 822f674 | 2021-02-03 22:12:41 -0800 | [diff] [blame] | 537 | "daemon/property_monitor.cpp", |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 538 | "daemon/usb.cpp", |
| 539 | "daemon/usb_ffs.cpp", |
Josh Gao | 2dc6196 | 2021-02-03 22:11:45 -0800 | [diff] [blame] | 540 | "daemon/watchdog.cpp", |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 541 | ] |
Joshua Duong | 929364a | 2020-02-26 15:43:44 -0800 | [diff] [blame] | 542 | }, |
| 543 | recovery: { |
| 544 | exclude_shared_libs: [ |
| 545 | "libadb_pairing_auth", |
| 546 | "libadb_pairing_connection", |
Josh Gao | fa3605a | 2020-03-16 11:30:09 -0700 | [diff] [blame] | 547 | "libapp_processes_protos_lite", |
Joshua Duong | 929364a | 2020-02-26 15:43:44 -0800 | [diff] [blame] | 548 | ], |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 549 | } |
| 550 | }, |
Josh Gao | 5fcd7ae | 2020-03-16 12:48:18 -0700 | [diff] [blame] | 551 | |
Jooyung Han | 9864dad | 2021-11-22 10:15:19 +0900 | [diff] [blame] | 552 | min_sdk_version: "30", |
Josh Gao | 5fcd7ae | 2020-03-16 12:48:18 -0700 | [diff] [blame] | 553 | apex_available: [ |
| 554 | "//apex_available:platform", |
| 555 | "com.android.adbd", |
| 556 | ], |
| 557 | visibility: [ |
| 558 | "//bootable/recovery/minadbd", |
Baligh Uddin | 95e0367 | 2020-10-18 15:09:52 +0000 | [diff] [blame] | 559 | "//packages/modules/adb:__subpackages__", |
Josh Gao | 5fcd7ae | 2020-03-16 12:48:18 -0700 | [diff] [blame] | 560 | ], |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 561 | } |
| 562 | |
Josh Gao | 2029a37 | 2020-03-09 15:20:55 -0700 | [diff] [blame] | 563 | cc_library { |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 564 | name: "libadbd_services", |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 565 | defaults: ["adbd_defaults", "host_adbd_supported"], |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 566 | recovery_available: true, |
| 567 | compile_multilib: "both", |
| 568 | |
| 569 | srcs: [ |
| 570 | "daemon/file_sync_service.cpp", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 571 | "daemon/services.cpp", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 572 | "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 Gao | bf5a936 | 2020-01-22 17:58:03 -0800 | [diff] [blame] | 582 | "libadbconnection_server", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 583 | "libadbd_core", |
Josh Gao | 2f0f9eb | 2020-03-04 19:34:08 -0800 | [diff] [blame] | 584 | "libbrotli", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 585 | "libdiagnose_usb", |
Josh Gao | fb386cc | 2020-03-26 22:02:03 -0700 | [diff] [blame] | 586 | "liblz4", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 587 | "libprotobuf-cpp-lite", |
Josh Gao | bdebc9b | 2020-05-27 17:52:52 -0700 | [diff] [blame] | 588 | "libzstd", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 589 | ], |
| 590 | |
| 591 | shared_libs: [ |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 592 | "libadb_crypto", |
| 593 | "libadb_pairing_connection", |
| 594 | "libadb_protos", |
| 595 | "libadb_tls_connection", |
Josh Gao | fa3605a | 2020-03-16 11:30:09 -0700 | [diff] [blame] | 596 | "libapp_processes_protos_lite", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 597 | "libasyncio", |
| 598 | "libbase", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 599 | "libcrypto_utils", |
Josh Gao | 2029a37 | 2020-03-09 15:20:55 -0700 | [diff] [blame] | 600 | "libcutils_sockets", |
Josh Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 601 | |
| 602 | // APEX dependencies. |
| 603 | "libadbd_auth", |
| 604 | "libadbd_fs", |
| 605 | "libcrypto", |
| 606 | "liblog", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 607 | ], |
Alex Buynytskyy | ef34f01 | 2018-12-12 10:48:50 -0800 | [diff] [blame] | 608 | |
| 609 | target: { |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 610 | android: { |
| 611 | srcs: [ |
| 612 | "daemon/abb_service.cpp", |
| 613 | "daemon/framebuffer_service.cpp", |
| 614 | "daemon/mdns.cpp", |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 615 | "daemon/restart_service.cpp", |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 616 | ], |
| 617 | shared_libs: [ |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 618 | "libmdnssd", |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 619 | "libselinux", |
| 620 | ], |
| 621 | }, |
Alex Buynytskyy | ef34f01 | 2018-12-12 10:48:50 -0800 | [diff] [blame] | 622 | recovery: { |
| 623 | exclude_srcs: [ |
| 624 | "daemon/abb_service.cpp", |
| 625 | ], |
Joshua Duong | 929364a | 2020-02-26 15:43:44 -0800 | [diff] [blame] | 626 | exclude_shared_libs: [ |
| 627 | "libadb_pairing_auth", |
| 628 | "libadb_pairing_connection", |
| 629 | ], |
Alex Buynytskyy | ef34f01 | 2018-12-12 10:48:50 -0800 | [diff] [blame] | 630 | }, |
| 631 | }, |
Josh Gao | 5fcd7ae | 2020-03-16 12:48:18 -0700 | [diff] [blame] | 632 | |
Jooyung Han | 9864dad | 2021-11-22 10:15:19 +0900 | [diff] [blame] | 633 | min_sdk_version: "30", |
Josh Gao | 5fcd7ae | 2020-03-16 12:48:18 -0700 | [diff] [blame] | 634 | apex_available: [ |
| 635 | "//apex_available:platform", |
| 636 | "com.android.adbd", |
| 637 | ], |
| 638 | visibility: [ |
Baligh Uddin | 95e0367 | 2020-10-18 15:09:52 +0000 | [diff] [blame] | 639 | "//packages/modules/adb", |
Josh Gao | 5fcd7ae | 2020-03-16 12:48:18 -0700 | [diff] [blame] | 640 | ], |
| 641 | |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 642 | } |
| 643 | |
| 644 | cc_library { |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 645 | name: "libadbd", |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 646 | defaults: ["adbd_defaults", "host_adbd_supported"], |
Jiyong Park | eb59039 | 2018-05-24 14:11:00 +0900 | [diff] [blame] | 647 | recovery_available: true, |
Jooyung Han | 9864dad | 2021-11-22 10:15:19 +0900 | [diff] [blame] | 648 | min_sdk_version: "30", |
Jiyong Park | c6afe4a | 2020-03-23 14:40:50 +0000 | [diff] [blame] | 649 | apex_available: ["com.android.adbd"], |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 650 | |
Josh Gao | bf5a936 | 2020-01-22 17:58:03 -0800 | [diff] [blame] | 651 | // avoid getting duplicate symbol of android::build::getbuildnumber(). |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 652 | use_version_lib: false, |
| 653 | |
| 654 | // libminadbd wants both, as it's used to build native tests. |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 655 | compile_multilib: "both", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 656 | |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 657 | 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 Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 669 | shared_libs: [ |
Josh Gao | fa3605a | 2020-03-16 11:30:09 -0700 | [diff] [blame] | 670 | "libadbconnection_server", |
| 671 | "libapp_processes_protos_lite", |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 672 | "libadb_crypto", |
| 673 | "libadb_pairing_connection", |
| 674 | "libadb_tls_connection", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 675 | "libasyncio", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 676 | "libbase", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 677 | "libcrypto", |
| 678 | "libcrypto_utils", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 679 | "liblog", |
Josh Gao | a4dfc14 | 2020-02-19 13:50:57 -0800 | [diff] [blame] | 680 | "libselinux", |
Josh Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 681 | |
| 682 | // APEX dependencies on the system image. |
| 683 | "libadbd_auth", |
| 684 | "libadbd_fs", |
Josh Gao | a4dfc14 | 2020-02-19 13:50:57 -0800 | [diff] [blame] | 685 | ], |
| 686 | |
Joshua Duong | 929364a | 2020-02-26 15:43:44 -0800 | [diff] [blame] | 687 | target: { |
| 688 | recovery: { |
| 689 | exclude_shared_libs: [ |
| 690 | "libadb_pairing_auth", |
| 691 | "libadb_pairing_connection", |
| 692 | ], |
| 693 | } |
| 694 | }, |
| 695 | |
Jerry Zhang | d4fe8b6 | 2018-05-07 15:14:47 -0700 | [diff] [blame] | 696 | |
Josh Gao | 6b55e75 | 2020-03-27 18:09:56 -0700 | [diff] [blame] | 697 | visibility: [ |
| 698 | "//bootable/recovery/minadbd", |
Baligh Uddin | 95e0367 | 2020-10-18 15:09:52 +0000 | [diff] [blame] | 699 | "//packages/modules/adb", |
Jerry Zhang | d4fe8b6 | 2018-05-07 15:14:47 -0700 | [diff] [blame] | 700 | ], |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 701 | } |
| 702 | |
| 703 | cc_binary { |
| 704 | name: "adbd", |
Josh Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 705 | defaults: ["adbd_defaults", "host_adbd_supported", "libadbd_binary_dependencies"], |
Jiyong Park | eb59039 | 2018-05-24 14:11:00 +0900 | [diff] [blame] | 706 | recovery_available: true, |
Jooyung Han | 9864dad | 2021-11-22 10:15:19 +0900 | [diff] [blame] | 707 | min_sdk_version: "30", |
Jiyong Park | c6afe4a | 2020-03-23 14:40:50 +0000 | [diff] [blame] | 708 | apex_available: ["com.android.adbd"], |
Josh Gao | 3e0540a | 2018-03-06 12:57:27 -0800 | [diff] [blame] | 709 | |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 710 | srcs: [ |
| 711 | "daemon/main.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 712 | ], |
| 713 | |
| 714 | cflags: [ |
| 715 | "-D_GNU_SOURCE", |
| 716 | "-Wno-deprecated-declarations", |
| 717 | ], |
| 718 | |
| 719 | strip: { |
| 720 | keep_symbols: true, |
| 721 | }, |
| 722 | |
Josh Gao | 2bfc85e | 2019-08-15 14:05:12 -0700 | [diff] [blame] | 723 | static_libs: [ |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 724 | "libadb_protos", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 725 | "libadbd", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 726 | "libadbd_services", |
Josh Gao | 2bfc85e | 2019-08-15 14:05:12 -0700 | [diff] [blame] | 727 | "libasyncio", |
Tao Bao | 49042e3 | 2018-07-30 20:45:27 -0700 | [diff] [blame] | 728 | "libcap", |
Josh Gao | fb386cc | 2020-03-26 22:02:03 -0700 | [diff] [blame] | 729 | "liblz4", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 730 | "libminijail", |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 731 | "libssl", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 732 | ], |
Josh Gao | 2bfc85e | 2019-08-15 14:05:12 -0700 | [diff] [blame] | 733 | |
| 734 | shared_libs: [ |
Josh Gao | 090712a | 2020-01-16 12:40:43 -0800 | [diff] [blame] | 735 | "libadbd_auth", |
Josh Gao | 2bfc85e | 2019-08-15 14:05:12 -0700 | [diff] [blame] | 736 | ], |
Josh Gao | 06af61e | 2020-02-03 23:08:05 -0800 | [diff] [blame] | 737 | |
Joshua Duong | 929364a | 2020-02-26 15:43:44 -0800 | [diff] [blame] | 738 | target: { |
| 739 | recovery: { |
| 740 | exclude_shared_libs: [ |
| 741 | "libadb_pairing_auth", |
| 742 | "libadb_pairing_connection", |
| 743 | ], |
| 744 | } |
| 745 | }, |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 746 | } |
| 747 | |
Josh Gao | 06e4593 | 2019-10-23 13:27:17 -0700 | [diff] [blame] | 748 | phony { |
Josh Gao | df43f5e | 2020-06-01 18:59:21 -0700 | [diff] [blame] | 749 | // Interface between adbd in a module and the system. |
| 750 | name: "adbd_system_api", |
Josh Gao | 06e4593 | 2019-10-23 13:27:17 -0700 | [diff] [blame] | 751 | required: [ |
Josh Gao | df43f5e | 2020-06-01 18:59:21 -0700 | [diff] [blame] | 752 | "libadbd_auth", |
| 753 | "libadbd_fs", |
Josh Gao | 06e4593 | 2019-10-23 13:27:17 -0700 | [diff] [blame] | 754 | "abb", |
Josh Gao | 83ce3e2 | 2019-10-22 12:30:36 -0700 | [diff] [blame] | 755 | "reboot", |
Josh Gao | b554f4b | 2019-10-22 12:30:30 -0700 | [diff] [blame] | 756 | "set-verity-state", |
Josh Gao | 06e4593 | 2019-10-23 13:27:17 -0700 | [diff] [blame] | 757 | ] |
| 758 | } |
| 759 | |
| 760 | phony { |
Josh Gao | df43f5e | 2020-06-01 18:59:21 -0700 | [diff] [blame] | 761 | name: "adbd_system_api_recovery", |
Josh Gao | 06e4593 | 2019-10-23 13:27:17 -0700 | [diff] [blame] | 762 | required: [ |
Inseob Kim | fc0410d | 2021-06-30 15:07:24 +0900 | [diff] [blame] | 763 | "libadbd_auth.recovery", |
| 764 | "libadbd_fs.recovery", |
Josh Gao | 83ce3e2 | 2019-10-22 12:30:36 -0700 | [diff] [blame] | 765 | "reboot.recovery", |
Josh Gao | 06e4593 | 2019-10-23 13:27:17 -0700 | [diff] [blame] | 766 | ], |
| 767 | } |
| 768 | |
Alex Buynytskyy | ef34f01 | 2018-12-12 10:48:50 -0800 | [diff] [blame] | 769 | cc_binary { |
| 770 | name: "abb", |
| 771 | |
Josh Gao | 0560feb | 2019-01-22 19:36:15 -0800 | [diff] [blame] | 772 | defaults: ["adbd_defaults"], |
Josh Gao | 06af61e | 2020-02-03 23:08:05 -0800 | [diff] [blame] | 773 | stl: "libc++", |
Alex Buynytskyy | ef34f01 | 2018-12-12 10:48:50 -0800 | [diff] [blame] | 774 | 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 Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 804 | cc_test { |
| 805 | name: "adbd_test", |
Josh Gao | 06af61e | 2020-02-03 23:08:05 -0800 | [diff] [blame] | 806 | |
Josh Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 807 | defaults: ["adbd_defaults", "libadbd_binary_dependencies"], |
Josh Gao | 06af61e | 2020-02-03 23:08:05 -0800 | [diff] [blame] | 808 | |
| 809 | recovery_available: false, |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 810 | srcs: libadb_test_srcs + [ |
Josh Gao | 5607e92 | 2018-07-25 18:15:52 -0700 | [diff] [blame] | 811 | "daemon/services.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 812 | "daemon/shell_service.cpp", |
| 813 | "daemon/shell_service_test.cpp", |
| 814 | "shell_service_protocol.cpp", |
| 815 | "shell_service_protocol_test.cpp", |
Joshua Duong | 77b8ff3 | 2020-04-16 15:58:19 -0700 | [diff] [blame] | 816 | "mdns_test.cpp", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 817 | ], |
| 818 | |
Chen Zhu | 72ccee3 | 2020-05-08 16:45:11 -0700 | [diff] [blame] | 819 | test_config: "adb_test.xml", |
| 820 | |
Josh Gao | 822f674 | 2021-02-03 22:12:41 -0800 | [diff] [blame] | 821 | target: { |
| 822 | android: { |
| 823 | srcs: [ |
| 824 | "daemon/property_monitor_test.cpp", |
| 825 | ], |
| 826 | }, |
| 827 | }, |
| 828 | |
Josh Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 829 | shared_libs: [ |
| 830 | "liblog", |
| 831 | ], |
| 832 | |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 833 | static_libs: [ |
| 834 | "libadbd", |
Josh Gao | 7cac88a | 2019-10-22 12:30:39 -0700 | [diff] [blame] | 835 | "libadbd_auth", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 836 | "libbase", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 837 | "libcrypto_utils", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 838 | "libusb", |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 839 | ], |
easoncylee | 83d1c9d | 2021-04-15 16:28:54 +0800 | [diff] [blame] | 840 | test_suites: ["general-tests", "mts-adbd"], |
Dan Shi | 22e091b | 2019-09-24 09:04:05 -0700 | [diff] [blame] | 841 | require_root: true, |
Josh Gao | 361148b | 2018-01-02 12:01:43 -0800 | [diff] [blame] | 842 | } |
| 843 | |
Julien Desprez | ae94f51 | 2018-08-08 12:08:50 -0700 | [diff] [blame] | 844 | python_test_host { |
Elliott Hughes | 307e767 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 845 | name: "adb_integration_test_adb", |
| 846 | main: "test_adb.py", |
| 847 | srcs: [ |
| 848 | "test_adb.py", |
| 849 | ], |
Julien Desprez | ae94f51 | 2018-08-08 12:08:50 -0700 | [diff] [blame] | 850 | test_config: "adb_integration_test_adb.xml", |
| 851 | test_suites: ["general-tests"], |
Elliott Hughes | 307e767 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 852 | version: { |
| 853 | py2: { |
Josh Gao | b1df00e | 2018-08-07 14:31:17 -0700 | [diff] [blame] | 854 | enabled: false, |
Elliott Hughes | 307e767 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 855 | }, |
| 856 | py3: { |
Josh Gao | b1df00e | 2018-08-07 14:31:17 -0700 | [diff] [blame] | 857 | enabled: true, |
Elliott Hughes | 307e767 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 858 | }, |
GuangHui Liu | 3599439 | 2017-05-10 14:37:17 -0700 | [diff] [blame] | 859 | }, |
Julien Desprez | b099b53 | 2021-03-25 19:26:23 +0000 | [diff] [blame] | 860 | test_options: { |
| 861 | unit_test: false, |
| 862 | }, |
GuangHui Liu | 3599439 | 2017-05-10 14:37:17 -0700 | [diff] [blame] | 863 | } |
| 864 | |
Julien Desprez | cd11d0d | 2018-10-12 13:48:14 -0700 | [diff] [blame] | 865 | python_test_host { |
Elliott Hughes | 307e767 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 866 | name: "adb_integration_test_device", |
| 867 | main: "test_device.py", |
| 868 | srcs: [ |
| 869 | "test_device.py", |
| 870 | ], |
| 871 | libs: [ |
| 872 | "adb_py", |
| 873 | ], |
Julien Desprez | cd11d0d | 2018-10-12 13:48:14 -0700 | [diff] [blame] | 874 | test_config: "adb_integration_test_device.xml", |
| 875 | test_suites: ["general-tests"], |
Elliott Hughes | 307e767 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 876 | version: { |
| 877 | py2: { |
Josh Gao | 4218d85 | 2020-02-06 17:52:38 -0800 | [diff] [blame] | 878 | enabled: false, |
Elliott Hughes | 307e767 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 879 | }, |
| 880 | py3: { |
Josh Gao | 4218d85 | 2020-02-06 17:52:38 -0800 | [diff] [blame] | 881 | enabled: true, |
Elliott Hughes | 307e767 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 882 | }, |
GuangHui Liu | 3599439 | 2017-05-10 14:37:17 -0700 | [diff] [blame] | 883 | }, |
Julien Desprez | b099b53 | 2021-03-25 19:26:23 +0000 | [diff] [blame] | 884 | test_options: { |
| 885 | unit_test: false, |
| 886 | }, |
GuangHui Liu | 3599439 | 2017-05-10 14:37:17 -0700 | [diff] [blame] | 887 | } |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 888 | |
| 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. |
| 891 | java_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 | |
| 898 | genrule { |
| 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 | |
| 905 | cc_library_host_static { |
| 906 | name: "libfastdeploy_host", |
| 907 | defaults: ["adb_defaults"], |
| 908 | srcs: [ |
Alex Buynytskyy | 1af550e | 2019-09-16 12:10:54 -0700 | [diff] [blame] | 909 | "fastdeploy/deploypatchgenerator/apk_archive.cpp", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 910 | "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 Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 918 | "libcrypto", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 919 | "libcrypto_utils", |
| 920 | "libcutils", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 921 | "libdiagnose_usb", |
| 922 | "liblog", |
| 923 | "libmdnssd", |
| 924 | "libusb", |
| 925 | "libutils", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 926 | "libz", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 927 | "libziparchive", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 928 | ], |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 929 | 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 | |
| 941 | cc_test_host { |
| 942 | name: "fastdeploy_test", |
| 943 | defaults: ["adb_defaults"], |
| 944 | srcs: [ |
Alex Buynytskyy | 1af550e | 2019-09-16 12:10:54 -0700 | [diff] [blame] | 945 | "fastdeploy/deploypatchgenerator/apk_archive_test.cpp", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 946 | "fastdeploy/deploypatchgenerator/deploy_patch_generator_test.cpp", |
| 947 | "fastdeploy/deploypatchgenerator/patch_utils_test.cpp", |
| 948 | ], |
| 949 | static_libs: [ |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 950 | "libadb_crypto_static", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 951 | "libadb_host", |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 952 | "libadb_pairing_auth_static", |
| 953 | "libadb_pairing_connection_static", |
| 954 | "libadb_protos_static", |
Joshua Duong | 93b407c | 2020-07-30 16:34:29 -0700 | [diff] [blame] | 955 | "libadb_sysdeps", |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 956 | "libadb_tls_connection_static", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 957 | "libandroidfw", |
| 958 | "libbase", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 959 | "libcrypto", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 960 | "libcrypto_utils", |
| 961 | "libcutils", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 962 | "libdiagnose_usb", |
| 963 | "libfastdeploy_host", |
| 964 | "liblog", |
| 965 | "libmdnssd", |
Joshua Duong | f4ba8d7 | 2021-01-13 12:18:15 -0800 | [diff] [blame] | 966 | "libopenscreen-discovery", |
| 967 | "libopenscreen-platform-impl", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 968 | "libprotobuf-cpp-lite", |
Joshua Duong | 290ccb5 | 2019-11-20 14:18:43 -0800 | [diff] [blame] | 969 | "libssl", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 970 | "libusb", |
| 971 | "libutils", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 972 | "libz", |
Oriol Prieto Gasco | 532e570 | 2021-08-20 14:36:42 +0000 | [diff] [blame] | 973 | "libziparchive", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 974 | ], |
| 975 | target: { |
| 976 | windows: { |
| 977 | enabled: true, |
| 978 | shared_libs: ["AdbWinApi"], |
| 979 | }, |
| 980 | }, |
| 981 | data: [ |
Alex Buynytskyy | 1af550e | 2019-09-16 12:10:54 -0700 | [diff] [blame] | 982 | "fastdeploy/testdata/rotating_cube-metadata-release.data", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 983 | "fastdeploy/testdata/rotating_cube-release.apk", |
Alex Buynytskyy | 1af550e | 2019-09-16 12:10:54 -0700 | [diff] [blame] | 984 | "fastdeploy/testdata/sample.apk", |
| 985 | "fastdeploy/testdata/sample.cd", |
Joshua Gilpatrick | 0d38411 | 2019-07-19 09:42:12 -0700 | [diff] [blame] | 986 | ], |
| 987 | } |