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