blob: 41675f2cbbe1b4c94c8991946c19f22be031b277 [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 \
The Android Open Source Project7790ef52009-03-03 19:30:40 -08007 sqlite3_android.cpp
8
9LOCAL_C_INCLUDES := \
10 external/sqlite/dist \
11 external/icu4c/i18n \
12 external/icu4c/common
13
The Android Open Source Project7790ef52009-03-03 19:30:40 -080014LOCAL_MODULE:= libsqlite3_android
15
16include $(BUILD_STATIC_LIBRARY)
The Android Open Source Project455ed292009-03-13 13:04:22 -070017
18# Test for PhoneticStringUtils
19include $(CLEAR_VARS)
20
21LOCAL_MODULE:= libsqlite3_phonetic_string_utils_test
22
23LOCAL_CFLAGS += -Wall -Werror
24
25LOCAL_SRC_FILES := \
26 PhoneticStringUtils.cpp \
27 PhoneticStringUtilsTest.cpp
28
Sriram Raman0ff6f712009-06-22 17:21:07 -070029LOCAL_MODULE_TAGS := optional
The Android Open Source Project455ed292009-03-13 13:04:22 -070030
Daisuke Miyakawae919af52009-06-26 22:58:32 +090031LOCAL_SHARED_LIBRARIES := \
32 libutils
33
The Android Open Source Project455ed292009-03-13 13:04:22 -070034include $(BUILD_EXECUTABLE)
Daisuke Miyakawaf06f5fa2009-07-07 11:11:34 +090035
36# Test for PhoneNumberUtils
37#
38# You can also test this in Unix, like this:
39# > g++ -Wall external/sqlite/android/PhoneNumberUtils.cpp \
40# external/sqlite/android/PhoneNumberUtilsTest.cpp
41# > ./a.out
42#
Daisuke Miyakawab3b8a9d2009-09-01 22:07:18 +090043# Note: This "test" is not recognized as a formal test. This is just for enabling developers
44# to easily check what they modified works well or not.
45# The formal test for phone_number_compare() is in DataBaseGeneralTest.java
46# (as of 2009-08-02), in which phone_number_compare() is tested via sqlite's custom
47# function "PHONE_NUMBER_COMPARE".
48# Please add tests if you modify the implementation of PhoneNumberUtils.cpp and add
49# test cases in PhoneNumberUtilsTest.cpp.
Daisuke Miyakawaf06f5fa2009-07-07 11:11:34 +090050include $(CLEAR_VARS)
51
52LOCAL_MODULE:= libsqlite3_phone_number_utils_test
53
54LOCAL_CFLAGS += -Wall -Werror
55
56LOCAL_SRC_FILES := \
57 PhoneNumberUtils.cpp \
58 PhoneNumberUtilsTest.cpp
59
60LOCAL_MODULE_TAGS := optional
61
62include $(BUILD_EXECUTABLE)