blob: 31cb3f885f5a9007bf1ae392f59bfee0a13e5d4a [file] [log] [blame]
cc_library_static {
name: "libRSDispatch",
vendor_available: true,
srcs: ["rsDispatch.cpp"],
include_dirs: [
"frameworks/rs",
"libnativehelper/include_jni",
],
cflags: [
"-Wall",
"-Werror",
"-Wno-unused-parameter",
"-DRS_COMPATIBILITY_LIB",
],
sdk_version: "9",
shared_libs: ["libdl", "liblog"],
// Used in librsjni, which is built as NDK code => no ASan.
sanitize: {
never: true,
},
stl: "none",
}
cc_defaults {
name: "libRScpp-defaults",
defaults: ["rs-version"],
srcs: [
"RenderScript.cpp",
"BaseObj.cpp",
"Element.cpp",
"Type.cpp",
"Allocation.cpp",
"Script.cpp",
"ScriptC.cpp",
"ScriptIntrinsics.cpp",
"ScriptIntrinsicBLAS.cpp",
"Sampler.cpp",
// TODO: make this not a symlink
"rsCppUtils.cpp",
],
cflags: [
"-Werror",
"-Wall",
"-Wextra",
"-Wno-unused-parameter",
"-Wno-unused-variable",
],
// We need to export not just rs/cpp but also rs. This is because
// RenderScript.h includes rsCppStructs.h, which includes rs/rsDefines.h.
header_libs: ["rs-headers"],
export_header_lib_headers: ["rs-headers"],
export_include_dirs: ["."],
shared_libs: [
"libdl",
"liblog",
"libz",
],
}
cc_library {
name: "libRScpp",
defaults: ["libRScpp-defaults"],
shared_libs: [
"libgui",
"libutils",
],
static_libs: ["libRSDispatch"],
}
cc_library_static {
name: "libRScpp_static",
defaults: ["libRScpp-defaults"],
cflags: ["-DRS_COMPATIBILITY_LIB"],
sdk_version: "9",
whole_static_libs: ["libRSDispatch"],
ldflags: [
"-Wl,--exclude-libs,libc++_static.a",
],
stl: "c++_static",
}