Android.mk revision e919af569c13d7445daf20cb06867e186afba92a
1LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_SRC_FILES:= \
5	PhoneNumberUtils.cpp \
6	PhoneticStringUtils.cpp \
7	sqlite3_android.cpp
8
9LOCAL_C_INCLUDES := \
10        external/sqlite/dist \
11        external/icu4c/i18n \
12        external/icu4c/common
13
14LOCAL_MODULE:= libsqlite3_android
15
16include $(BUILD_STATIC_LIBRARY)
17
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
29LOCAL_MODULE_TAGS := optional
30
31LOCAL_SHARED_LIBRARIES := \
32	libutils
33
34include $(BUILD_EXECUTABLE)
35
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#
43# Note: tests related to PHONE_NUMBERS_EQUAL also exists in AndroidTests in
44# java space. Add tests if you modify this.
45
46include $(CLEAR_VARS)
47
48LOCAL_MODULE:= libsqlite3_phone_number_utils_test
49
50LOCAL_CFLAGS += -Wall -Werror
51
52LOCAL_SRC_FILES := \
53	PhoneNumberUtils.cpp \
54	PhoneNumberUtilsTest.cpp
55
56LOCAL_MODULE_TAGS := optional
57
58include $(BUILD_EXECUTABLE)
59