blob: 9284903d95d6472f729ef0c6bbee6ac8faacbb84 [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)
The Android Open Source Project7790ef52009-03-03 19:30:40 -080016LOCAL_MODULE:= libsqlite3_android
The Android Open Source Project7790ef52009-03-03 19:30:40 -080017include $(BUILD_STATIC_LIBRARY)
The Android Open Source Project455ed292009-03-13 13:04:22 -070018
Jesse Wilson90f23682010-09-14 16:44:14 -070019ifeq ($(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
Daisuke Miyakawaf06f5fa2009-07-07 11:11:34 +090027# 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#
Daisuke Miyakawab3b8a9d2009-09-01 22:07:18 +090034# 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.
Daisuke Miyakawaf06f5fa2009-07-07 11:11:34 +090041include $(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
Daisuke Miyakawa7bb17d62009-09-20 14:25:06 -070053include $(BUILD_EXECUTABLE)