blob: c3b44ed764afc4a5865e773abc07750edd4683ad [file] [log] [blame]
Dan Willemsen500d85e2016-10-05 14:17:13 -07001cc_library_static {
2 name: "libRSDispatch",
3
4 srcs: ["rsDispatch.cpp"],
5
6 include_dirs: ["frameworks/rs"],
7
8 cflags: [
Chih-Hung Hsieh24ab1762017-09-29 14:54:13 -07009 "-Wall",
10 "-Werror",
Dan Willemsen500d85e2016-10-05 14:17:13 -070011 "-Wno-unused-parameter",
12 "-std=c++11",
Jiyong Park48446a82017-07-10 13:14:41 +090013 "-DRS_COMPATIBILITY_LIB",
Dan Willemsen500d85e2016-10-05 14:17:13 -070014 ],
15
16 sdk_version: "9",
17 shared_libs: ["libdl"],
18 // Used in librsjni, which is built as NDK code => no ASan.
19 sanitize: {
20 never: true,
21 },
22 stl: "none",
23}
Colin Cross00b14112017-04-19 15:23:41 -070024
25cc_defaults {
26 name: "libRScpp-defaults",
27 defaults: ["rs-version"],
28
29 srcs: [
30 "RenderScript.cpp",
31 "BaseObj.cpp",
32 "Element.cpp",
33 "Type.cpp",
34 "Allocation.cpp",
35 "Script.cpp",
36 "ScriptC.cpp",
37 "ScriptIntrinsics.cpp",
38 "ScriptIntrinsicBLAS.cpp",
39 "Sampler.cpp",
40
41 // TODO: make this not a symlink
42 "rsCppUtils.cpp",
43 ],
44
45 cflags: [
46 "-Werror",
47 "-Wall",
48 "-Wextra",
49 "-Wno-unused-parameter",
50 "-Wno-unused-variable",
51 ],
52
53 // We need to export not just rs/cpp but also rs. This is because
54 // RenderScript.h includes rsCppStructs.h, which includes rs/rsDefines.h.
55 header_libs: ["rs-headers"],
56 export_header_lib_headers: ["rs-headers"],
57 export_include_dirs: ["."],
58
59 shared_libs: [
60 "libdl",
61 "liblog",
62 "libz",
63 ],
64}
65
66cc_library {
67 name: "libRScpp",
68 defaults: ["libRScpp-defaults"],
69
70 shared_libs: [
71 "libgui",
72 "libutils",
73 ],
74
75 static_libs: ["libRSDispatch"],
76}
77
78cc_library_static {
79 name: "libRScpp_static",
80 defaults: ["libRScpp-defaults"],
81
82 cflags: ["-DRS_COMPATIBILITY_LIB"],
83
84 sdk_version: "9",
85 whole_static_libs: ["libRSDispatch"],
86
87 ldflags: [
88 "-Wl,--exclude-libs,libc++_static.a",
89 ],
90 stl: "c++_static",
91}