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