OSDN Git Service

Snap for 4481641 from c50f173722624b4455bf699d47382f7183e6453b to pi-release
[android-x86/packages-apps-Gallery2.git] / jni / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2
3 Gallery2_jni_cflags := \
4     -Wall -Wextra -Werror \
5     -Wno-error=constant-conversion \
6     -Wno-unused-parameter \
7
8 # to fix implicit conversion from 'int' to 'char', (255 to -1, 128 to -128)
9
10 include $(CLEAR_VARS)
11
12 LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES
13 LOCAL_CFLAGS += $(Gallery2_jni_cflags)
14
15 LOCAL_SRC_FILES := jni_egl_fence.cpp
16
17 LOCAL_SDK_VERSION := 9
18
19 LOCAL_MODULE_TAGS := optional
20
21 LOCAL_MODULE := libjni_eglfence
22
23 LOCAL_LDLIBS := -llog -lEGL
24
25
26 include $(BUILD_SHARED_LIBRARY)
27
28 # Filtershow
29
30 include $(CLEAR_VARS)
31
32 LOCAL_CPP_EXTENSION := .cc
33 LOCAL_SDK_VERSION := 9
34 LOCAL_MODULE    := libjni_filtershow_filters
35 LOCAL_SRC_FILES := 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 LOCAL_CFLAGS += -ffast-math -O3 -funroll-loops
56 LOCAL_CFLAGS += $(Gallery2_jni_cflags)
57 LOCAL_LDLIBS := -llog -ljnigraphics
58 LOCAL_ARM_MODE := arm
59
60 include $(BUILD_SHARED_LIBRARY)