1 LOCAL_PATH:= $(call my-dir) 2 3 libsqlite3_android_local_src_files := \ 4 PhoneNumberUtils.cpp \ 5 OldPhoneNumberUtils.cpp \ 6 sqlite3_android.cpp 7 8 libsqlite3_android_c_includes := external/sqlite/dist 9 10 include $(CLEAR_VARS) 11 LOCAL_SRC_FILES:= $(libsqlite3_android_local_src_files) 12 LOCAL_C_INCLUDES += $(libsqlite3_android_c_includes) 13 LOCAL_STATIC_LIBRARIES := liblog 14 LOCAL_SHARED_LIBRARIES := libicuuc libicui18n 15 LOCAL_MODULE:= libsqlite3_android 16 include $(BUILD_STATIC_LIBRARY) 17 18 include $(CLEAR_VARS) 19 LOCAL_SRC_FILES:= $(libsqlite3_android_local_src_files) 20 LOCAL_C_INCLUDES += $(libsqlite3_android_c_includes) 21 LOCAL_STATIC_LIBRARIES := liblog 22 LOCAL_SHARED_LIBRARIES := libicuuc-host libicui18n-host 23 LOCAL_MODULE:= libsqlite3_android 24 include $(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. 40 include $(CLEAR_VARS) 41 42 LOCAL_MODULE:= libsqlite3_phone_number_utils_test 43 44 LOCAL_CFLAGS += -Wall -Werror 45 46 LOCAL_SRC_FILES := \ 47 PhoneNumberUtils.cpp \ 48 PhoneNumberUtilsTest.cpp 49 50 LOCAL_MODULE_TAGS := optional 51 52 include $(BUILD_EXECUTABLE) 53