blob: bc246a990f07a46f0d071da5037528ece8ab5ede [file] [log] [blame]
The Android Open Source Project923bf412009-03-13 15:11:42 -07001LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
5
Ken Wakasade3070a2011-03-19 09:16:42 +09006LOCAL_CFLAGS += -Werror -Wall
7
8# To suppress compiler warnings for unused variables/functions used for debug features etc.
9LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-function
10
Jean Chalardcba9e232011-07-13 16:15:55 +090011# Use the new dictionary format
12LOCAL_CFLAGS += -DNEW_DICTIONARY_FORMAT
13
The Android Open Source Project923bf412009-03-13 15:11:42 -070014LOCAL_SRC_FILES := \
satok8fbd5522011-02-22 17:28:55 +090015 jni/com_android_inputmethod_keyboard_ProximityInfo.cpp \
satok30088252010-12-01 21:22:15 +090016 jni/com_android_inputmethod_latin_BinaryDictionary.cpp \
Ken Wakasace9e52a2011-06-18 13:09:55 +090017 jni/jni_common.cpp \
satok30088252010-12-01 21:22:15 +090018 src/bigram_dictionary.cpp \
19 src/char_utils.cpp \
20 src/dictionary.cpp \
satok8fbd5522011-02-22 17:28:55 +090021 src/proximity_info.cpp \
satok30088252010-12-01 21:22:15 +090022 src/unigram_dictionary.cpp
The Android Open Source Project923bf412009-03-13 15:11:42 -070023
satok15dc33d2010-12-01 15:37:31 +090024#FLAG_DBG := true
satok20d9fda2011-07-13 14:40:30 +090025#FLAG_DO_PROFILE := true
satok15dc33d2010-12-01 15:37:31 +090026
Ken Wakasa458249e2011-01-05 00:39:41 +090027TARGETING_UNBUNDLED_FROYO := true
28
29ifeq ($(TARGET_ARCH), x86)
30 TARGETING_UNBUNDLED_FROYO := false
satok15dc33d2010-12-01 15:37:31 +090031endif
32
Ken Wakasa458249e2011-01-05 00:39:41 +090033ifeq ($(FLAG_DBG), true)
34 TARGETING_UNBUNDLED_FROYO := false
35endif
36
satok787945b2011-07-14 08:32:57 +090037ifeq ($(FLAG_DO_PROFILE), true)
38 TARGETING_UNBUNDLED_FROYO := false
39endif
40
Ken Wakasa458249e2011-01-05 00:39:41 +090041ifeq ($(TARGETING_UNBUNDLED_FROYO), true)
42 LOCAL_NDK_VERSION := 4
43 LOCAL_SDK_VERSION := 8
44endif
The Android Open Source Project923bf412009-03-13 15:11:42 -070045
46LOCAL_MODULE := libjni_latinime
47
48LOCAL_MODULE_TAGS := user
49
satok20d9fda2011-07-13 14:40:30 +090050ifeq ($(FLAG_DO_PROFILE), true)
51 $(warning Making profiling version of native library)
52 LOCAL_CFLAGS += -DFLAG_DO_PROFILE
satok787945b2011-07-14 08:32:57 +090053 LOCAL_SHARED_LIBRARIES := libcutils libutils
satok20d9fda2011-07-13 14:40:30 +090054else # FLAG_DO_PROFILE
satok15dc33d2010-12-01 15:37:31 +090055ifeq ($(FLAG_DBG), true)
Ken Wakasa90d96612011-01-09 16:32:58 +090056 $(warning Making debug version of native library)
satok15dc33d2010-12-01 15:37:31 +090057 LOCAL_CFLAGS += -DFLAG_DBG
58 LOCAL_SHARED_LIBRARIES := libcutils libutils
satok20d9fda2011-07-13 14:40:30 +090059endif # FLAG_DBG
60endif # FLAG_DO_PROFILE
satok15dc33d2010-12-01 15:37:31 +090061
The Android Open Source Project923bf412009-03-13 15:11:42 -070062include $(BUILD_SHARED_LIBRARY)