blob: 1e8718b64981671e4efbdb6afb5f82b14c3efdbe [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 \
Elliott Hughes71ceba42014-07-09 16:49:49 -070010 external/icu/icu4c/source/i18n \
11 external/icu/icu4c/source/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)
Colin Crossbde76352013-07-23 18:01:06 -070016LOCAL_STATIC_LIBRARIES := liblog
The Android Open Source Project7790ef52009-03-03 19:30:40 -080017LOCAL_MODULE:= libsqlite3_android
The Android Open Source Project7790ef52009-03-03 19:30:40 -080018include $(BUILD_STATIC_LIBRARY)
The Android Open Source Project455ed292009-03-13 13:04:22 -070019
Ian Rogersf3a7b1a2014-05-23 11:21:46 -070020include $(CLEAR_VARS)
21LOCAL_SRC_FILES:= $(libsqlite3_android_local_src_files)
22LOCAL_C_INCLUDES := $(libsqlite3_android_c_includes)
23LOCAL_STATIC_LIBRARIES := liblog
24LOCAL_MODULE:= libsqlite3_android
25include $(BUILD_HOST_STATIC_LIBRARY)
Jesse Wilson90f23682010-09-14 16:44:14 -070026
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)