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