blob: 2dd92d117eb4f7210157f3db22e5ba7750512233 [file] [log] [blame]
cc_defaults {
name: "libnativebridge-defaults",
cflags: [
"-Werror",
"-Wall",
],
cppflags: [
"-fvisibility=protected",
],
header_libs: ["libnativebridge-headers"],
export_header_lib_headers: ["libnativebridge-headers"],
}
cc_library_headers {
name: "libnativebridge-headers",
host_supported: true,
export_include_dirs: ["include"],
}
cc_library {
name: "libnativebridge",
defaults: ["libnativebridge-defaults"],
visibility: [
"//art:__subpackages__",
// TODO(b/133140750): Clean this up.
"//frameworks/base/cmds/app_process",
"//frameworks/base/native/webview/loader/libwebviewchromium_loader",
],
host_supported: true,
srcs: ["native_bridge.cc"],
header_libs: [
"libbase_headers",
],
shared_libs: [
"liblog",
],
// TODO(jiyong): remove this line after aosp/885921 lands
export_include_dirs: ["include"],
target: {
android: {
version_script: "libnativebridge.map.txt",
},
linux: {
version_script: "libnativebridge.map.txt",
},
},
stubs: {
symbol_file: "libnativebridge.map.txt",
versions: ["1"],
},
}
// TODO(b/124250621): eliminate the need for this library
cc_library {
name: "libnativebridge_lazy",
defaults: ["libnativebridge-defaults"],
visibility: [
"//art/libnativebridge/tests",
"//frameworks/base/core/jni",
"//frameworks/native/opengl/libs",
"//frameworks/native/vulkan/libvulkan",
],
host_supported: false,
srcs: ["native_bridge_lazy.cc"],
required: ["libnativebridge"],
}
subdirs = ["tests"]