2019-01-28 15:08:55 +00:00
|
|
|
cc_defaults {
|
|
|
|
name: "libnativebridge-defaults",
|
|
|
|
cflags: [
|
|
|
|
"-Werror",
|
|
|
|
"-Wall",
|
|
|
|
],
|
|
|
|
cppflags: [
|
|
|
|
"-fvisibility=protected",
|
|
|
|
],
|
|
|
|
header_libs: ["libnativebridge-headers"],
|
|
|
|
export_header_lib_headers: ["libnativebridge-headers"],
|
|
|
|
}
|
|
|
|
|
2017-06-30 19:46:57 +00:00
|
|
|
cc_library_headers {
|
2019-01-28 15:08:55 +00:00
|
|
|
name: "libnativebridge-headers",
|
2017-06-30 19:46:57 +00:00
|
|
|
|
|
|
|
host_supported: true,
|
2018-02-17 01:58:14 +00:00
|
|
|
export_include_dirs: ["include"],
|
2017-06-30 19:46:57 +00:00
|
|
|
}
|
|
|
|
|
2016-07-13 05:10:56 +00:00
|
|
|
cc_library {
|
|
|
|
name: "libnativebridge",
|
2019-01-28 15:08:55 +00:00
|
|
|
defaults: ["libnativebridge-defaults"],
|
2016-07-13 05:10:56 +00:00
|
|
|
|
|
|
|
host_supported: true,
|
|
|
|
srcs: ["native_bridge.cc"],
|
2018-10-22 00:34:56 +00:00
|
|
|
header_libs: [
|
|
|
|
"libbase_headers",
|
|
|
|
],
|
2018-02-17 01:58:14 +00:00
|
|
|
shared_libs: [
|
|
|
|
"liblog",
|
|
|
|
],
|
2019-01-28 15:08:55 +00:00
|
|
|
// TODO(jiyong): remove this line after aosp/885921 lands
|
|
|
|
export_include_dirs: ["include"],
|
2016-07-13 05:10:56 +00:00
|
|
|
|
2019-01-15 16:38:39 +00:00
|
|
|
target: {
|
|
|
|
android: {
|
|
|
|
version_script: "libnativebridge.map.txt",
|
|
|
|
},
|
|
|
|
linux: {
|
|
|
|
version_script: "libnativebridge.map.txt",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2019-01-10 16:27:54 +00:00
|
|
|
stubs: {
|
|
|
|
symbol_file: "libnativebridge.map.txt",
|
|
|
|
versions: ["1"],
|
|
|
|
},
|
2019-01-28 15:08:55 +00:00
|
|
|
}
|
2019-01-10 16:27:54 +00:00
|
|
|
|
2019-01-28 15:08:55 +00:00
|
|
|
// TODO(b/124250621): eliminate the need for this library
|
|
|
|
cc_library {
|
|
|
|
name: "libnativebridge_lazy",
|
|
|
|
defaults: ["libnativebridge-defaults"],
|
2017-06-30 19:46:57 +00:00
|
|
|
|
2019-01-28 15:08:55 +00:00
|
|
|
host_supported: false,
|
|
|
|
srcs: ["native_bridge_lazy.cc"],
|
|
|
|
required: ["libnativebridge"],
|
2016-07-13 05:10:56 +00:00
|
|
|
}
|
2017-05-08 22:29:10 +00:00
|
|
|
|
2017-06-30 19:46:57 +00:00
|
|
|
subdirs = ["tests"]
|