blob: 9016f310e8ddda90ac22a69e439f616fdd316963 [file] [log] [blame]
The Android Open Source Project7790ef52009-03-03 19:30:40 -08001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_SRC_FILES:= \
5 PhoneNumberUtils.cpp \
The Android Open Source Project455ed292009-03-13 13:04:22 -07006 PhoneticStringUtils.cpp \
Daisuke Miyakawa948a1192009-09-19 19:19:53 -07007 OldPhoneNumberUtils.cpp \
Dmitri Plotnikov3a749622010-03-03 11:29:46 -08008 PhonebookIndex.cpp \
The Android Open Source Project7790ef52009-03-03 19:30:40 -08009 sqlite3_android.cpp
10
11LOCAL_C_INCLUDES := \
12 external/sqlite/dist \
13 external/icu4c/i18n \
14 external/icu4c/common
15
The Android Open Source Project7790ef52009-03-03 19:30:40 -080016LOCAL_MODULE:= libsqlite3_android
17
18include $(BUILD_STATIC_LIBRARY)
The Android Open Source Project455ed292009-03-13 13:04:22 -070019
20# Test for PhoneticStringUtils
21include $(CLEAR_VARS)
22
23LOCAL_MODULE:= libsqlite3_phonetic_string_utils_test
24
25LOCAL_CFLAGS += -Wall -Werror
26
27LOCAL_SRC_FILES := \
28 PhoneticStringUtils.cpp \
29 PhoneticStringUtilsTest.cpp
30
Sriram Raman0ff6f712009-06-22 17:21:07 -070031LOCAL_MODULE_TAGS := optional
The Android Open Source Project455ed292009-03-13 13:04:22 -070032
Daisuke Miyakawae919af52009-06-26 22:58:32 +090033LOCAL_SHARED_LIBRARIES := \
34 libutils
35
The Android Open Source Project455ed292009-03-13 13:04:22 -070036include $(BUILD_EXECUTABLE)
Daisuke Miyakawaf06f5fa2009-07-07 11:11:34 +090037
38# Test for PhoneNumberUtils
39#
40# You can also test this in Unix, like this:
41# > g++ -Wall external/sqlite/android/PhoneNumberUtils.cpp \
42# external/sqlite/android/PhoneNumberUtilsTest.cpp
43# > ./a.out
44#
Daisuke Miyakawab3b8a9d2009-09-01 22:07:18 +090045# Note: This "test" is not recognized as a formal test. This is just for enabling developers
46# to easily check what they modified works well or not.
47# The formal test for phone_number_compare() is in DataBaseGeneralTest.java
48# (as of 2009-08-02), in which phone_number_compare() is tested via sqlite's custom
49# function "PHONE_NUMBER_COMPARE".
50# Please add tests if you modify the implementation of PhoneNumberUtils.cpp and add
51# test cases in PhoneNumberUtilsTest.cpp.
Daisuke Miyakawaf06f5fa2009-07-07 11:11:34 +090052include $(CLEAR_VARS)
53
54LOCAL_MODULE:= libsqlite3_phone_number_utils_test
55
56LOCAL_CFLAGS += -Wall -Werror
57
58LOCAL_SRC_FILES := \
59 PhoneNumberUtils.cpp \
60 PhoneNumberUtilsTest.cpp
61
62LOCAL_MODULE_TAGS := optional
63
Daisuke Miyakawa7bb17d62009-09-20 14:25:06 -070064include $(BUILD_EXECUTABLE)