1LOCAL_PATH:= $(call my-dir) 2 3libsqlite3_android_local_src_files := \ 4 PhoneNumberUtils.cpp \ 5 PhoneticStringUtils.cpp \ 6 OldPhoneNumberUtils.cpp \ 7 PhonebookIndex.cpp \ 8 sqlite3_android.cpp 9 10libsqlite3_android_c_includes := \ 11 external/sqlite/dist \ 12 external/icu4c/i18n \ 13 external/icu4c/common 14 15include $(CLEAR_VARS) 16LOCAL_SRC_FILES:= $(libsqlite3_android_local_src_files) 17LOCAL_C_INCLUDES := $(libsqlite3_android_c_includes) 18LOCAL_MODULE:= libsqlite3_android 19include $(BUILD_STATIC_LIBRARY) 20 21ifeq ($(WITH_HOST_DALVIK),true) 22 include $(CLEAR_VARS) 23 LOCAL_SRC_FILES:= $(libsqlite3_android_local_src_files) 24 LOCAL_C_INCLUDES := $(libsqlite3_android_c_includes) 25 LOCAL_MODULE:= libsqlite3_android 26 include $(BUILD_HOST_STATIC_LIBRARY) 27endif 28 29# Test for PhoneticStringUtils 30include $(CLEAR_VARS) 31 32LOCAL_MODULE:= libsqlite3_phonetic_string_utils_test 33 34LOCAL_CFLAGS += -Wall -Werror 35 36LOCAL_SRC_FILES := \ 37 PhoneticStringUtils.cpp \ 38 PhoneticStringUtilsTest.cpp 39 40LOCAL_MODULE_TAGS := optional 41 42LOCAL_SHARED_LIBRARIES := \ 43 libutils 44 45include $(BUILD_EXECUTABLE) 46 47# Test for PhoneNumberUtils 48# 49# You can also test this in Unix, like this: 50# > g++ -Wall external/sqlite/android/PhoneNumberUtils.cpp \ 51# external/sqlite/android/PhoneNumberUtilsTest.cpp 52# > ./a.out 53# 54# Note: This "test" is not recognized as a formal test. This is just for enabling developers 55# to easily check what they modified works well or not. 56# The formal test for phone_number_compare() is in DataBaseGeneralTest.java 57# (as of 2009-08-02), in which phone_number_compare() is tested via sqlite's custom 58# function "PHONE_NUMBER_COMPARE". 59# Please add tests if you modify the implementation of PhoneNumberUtils.cpp and add 60# test cases in PhoneNumberUtilsTest.cpp. 61include $(CLEAR_VARS) 62 63LOCAL_MODULE:= libsqlite3_phone_number_utils_test 64 65LOCAL_CFLAGS += -Wall -Werror 66 67LOCAL_SRC_FILES := \ 68 PhoneNumberUtils.cpp \ 69 PhoneNumberUtilsTest.cpp 70 71LOCAL_MODULE_TAGS := optional 72 73include $(BUILD_EXECUTABLE) 74