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