android_system_core/adb/libs/adbconnection/Android.bp
Elliott Hughes 729f58e0b7 macOS build fix: don't build libadbconnection.
Test: builds on mac
Change-Id: I91e3bf6b06f31edf542f8f8d6529787b0bf3a6ed
2020-04-14 16:33:16 -07:00

65 lines
1.6 KiB
Text

// libadbconnection
// =========================================================
// libadbconnection_client/server implement the socket handling for jdwp
// forwarding and the track-jdwp service.
cc_library {
name: "libadbconnection_server",
srcs: ["adbconnection_server.cpp"],
export_include_dirs: ["include"],
stl: "libc++_static",
shared_libs: ["liblog"],
static_libs: ["libbase"],
defaults: ["adbd_defaults", "host_adbd_supported"],
// Avoid getting duplicate symbol of android::build::GetBuildNumber().
use_version_lib: false,
recovery_available: true,
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"],
export_include_dirs: ["include"],
stl: "libc++_static",
shared_libs: ["liblog"],
static_libs: ["libbase"],
defaults: ["adbd_defaults"],
visibility: [
"//art:__subpackages__",
"//system/core/adb/apex:__subpackages__",
],
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",
}