2009-03-13 22:11:42 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2010-08-27 06:54:02 +00:00
|
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src $(JNI_H_INCLUDE)
|
2009-03-13 22:11:42 +00:00
|
|
|
|
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 04:09:55 +00:00
|
|
|
jni/jni_common.cpp \
|
2010-12-01 12:22:15 +00:00
|
|
|
src/bigram_dictionary.cpp \
|
|
|
|
src/char_utils.cpp \
|
|
|
|
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-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
|
2009-03-13 22:11:42 +00:00
|
|
|
|
2011-01-04 15:39:41 +00:00
|
|
|
ifeq ($(FLAG_DBG), true)
|
|
|
|
TARGETING_UNBUNDLED_FROYO := false
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(TARGETING_UNBUNDLED_FROYO), true)
|
|
|
|
LOCAL_NDK_VERSION := 4
|
|
|
|
LOCAL_SDK_VERSION := 8
|
|
|
|
endif
|
2009-03-13 22:11:42 +00:00
|
|
|
|
2010-08-27 06:54:02 +00:00
|
|
|
LOCAL_PRELINK_MODULE := false
|
2009-03-13 22:11:42 +00:00
|
|
|
|
2010-08-27 06:54:02 +00:00
|
|
|
LOCAL_MODULE := libjni_latinime2
|
|
|
|
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
2009-03-13 22:11:42 +00:00
|
|
|
|
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
|
|
|
|
endif
|
|
|
|
|
2009-03-13 22:11:42 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|