blob: ce346b43928fe59e118f88d83030e81ca8e0c7b6 [file] [log] [blame]
The Android Open Source Project7790ef52009-03-03 19:30:40 -08001LOCAL_PATH:= $(call my-dir)
The Android Open Source Project7790ef52009-03-03 19:30:40 -08002
Jesse Wilson90f23682010-09-14 16:44:14 -07003libsqlite3_android_local_src_files := \
The Android Open Source Project7790ef52009-03-03 19:30:40 -08004 PhoneNumberUtils.cpp \
Daisuke Miyakawa948a1192009-09-19 19:19:53 -07005 OldPhoneNumberUtils.cpp \
The Android Open Source Project7790ef52009-03-03 19:30:40 -08006 sqlite3_android.cpp
7
Jesse Wilson90f23682010-09-14 16:44:14 -07008libsqlite3_android_c_includes := \
The Android Open Source Project7790ef52009-03-03 19:30:40 -08009 external/sqlite/dist \
10 external/icu4c/i18n \
Jay Shraunerdb9ae4b2013-02-15 16:13:29 -080011 external/icu4c/common
The Android Open Source Project7790ef52009-03-03 19:30:40 -080012
Jesse Wilson90f23682010-09-14 16:44:14 -070013include $(CLEAR_VARS)
14LOCAL_SRC_FILES:= $(libsqlite3_android_local_src_files)
15LOCAL_C_INCLUDES := $(libsqlite3_android_c_includes)
Colin Crossbde76352013-07-23 18:01:06 -070016LOCAL_STATIC_LIBRARIES := liblog
The Android Open Source Project7790ef52009-03-03 19:30:40 -080017LOCAL_MODULE:= libsqlite3_android
The Android Open Source Project7790ef52009-03-03 19:30:40 -080018include $(BUILD_STATIC_LIBRARY)
The Android Open Source Project455ed292009-03-13 13:04:22 -070019
Jesse Wilson90f23682010-09-14 16:44:14 -070020ifeq ($(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)
Colin Crossbde76352013-07-23 18:01:06 -070024 LOCAL_STATIC_LIBRARIES := liblog
Jesse Wilson90f23682010-09-14 16:44:14 -070025 LOCAL_MODULE:= libsqlite3_android
26 include $(BUILD_HOST_STATIC_LIBRARY)
27endif
28
Daisuke Miyakawaf06f5fa2009-07-07 11:11:34 +090029# 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#
Daisuke Miyakawab3b8a9d2009-09-01 22:07:18 +090036# 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.
Daisuke Miyakawaf06f5fa2009-07-07 11:11:34 +090043include $(CLEAR_VARS)
44
45LOCAL_MODULE:= libsqlite3_phone_number_utils_test
46
47LOCAL_CFLAGS += -Wall -Werror
48
49LOCAL_SRC_FILES := \
50 PhoneNumberUtils.cpp \
51 PhoneNumberUtilsTest.cpp
52
53LOCAL_MODULE_TAGS := optional
54
Daisuke Miyakawa7bb17d62009-09-20 14:25:06 -070055include $(BUILD_EXECUTABLE)