| package { |
| default_applicable_licenses: ["Android-Apache-2.0"], |
| } |
| |
| cc_defaults { |
| name: "gallery2_jni_defaults", |
| system_ext_specific: true, |
| |
| cflags: [ |
| "-Wall", |
| "-Wextra", |
| "-Werror", |
| ], |
| header_libs: ["jni_headers"], |
| sdk_version: "9", |
| shared_libs: ["liblog"], |
| } |
| |
| cc_library_shared { |
| name: "libjni_gallery_eglfence", |
| defaults: ["gallery2_jni_defaults"], |
| |
| cflags: ["-DEGL_EGLEXT_PROTOTYPES"], |
| shared_libs: ["libEGL"], |
| srcs: ["jni_egl_fence.cpp"], |
| } |
| |
| // Filtershow |
| cc_library_shared { |
| name: "libjni_gallery_filters", |
| defaults: ["gallery2_jni_defaults"], |
| |
| srcs: [ |
| "filters/gradient.c", |
| "filters/saturated.c", |
| "filters/exposure.c", |
| "filters/edge.c", |
| "filters/contrast.c", |
| "filters/hue.c", |
| "filters/shadows.c", |
| "filters/highlight.c", |
| "filters/hsv.c", |
| "filters/vibrance.c", |
| "filters/geometry.c", |
| "filters/negative.c", |
| "filters/redEyeMath.c", |
| "filters/fx.c", |
| "filters/wbalance.c", |
| "filters/redeye.c", |
| "filters/bwfilter.c", |
| "filters/tinyplanet.cc", |
| "filters/kmeans.cc", |
| ], |
| |
| cflags: [ |
| "-ffast-math", |
| "-O3", |
| "-funroll-loops", |
| ], |
| shared_libs: ["libjnigraphics"], |
| arch: { |
| arm: { |
| instruction_set: "arm", |
| }, |
| }, |
| } |