1package {
2    default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5cc_defaults {
6    name: "gallery2_jni_defaults",
7    product_specific: true,
8
9    cflags: [
10        "-Wall",
11        "-Wextra",
12        "-Werror",
13
14        // to fix implicit conversion from 'int' to 'char', (255 to -1, 128 to -128)
15        "-Wno-error=constant-conversion",
16
17        "-Wno-unused-parameter",
18    ],
19    header_libs: ["jni_headers"],
20    sdk_version: "9",
21    shared_libs: ["liblog"],
22}
23
24cc_library_shared {
25    name: "libjni_eglfence",
26    defaults: ["gallery2_jni_defaults"],
27
28    cflags: ["-DEGL_EGLEXT_PROTOTYPES"],
29    shared_libs: ["libEGL"],
30    srcs: ["jni_egl_fence.cpp"],
31}
32
33// Filtershow
34cc_library_shared {
35    name: "libjni_filtershow_filters",
36    defaults: ["gallery2_jni_defaults"],
37
38    srcs: [
39        "filters/gradient.c",
40        "filters/saturated.c",
41        "filters/exposure.c",
42        "filters/edge.c",
43        "filters/contrast.c",
44        "filters/hue.c",
45        "filters/shadows.c",
46        "filters/highlight.c",
47        "filters/hsv.c",
48        "filters/vibrance.c",
49        "filters/geometry.c",
50        "filters/negative.c",
51        "filters/redEyeMath.c",
52        "filters/fx.c",
53        "filters/wbalance.c",
54        "filters/redeye.c",
55        "filters/bwfilter.c",
56        "filters/tinyplanet.cc",
57        "filters/kmeans.cc",
58    ],
59
60    cflags: [
61        "-ffast-math",
62        "-O3",
63        "-funroll-loops",
64    ],
65    shared_libs: ["libjnigraphics"],
66    arch: {
67        arm: {
68            instruction_set: "arm",
69        },
70    },
71}
72