Home | History | Annotate | Download | only in native
      1 LOCAL_PATH := $(call my-dir)
      2 include $(CLEAR_VARS)
      3 
      4 LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
      5 
      6 LOCAL_CFLAGS += -Werror -Wall
      7 
      8 # To suppress compiler warnings for unused variables/functions used for debug features etc.
      9 LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-function
     10 
     11 LOCAL_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 
     25 TARGETING_UNBUNDLED_FROYO := true
     26 
     27 ifeq ($(TARGET_ARCH), x86)
     28     TARGETING_UNBUNDLED_FROYO := false
     29 endif
     30 
     31 ifeq ($(FLAG_DBG), true)
     32     TARGETING_UNBUNDLED_FROYO := false
     33 endif
     34 
     35 ifeq ($(FLAG_DO_PROFILE), true)
     36     TARGETING_UNBUNDLED_FROYO := false
     37 endif
     38 
     39 ifeq ($(TARGETING_UNBUNDLED_FROYO), true)
     40     LOCAL_NDK_VERSION := 4
     41     LOCAL_SDK_VERSION := 8
     42 endif
     43 
     44 LOCAL_MODULE := libjni_latinime
     45 
     46 LOCAL_MODULE_TAGS := user
     47 
     48 ifeq ($(FLAG_DO_PROFILE), true)
     49     $(warning Making profiling version of native library)
     50     LOCAL_CFLAGS += -DFLAG_DO_PROFILE
     51     LOCAL_SHARED_LIBRARIES := libcutils libutils
     52 else # FLAG_DO_PROFILE
     53 ifeq ($(FLAG_DBG), true)
     54     $(warning Making debug version of native library)
     55     LOCAL_CFLAGS += -DFLAG_DBG
     56     LOCAL_SHARED_LIBRARIES := libcutils libutils
     57 endif # FLAG_DBG
     58 endif # FLAG_DO_PROFILE
     59 
     60 include $(BUILD_SHARED_LIBRARY)
     61