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