You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
116 lines
2.2 KiB
116 lines
2.2 KiB
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
cc_library_static {
|
|
name: "libRSDispatch",
|
|
native_bridge_supported: true,
|
|
vendor_available: true,
|
|
|
|
srcs: ["rsDispatch.cpp"],
|
|
|
|
include_dirs: [
|
|
"frameworks/rs",
|
|
],
|
|
header_libs: [
|
|
"jni_headers",
|
|
],
|
|
|
|
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-deprecated-declarations",
|
|
"-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: [
|
|
"jni_headers",
|
|
"rs-headers"
|
|
],
|
|
export_header_lib_headers: [
|
|
"jni_headers",
|
|
"rs-headers"
|
|
],
|
|
export_include_dirs: ["."],
|
|
|
|
shared_libs: [
|
|
"libdl",
|
|
"liblog",
|
|
],
|
|
}
|
|
|
|
cc_library {
|
|
name: "libRScpp",
|
|
defaults: ["libRScpp-defaults"],
|
|
|
|
header_libs: [
|
|
"libarect_headers",
|
|
"libbase_headers",
|
|
"libnativebase_headers",
|
|
"libnativewindow_headers",
|
|
],
|
|
|
|
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",
|
|
}
|