You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
1.9 KiB

package {
default_applicable_licenses: ["external_sqlite_android_license"],
}
// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "external_sqlite_android_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
}
cc_library_static {
name: "libsqlite3_android",
vendor_available: true,
native_bridge_supported: true,
host_supported: true,
cflags: [
"-Wall",
"-Werror",
"-Wno-unused-function",
"-Wno-unused-variable",
],
srcs: [
"PhoneNumberUtils.cpp",
"OldPhoneNumberUtils.cpp",
"sqlite3_android.cpp",
],
include_dirs: ["external/sqlite/dist"],
shared_libs: [
"liblog",
],
target: {
android: {
cflags: [
"-DSQLITE_ENABLE_ICU",
"-DSQLITE_DEFAULT_LEGACY_ALTER_TABLE",
],
shared_libs: [
"libandroidicu",
],
},
host: {
cflags: ["-DSQLITE_ENABLE_ICU"],
shared_libs: [
"libicui18n",
"libicuuc",
],
},
vendor: {
cflags: ["-USQLITE_ENABLE_ICU"],
exclude_shared_libs: ["libandroidicu"],
},
},
export_include_dirs: ["."],
}
// The formal test for phone_number_compare() is in DataBaseGeneralTest.java
// (as of 2009-08-02), in which phone_number_compare() is tested via sqlite's custom
// function "PHONE_NUMBER_COMPARE".
cc_test {
host_supported: true,
name: "libsqlite3_phone_number_utils_test",
cflags: [
"-Wall",
"-Werror",
],
srcs: [
"OldPhoneNumberUtils.cpp",
"OldPhoneNumberUtilsTest.cpp",
"PhoneNumberUtils.cpp",
"PhoneNumberUtilsTest.cpp",
],
}