mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
90d96615bc
ApplicationInfo.sourceDir may or may not be apk file name. It can be a directory as well. The spec just says it's "Full path to the location of this package". Also, added error handling in loadDictionary(). Change-Id: I5e64d0aba4b1ec7634f4b3ac5537e7a774433ece
41 lines
846 B
Makefile
41 lines
846 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
|
|
|
|
LOCAL_SRC_FILES := \
|
|
jni/com_android_inputmethod_latin_BinaryDictionary.cpp \
|
|
src/bigram_dictionary.cpp \
|
|
src/char_utils.cpp \
|
|
src/dictionary.cpp \
|
|
src/unigram_dictionary.cpp
|
|
|
|
#FLAG_DBG := true
|
|
|
|
TARGETING_UNBUNDLED_FROYO := true
|
|
|
|
ifeq ($(TARGET_ARCH), x86)
|
|
TARGETING_UNBUNDLED_FROYO := false
|
|
endif
|
|
|
|
ifeq ($(FLAG_DBG), 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
|
|
|
|
ifeq ($(FLAG_DBG), true)
|
|
$(warning Making debug version of native library)
|
|
LOCAL_CFLAGS += -DFLAG_DBG
|
|
LOCAL_SHARED_LIBRARIES := libcutils libutils
|
|
endif
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|