1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
|
// libadbconnection
// =========================================================
// libadbconnection_client/server implement the socket handling for jdwp
// forwarding and the track-jdwp service.
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "packages_modules_adb_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["packages_modules_adb_license"],
}
cc_library {
name: "libadbconnection_server",
srcs: [
"adbconnection_server.cpp",
"common.cpp",
],
export_include_dirs: ["include"],
stl: "libc++_static",
shared_libs: ["liblog"],
static_libs: [
"libbase",
"libapp_processes_protos_lite",
"libprotobuf-cpp-lite",
],
defaults: [
"adbd_defaults",
"host_adbd_supported",
],
// Avoid getting duplicate symbol of android::build::GetBuildNumber().
use_version_lib: false,
recovery_available: true,
min_sdk_version: "30",
apex_available: [
"com.android.adbd",
// TODO(b/151398197) remove the below
"//apex_available:platform",
],
compile_multilib: "both",
}
cc_library {
name: "libadbconnection_client",
srcs: [
"adbconnection_client.cpp",
"common.cpp",
],
export_include_dirs: ["include"],
stl: "libc++_static",
shared_libs: ["liblog"],
static_libs: [
"libbase",
"libapp_processes_protos_lite",
"libprotobuf-cpp-lite",
],
defaults: ["adbd_defaults"],
visibility: [
"//art:__subpackages__",
"//packages/modules/adb/apex:__subpackages__",
],
min_sdk_version: "30",
apex_available: [
"com.android.adbd",
"test_com.android.adbd",
],
// libadbconnection_client doesn't need an embedded build number.
use_version_lib: false,
target: {
linux: {
version_script: "libadbconnection_client.map.txt",
},
darwin: {
enabled: false,
},
},
stubs: {
symbol_file: "libadbconnection_client.map.txt",
versions: ["1"],
},
host_supported: true,
compile_multilib: "both",
}
cc_test_host {
name: "libadbconnection_test",
srcs: ["tests.cc"],
static_libs: [
"libandroidfw",
"libbase",
"libadbconnection_client",
"libadbconnection_server",
"libapp_processes_protos_lite",
"libprotobuf-cpp-lite",
"liblog",
],
target: {
windows: {
enabled: false,
},
darwin: {
enabled: false,
},
}
}
|