platform_system_core/libnativebridge/Android.bp
dimitry 8c934c72a0 Fix sdk-mac build.
Do not use version_script for darwin

Bug: http://b/122886514
Test: make
Change-Id: I8a860e67b0768cce387de1257147e8989f711f06
2019-01-15 17:39:32 +01:00

45 lines
791 B
Text

cc_library_headers {
name: "libnativebridge-dummy-headers",
host_supported: true,
export_include_dirs: ["include"],
}
cc_library {
name: "libnativebridge",
host_supported: true,
srcs: ["native_bridge.cc"],
header_libs: [
"libbase_headers",
],
shared_libs: [
"liblog",
],
target: {
android: {
version_script: "libnativebridge.map.txt",
},
linux: {
version_script: "libnativebridge.map.txt",
},
},
stubs: {
symbol_file: "libnativebridge.map.txt",
versions: ["1"],
},
export_include_dirs: ["include"],
cflags: [
"-Werror",
"-Wall",
],
cppflags: [
"-fvisibility=protected",
],
}
subdirs = ["tests"]