16379df633
+1 2 -6 2 Performance before ==== test finished, terminate logcat ===== (0) 100.34 (0.26%) (1) 37149.26 (95.30%) (2) 8.43 (0.02%) (3) 11.18 (0.03%) (4) 9.92 (0.03%) (5) 1330.60 (3.41%) (6) 250.46 (0.64%) (20) 12.41 (0.03%) Total 38982.50 (sum of others 38872.59) after ==== test finished, terminate logcat ===== (0) 97.65 (0.26%) (1) 35427.43 (95.32%) (2) 10.30 (0.03%) (3) 8.95 (0.02%) (4) 11.01 (0.03%) (5) 1224.67 (3.30%) (6) 243.76 (0.66%) (20) 40.91 (0.11%) Total 37167.04 (sum of others 37064.68) Change-Id: Id4d3b88a9cdef765affc52973aeac951ecc6a8ca
65 lines
1.6 KiB
Makefile
65 lines
1.6 KiB
Makefile
LOCAL_PATH := $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
|
|
|
|
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
|
|
|
|
LOCAL_SRC_FILES := \
|
|
jni/com_android_inputmethod_keyboard_ProximityInfo.cpp \
|
|
jni/com_android_inputmethod_latin_BinaryDictionary.cpp \
|
|
jni/jni_common.cpp \
|
|
src/basechars.cpp \
|
|
src/bigram_dictionary.cpp \
|
|
src/char_utils.cpp \
|
|
src/correction.cpp \
|
|
src/dictionary.cpp \
|
|
src/proximity_info.cpp \
|
|
src/unigram_dictionary.cpp
|
|
|
|
#FLAG_DBG := true
|
|
#FLAG_DO_PROFILE := true
|
|
|
|
TARGETING_UNBUNDLED_FROYO := true
|
|
|
|
ifeq ($(TARGET_ARCH), x86)
|
|
TARGETING_UNBUNDLED_FROYO := false
|
|
endif
|
|
|
|
ifeq ($(FLAG_DBG), true)
|
|
TARGETING_UNBUNDLED_FROYO := false
|
|
endif
|
|
|
|
ifeq ($(FLAG_DO_PROFILE), true)
|
|
TARGETING_UNBUNDLED_FROYO := false
|
|
endif
|
|
|
|
ifeq ($(TARGETING_UNBUNDLED_FROYO), true)
|
|
LOCAL_NDK_VERSION := 4
|
|
LOCAL_SDK_VERSION := 8
|
|
endif
|
|
|
|
LOCAL_MODULE := libjni_latinime
|
|
|
|
LOCAL_MODULE_TAGS := user
|
|
|
|
# For STL
|
|
LOCAL_C_INCLUDES += external/stlport/stlport bionic
|
|
LOCAL_SHARED_LIBRARIES += libstlport
|
|
|
|
ifeq ($(FLAG_DO_PROFILE), true)
|
|
$(warning Making profiling version of native library)
|
|
LOCAL_CFLAGS += -DFLAG_DO_PROFILE
|
|
LOCAL_SHARED_LIBRARIES += libcutils libutils
|
|
else # FLAG_DO_PROFILE
|
|
ifeq ($(FLAG_DBG), true)
|
|
$(warning Making debug version of native library)
|
|
LOCAL_CFLAGS += -DFLAG_DBG
|
|
LOCAL_SHARED_LIBRARIES += libcutils libutils
|
|
endif # FLAG_DBG
|
|
endif # FLAG_DO_PROFILE
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|