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