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