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 apex_available: [ 31 "com.android.adbd", 32 // TODO(b/151398197) remove the below 33 "//apex_available:platform", 34 ], 35 compile_multilib: "both", 36} 37 38cc_library { 39 name: "libadbconnection_client", 40 srcs: ["adbconnection_client.cpp"], 41 42 export_include_dirs: ["include"], 43 44 stl: "libc++_static", 45 shared_libs: ["liblog"], 46 static_libs: ["libbase"], 47 48 defaults: ["adbd_defaults"], 49 visibility: [ 50 "//art:__subpackages__", 51 "//packages/modules/adb/apex:__subpackages__", 52 ], 53 apex_available: [ 54 "com.android.adbd", 55 "test_com.android.adbd", 56 ], 57 58 // libadbconnection_client doesn't need an embedded build number. 59 use_version_lib: false, 60 61 target: { 62 linux: { 63 version_script: "libadbconnection_client.map.txt", 64 }, 65 darwin: { enabled: false }, 66 }, 67 stubs: { 68 symbol_file: "libadbconnection_client.map.txt", 69 versions: ["1"], 70 }, 71 72 host_supported: true, 73 compile_multilib: "both", 74} 75