PageRenderTime 34ms CodeModel.GetById 22ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 1ms

/ocr/ocrservice/jni/opticalflow/Android.mk

http://eyes-free.googlecode.com/
Makefile | 48 lines | 34 code | 14 blank | 0 comment | 0 complexity | da2e43acf74733e721d18de1b5e26f0d MD5 | raw file
 1LOCAL_PATH:= $(call my-dir)
 2
 3include $(CLEAR_VARS)
 4
 5LOCAL_MODULE := libopticalflow
 6LOCAL_MODULE_TAGS := optional
 7
 8LOCAL_CFLAGS := -Wall \
 9                -DHAVE_MALLOC_H \
10                -DHAVE_PTHREAD \
11                -finline-functions \
12                -frename-registers \
13                -ffast-math \
14                -s \
15                -fomit-frame-pointer
16
17LOCAL_SRC_FILES := optical_flow-jni.cpp \
18                   optical_flow.cpp \
19                   feature_detector.cpp
20
21LOCAL_C_INCLUDES += $(LOCAL_PATH)/../common
22
23ifeq ($(LOG_TIME),true)
24  LOCAL_CFLAGS += -DLOG_TIME
25endif
26
27ifeq ($(SANITY_CHECKS),true)
28  LOCAL_CFLAGS += -DSANITY_CHECKS
29endif
30
31ifeq ($(VERBOSE_LOGGING),true)
32  LOCAL_CFLAGS += -DVERBOSE_LOGGING
33endif
34
35ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
36    LOCAL_CFLAGS += -DHAVE_ARMEABI_V7A=1 -mfloat-abi=softfp -mfpu=neon
37    LOCAL_C_INCLUDES += $(NDK_ROOT)/sources/cpufeatures
38    LOCAL_STATIC_LIBRARIES += cpufeatures
39endif
40
41LOCAL_LDLIBS := -llog
42
43LOCAL_STATIC_LIBRARIES += common
44
45include $(BUILD_SHARED_LIBRARY)
46
47
48include $(NDK_ROOT)/sources/cpufeatures/Android.mk