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