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