2009-03-13 22:11:42 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
|
|
|
|
|
2011-03-19 00:16:42 +00:00
|
|
|
LOCAL_CFLAGS += -Werror -Wall
|
|
|
|
|
|
|
|
# To suppress compiler warnings for unused variables/functions used for debug features etc.
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-function
|
|
|
|
|
2009-03-13 22:11:42 +00:00
|
|
|
LOCAL_SRC_FILES := \
|
2011-02-22 08:28:55 +00:00
|
|
|
jni/com_android_inputmethod_keyboard_ProximityInfo.cpp \
|
2010-12-01 12:22:15 +00:00
|
|
|
jni/com_android_inputmethod_latin_BinaryDictionary.cpp \
|
2011-06-18 05:09:55 +01:00
|
|
|
jni/jni_common.cpp \
|
2011-11-11 05:26:13 +00:00
|
|
|
src/basechars.cpp \
|
2010-12-01 12:22:15 +00:00
|
|
|
src/bigram_dictionary.cpp \
|
|
|
|
src/char_utils.cpp \
|
2011-08-10 06:30:10 +01:00
|
|
|
src/correction.cpp \
|
2010-12-01 12:22:15 +00:00
|
|
|
src/dictionary.cpp \
|
2011-02-22 08:28:55 +00:00
|
|
|
src/proximity_info.cpp \
|
2010-12-01 12:22:15 +00:00
|
|
|
src/unigram_dictionary.cpp
|
2009-03-13 22:11:42 +00:00
|
|
|
|
2010-12-01 06:37:31 +00:00
|
|
|
#FLAG_DBG := true
|
2011-07-13 06:40:30 +01:00
|
|
|
#FLAG_DO_PROFILE := true
|
2010-12-01 06:37:31 +00:00
|
|
|
|
2011-01-04 15:39:41 +00:00
|
|
|
TARGETING_UNBUNDLED_FROYO := true
|
|
|
|
|
|
|
|
ifeq ($(TARGET_ARCH), x86)
|
|
|
|
TARGETING_UNBUNDLED_FROYO := false
|
2010-12-01 06:37:31 +00:00
|
|
|
endif
|
|
|
|
|
2011-01-04 15:39:41 +00:00
|
|
|
ifeq ($(FLAG_DBG), true)
|
|
|
|
TARGETING_UNBUNDLED_FROYO := false
|
|
|
|
endif
|
|
|
|
|
2011-07-14 00:32:57 +01:00
|
|
|
ifeq ($(FLAG_DO_PROFILE), true)
|
|
|
|
TARGETING_UNBUNDLED_FROYO := false
|
|
|
|
endif
|
|
|
|
|
2011-01-04 15:39:41 +00:00
|
|
|
ifeq ($(TARGETING_UNBUNDLED_FROYO), true)
|
|
|
|
LOCAL_NDK_VERSION := 4
|
|
|
|
LOCAL_SDK_VERSION := 8
|
|
|
|
endif
|
2009-03-13 22:11:42 +00:00
|
|
|
|
|
|
|
LOCAL_MODULE := libjni_latinime
|
|
|
|
|
|
|
|
LOCAL_MODULE_TAGS := user
|
|
|
|
|
2011-07-13 06:40:30 +01:00
|
|
|
ifeq ($(FLAG_DO_PROFILE), true)
|
|
|
|
$(warning Making profiling version of native library)
|
|
|
|
LOCAL_CFLAGS += -DFLAG_DO_PROFILE
|
2011-07-14 00:32:57 +01:00
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils libutils
|
2011-07-13 06:40:30 +01:00
|
|
|
else # FLAG_DO_PROFILE
|
2010-12-01 06:37:31 +00:00
|
|
|
ifeq ($(FLAG_DBG), true)
|
2011-01-09 07:32:58 +00:00
|
|
|
$(warning Making debug version of native library)
|
2010-12-01 06:37:31 +00:00
|
|
|
LOCAL_CFLAGS += -DFLAG_DBG
|
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils libutils
|
2011-07-13 06:40:30 +01:00
|
|
|
endif # FLAG_DBG
|
|
|
|
endif # FLAG_DO_PROFILE
|
2010-12-01 06:37:31 +00:00
|
|
|
|
2009-03-13 22:11:42 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|