• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cc_library_static {
2    name: "libRSDispatch",
3    native_bridge_supported: true,
4    vendor_available: true,
5
6    srcs: ["rsDispatch.cpp"],
7
8    include_dirs: [
9        "frameworks/rs",
10    ],
11    header_libs: [
12        "jni_headers",
13    ],
14
15    cflags: [
16        "-Wall",
17        "-Werror",
18        "-Wno-unused-parameter",
19        "-DRS_COMPATIBILITY_LIB",
20    ],
21
22
23    sdk_version: "9",
24    shared_libs: ["libdl", "liblog"],
25    // Used in librsjni, which is built as NDK code => no ASan.
26    sanitize: {
27        never: true,
28    },
29    stl: "none",
30}
31
32cc_defaults {
33    name: "libRScpp-defaults",
34    defaults: ["rs-version"],
35
36    srcs: [
37        "RenderScript.cpp",
38        "BaseObj.cpp",
39        "Element.cpp",
40        "Type.cpp",
41        "Allocation.cpp",
42        "Script.cpp",
43        "ScriptC.cpp",
44        "ScriptIntrinsics.cpp",
45        "ScriptIntrinsicBLAS.cpp",
46        "Sampler.cpp",
47
48        // TODO: make this not a symlink
49        "rsCppUtils.cpp",
50    ],
51
52    cflags: [
53        "-Werror",
54        "-Wall",
55        "-Wextra",
56        "-Wno-unused-parameter",
57        "-Wno-unused-variable",
58    ],
59
60    // We need to export not just rs/cpp but also rs.  This is because
61    // RenderScript.h includes rsCppStructs.h, which includes rs/rsDefines.h.
62    header_libs: ["rs-headers"],
63    export_header_lib_headers: ["rs-headers"],
64    export_include_dirs: ["."],
65
66    shared_libs: [
67        "libdl",
68        "liblog",
69    ],
70}
71
72cc_library {
73    name: "libRScpp",
74    defaults: ["libRScpp-defaults"],
75
76    header_libs: [
77        "libarect_headers",
78        "libbase_headers",
79        "libnativebase_headers",
80        "libnativewindow_headers",
81    ],
82
83    shared_libs: [
84        "libgui",
85        "libutils",
86    ],
87
88    static_libs: ["libRSDispatch"],
89}
90
91cc_library_static {
92    name: "libRScpp_static",
93    defaults: ["libRScpp-defaults"],
94
95    cflags: ["-DRS_COMPATIBILITY_LIB"],
96
97    sdk_version: "9",
98    whole_static_libs: ["libRSDispatch"],
99
100    ldflags: [
101        "-Wl,--exclude-libs,libc++_static.a",
102    ],
103    stl: "c++_static",
104}
105