Android.mk revision bd1ed5b8599412a44b7193091ee17b9435147031
1LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
5
6LOCAL_CFLAGS += -Werror -Wall
7
8# To suppress compiler warnings for unused variables/functions used for debug features etc.
9LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-function
10
11LOCAL_SRC_FILES := \
12    jni/com_android_inputmethod_keyboard_ProximityInfo.cpp \
13    jni/com_android_inputmethod_latin_BinaryDictionary.cpp \
14    jni/jni_common.cpp \
15    src/bigram_dictionary.cpp \
16    src/char_utils.cpp \
17    src/correction.cpp \
18    src/dictionary.cpp \
19    src/proximity_info.cpp \
20    src/unigram_dictionary.cpp
21
22#FLAG_DBG := true
23#FLAG_DO_PROFILE := true
24
25TARGETING_UNBUNDLED_FROYO := true
26
27ifeq ($(TARGET_ARCH), x86)
28    TARGETING_UNBUNDLED_FROYO := false
29endif
30
31ifeq ($(FLAG_DBG), true)
32    TARGETING_UNBUNDLED_FROYO := false
33endif
34
35ifeq ($(FLAG_DO_PROFILE), true)
36    TARGETING_UNBUNDLED_FROYO := false
37endif
38
39ifeq ($(TARGETING_UNBUNDLED_FROYO), true)
40    LOCAL_NDK_VERSION := 4
41    LOCAL_SDK_VERSION := 8
42endif
43
44LOCAL_MODULE := libjni_latinime
45
46LOCAL_MODULE_TAGS := optional
47
48ifeq ($(FLAG_DO_PROFILE), true)
49    $(warning Making profiling version of native library)
50    LOCAL_CFLAGS += -DFLAG_DO_PROFILE
51    LOCAL_SHARED_LIBRARIES := libcutils libutils
52else # FLAG_DO_PROFILE
53ifeq ($(FLAG_DBG), true)
54    $(warning Making debug version of native library)
55    LOCAL_CFLAGS += -DFLAG_DBG
56    LOCAL_SHARED_LIBRARIES := libcutils libutils
57endif # FLAG_DBG
58endif # FLAG_DO_PROFILE
59
60include $(BUILD_SHARED_LIBRARY)
61