1 cc_library_static { 2 name: "libsqlite3_android", 3 vendor_available: true, 4 host_supported: true, 5 cflags: ["-DSQLITE_ENABLE_ICU"], 6 srcs: [ 7 "PhoneNumberUtils.cpp", 8 "OldPhoneNumberUtils.cpp", 9 "sqlite3_android.cpp", 10 ], 11 include_dirs: ["external/sqlite/dist"], 12 shared_libs: [ 13 "liblog", 14 "libicuuc", 15 "libicui18n", 16 ], 17 target: { 18 vendor: { 19 cflags: ["-USQLITE_ENABLE_ICU"], 20 exclude_shared_libs: ["libicuuc", "libicui18n"], 21 }, 22 }, 23 export_include_dirs: ["."], 24 } 25 26 // The formal test for phone_number_compare() is in DataBaseGeneralTest.java 27 // (as of 2009-08-02), in which phone_number_compare() is tested via sqlite's custom 28 // function "PHONE_NUMBER_COMPARE". 29 cc_test { 30 name: "libsqlite3_phone_number_utils_test", 31 cflags: [ 32 "-Wall", 33 "-Werror", 34 ], 35 srcs: [ 36 "PhoneNumberUtils.cpp", 37 "PhoneNumberUtilsTest.cpp", 38 ], 39 } 40