1// libadbconnection 2// ========================================================= 3// libadbconnection_client/server implement the socket handling for jdwp 4// forwarding and the track-jdwp service. 5package { 6 // See: http://go/android-license-faq 7 // A large-scale-change added 'default_applicable_licenses' to import 8 // all of the 'license_kinds' from "packages_modules_adb_license" 9 // to get the below license kinds: 10 // SPDX-license-identifier-Apache-2.0 11 default_applicable_licenses: ["packages_modules_adb_license"], 12} 13 14cc_library { 15 name: "libadbconnection_server", 16 srcs: ["adbconnection_server.cpp"], 17 18 export_include_dirs: ["include"], 19 20 stl: "libc++_static", 21 shared_libs: ["liblog"], 22 static_libs: ["libbase"], 23 24 defaults: ["adbd_defaults", "host_adbd_supported"], 25 26 // Avoid getting duplicate symbol of android::build::GetBuildNumber(). 27 use_version_lib: false, 28 29 recovery_available: true, 30 min_sdk_version: "30", 31 apex_available: [ 32 "com.android.adbd", 33 // TODO(b/151398197) remove the below 34 "//apex_available:platform", 35 ], 36 compile_multilib: "both", 37} 38 39cc_library { 40 name: "libadbconnection_client", 41 srcs: ["adbconnection_client.cpp"], 42 43 export_include_dirs: ["include"], 44 45 stl: "libc++_static", 46 shared_libs: ["liblog"], 47 static_libs: ["libbase"], 48 49 defaults: ["adbd_defaults"], 50 visibility: [ 51 "//art:__subpackages__", 52 "//packages/modules/adb/apex:__subpackages__", 53 ], 54 min_sdk_version: "30", 55 apex_available: [ 56 "com.android.adbd", 57 "test_com.android.adbd", 58 ], 59 60 // libadbconnection_client doesn't need an embedded build number. 61 use_version_lib: false, 62 63 target: { 64 linux: { 65 version_script: "libadbconnection_client.map.txt", 66 }, 67 darwin: { enabled: false }, 68 }, 69 stubs: { 70 symbol_file: "libadbconnection_client.map.txt", 71 versions: ["1"], 72 }, 73 74 host_supported: true, 75 compile_multilib: "both", 76} 77