1cc_library_shared {
2    name: "libRSSupportIO",
3    defaults: ["rs_support_defaults"],
4
5    sdk_version: "14",
6
7    srcs: [
8        "android_rscompat_usage_io.cpp",
9        "android_rscompat_usage_io_driver.cpp",
10    ],
11
12    include_dirs: [
13        "frameworks/rs",
14        "frameworks/rs/cpp",
15        "frameworks/rs/driver",
16    ],
17
18    cflags: [
19        "-Werror",
20        "-Wall",
21        "-Wextra",
22        "-Wno-unused-parameter",
23        "-DRS_COMPATIBILITY_LIB",
24    ],
25
26    header_libs: ["jni_headers"],
27
28    shared_libs: [
29        "libandroid",
30        "libdl",
31    ],
32
33    ldflags: [
34        "-Wl,--exclude-libs,libc++_static.a",
35        "-Wl,--hash-style=sysv",
36    ],
37    stl: "c++_static",
38}
39
40cc_library_shared {
41    name: "librsjni",
42    defaults: ["rs_support_defaults"],
43
44    sdk_version: "9",
45
46    srcs: ["android_renderscript_RenderScript.cpp"],
47
48    header_libs: ["jni_headers"],
49    export_header_lib_headers: ["jni_headers"],
50
51    shared_libs: [
52        "libdl",
53        "libjnigraphics",
54        "liblog",
55    ],
56
57    static_libs: ["libRSDispatch"],
58
59    include_dirs: [
60        "frameworks/rs",
61        "frameworks/rs/cpp",
62    ],
63
64    cflags: [
65        "-Werror",
66        "-Wall",
67        "-Wextra",
68        "-Wno-unused-parameter",
69        "-DRS_COMPATIBILITY_LIB",
70    ],
71
72    required: ["libRSSupport"],
73
74    ldflags: [
75        "-Wl,--exclude-libs,libc++_static.a",
76        "-Wl,--hash-style=sysv",
77    ],
78
79    stl: "c++_static",
80}
81