-
Notifications
You must be signed in to change notification settings - Fork 5
/
Android.mk
48 lines (35 loc) · 866 Bytes
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
LOCAL_MODULE := minibpm
LOCAL_MODULE_FILENAME := libminibpm-jni
LOCAL_C_INCLUDES := $(LOCAL_PATH)/minibpm/src
MINIBPM_PATH := minibpm
MINIBPM_SRC_PATH := $(MINIBPM_PATH)/src
MINIBPM_JNI_FILES := \
$(MINIBPM_SRC_PATH)/jni/MiniBpmJNI.cpp
MINIBPM_SRC_FILES := \
$(MINIBPM_SRC_PATH)/MiniBpm.cpp
LOCAL_SRC_FILES += \
$(MINIBPM_JNI_FILES) \
$(MINIBPM_SRC_FILES)
LOCAL_CFLAGS_DEBUG := \
-g \
-mfloat-abi=softfp
LOCAL_CFLAGS_RELEASE := \
-O3 \
-mfpu=neon \
-mfloat-abi=softfp \
-ffast-math \
-ftree-vectorize \
-ftree-vect-loop-version \
-freciprocal-math \
-fsingle-precision-constant \
-D__ARM_ARCH_7__
LOCAL_CFLAGS := \
-Wall \
-I$(MINIBPM_SRC_PATH) \
-DNO_EXCEPTIONS \
$(LOCAL_CFLAGS_RELEASE)
LOCAL_LDLIBS += -llog
TARGET_ARCH_ABI := armeabi-v7a
LOCAL_ARM_MODE := arm
LOCAL_ARM_NEON := true
include $(BUILD_SHARED_LIBRARY)