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