Android.mk revision 948a119c94f8b69760437c7d1e784b498cd9b766
1LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_SRC_FILES:= \
5	PhoneNumberUtils.cpp \
6	PhoneticStringUtils.cpp \
7	OldPhoneNumberUtils.cpp \
8	sqlite3_android.cpp
9
10LOCAL_C_INCLUDES := \
11        external/sqlite/dist \
12        external/icu4c/i18n \
13        external/icu4c/common
14
15LOCAL_MODULE:= libsqlite3_android
16
17include $(BUILD_STATIC_LIBRARY)
18
19# Test for PhoneticStringUtils
20include $(CLEAR_VARS)
21
22LOCAL_MODULE:= libsqlite3_phonetic_string_utils_test
23
24LOCAL_CFLAGS += -Wall -Werror
25
26LOCAL_SRC_FILES := \
27	PhoneticStringUtils.cpp \
28	PhoneticStringUtilsTest.cpp
29
30LOCAL_MODULE_TAGS := optional
31
32LOCAL_SHARED_LIBRARIES := \
33	libutils
34
35include $(BUILD_EXECUTABLE)
36
37# Test for PhoneNumberUtils
38#
39# You can also test this in Unix, like this:
40# > g++ -Wall external/sqlite/android/PhoneNumberUtils.cpp \
41#   external/sqlite/android/PhoneNumberUtilsTest.cpp
42# > ./a.out
43#
44# Note: This "test" is not recognized as a formal test. This is just for enabling developers
45#       to easily check what they modified works well or not.
46#       The formal test for phone_number_compare() is in DataBaseGeneralTest.java
47#       (as of 2009-08-02), in which phone_number_compare() is tested via sqlite's custom
48#       function "PHONE_NUMBER_COMPARE".
49#       Please add tests if you modify the implementation of PhoneNumberUtils.cpp and add
50#       test cases in PhoneNumberUtilsTest.cpp.
51include $(CLEAR_VARS)
52
53LOCAL_MODULE:= libsqlite3_phone_number_utils_test
54
55LOCAL_CFLAGS += -Wall -Werror
56
57LOCAL_SRC_FILES := \
58	PhoneNumberUtils.cpp \
59	PhoneNumberUtilsTest.cpp
60
61LOCAL_MODULE_TAGS := optional
62
63# include $(BUILD_EXECUTABLE)
64