blob: 433c79fc9e5ec9e5bee63e85b0412be6c1580063 [file] [log] [blame]
Bob Badour8aedf252021-02-12 21:37:48 -08001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Dan Willemsen500d85e2016-10-05 14:17:13 -07005cc_library_static {
6 name: "libRSDispatch",
Victor Khimenkof0890d02020-08-21 00:38:57 +02007 native_bridge_supported: true,
Jiyong Park316ffa52017-08-10 20:37:20 +09008 vendor_available: true,
Dan Willemsen500d85e2016-10-05 14:17:13 -07009
10 srcs: ["rsDispatch.cpp"],
11
Jiyong Park316ffa52017-08-10 20:37:20 +090012 include_dirs: [
13 "frameworks/rs",
Paul Duffinfef862b2019-07-16 14:24:07 +010014 ],
15 header_libs: [
16 "jni_headers",
Jiyong Park316ffa52017-08-10 20:37:20 +090017 ],
Dan Willemsen500d85e2016-10-05 14:17:13 -070018
19 cflags: [
Chih-Hung Hsieh24ab1762017-09-29 14:54:13 -070020 "-Wall",
21 "-Werror",
Dan Willemsen500d85e2016-10-05 14:17:13 -070022 "-Wno-unused-parameter",
Jiyong Park48446a82017-07-10 13:14:41 +090023 "-DRS_COMPATIBILITY_LIB",
Dan Willemsen500d85e2016-10-05 14:17:13 -070024 ],
25
Jiyong Park316ffa52017-08-10 20:37:20 +090026
Dan Willemsen500d85e2016-10-05 14:17:13 -070027 sdk_version: "9",
Jiyong Park316ffa52017-08-10 20:37:20 +090028 shared_libs: ["libdl", "liblog"],
Dan Willemsen500d85e2016-10-05 14:17:13 -070029 // Used in librsjni, which is built as NDK code => no ASan.
30 sanitize: {
31 never: true,
32 },
33 stl: "none",
34}
Colin Cross00b14112017-04-19 15:23:41 -070035
36cc_defaults {
37 name: "libRScpp-defaults",
38 defaults: ["rs-version"],
39
40 srcs: [
41 "RenderScript.cpp",
42 "BaseObj.cpp",
43 "Element.cpp",
44 "Type.cpp",
45 "Allocation.cpp",
46 "Script.cpp",
47 "ScriptC.cpp",
48 "ScriptIntrinsics.cpp",
49 "ScriptIntrinsicBLAS.cpp",
50 "Sampler.cpp",
51
52 // TODO: make this not a symlink
53 "rsCppUtils.cpp",
54 ],
55
56 cflags: [
57 "-Werror",
58 "-Wall",
59 "-Wextra",
Xusong Wangc4ba0282020-11-10 10:09:37 -080060 "-Wno-deprecated-declarations",
Colin Cross00b14112017-04-19 15:23:41 -070061 "-Wno-unused-parameter",
62 "-Wno-unused-variable",
63 ],
64
65 // We need to export not just rs/cpp but also rs. This is because
66 // RenderScript.h includes rsCppStructs.h, which includes rs/rsDefines.h.
Orion Hodson0f1eaf32020-04-11 21:01:58 +010067 header_libs: [
68 "jni_headers",
69 "rs-headers"
70 ],
71 export_header_lib_headers: [
72 "jni_headers",
73 "rs-headers"
74 ],
Colin Cross00b14112017-04-19 15:23:41 -070075 export_include_dirs: ["."],
76
77 shared_libs: [
78 "libdl",
79 "liblog",
Colin Cross00b14112017-04-19 15:23:41 -070080 ],
81}
82
83cc_library {
84 name: "libRScpp",
85 defaults: ["libRScpp-defaults"],
86
Marco Nelissen0ba81af2019-10-28 15:56:03 -070087 header_libs: [
88 "libarect_headers",
89 "libbase_headers",
Marco Nelissen0ba81af2019-10-28 15:56:03 -070090 "libnativebase_headers",
91 "libnativewindow_headers",
92 ],
93
Colin Cross00b14112017-04-19 15:23:41 -070094 shared_libs: [
Marissa Wall8b0b3c32019-12-03 14:56:38 -080095 "libgui",
Colin Cross00b14112017-04-19 15:23:41 -070096 "libutils",
97 ],
98
99 static_libs: ["libRSDispatch"],
100}
101
102cc_library_static {
103 name: "libRScpp_static",
104 defaults: ["libRScpp-defaults"],
105
106 cflags: ["-DRS_COMPATIBILITY_LIB"],
107
108 sdk_version: "9",
109 whole_static_libs: ["libRSDispatch"],
110
111 ldflags: [
112 "-Wl,--exclude-libs,libc++_static.a",
113 ],
114 stl: "c++_static",
115}