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