• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo2android.py --config cargo2android.json.
2// Do not modify this file as changes will be overridden on upgrade.
3
4// We renamed the shared_libs dependence from libsqlite3 to libsqlite.
5// srcs has been moved out of _defaults to work around b/163420435
6
7package {
8    default_applicable_licenses: [
9        "external_rust_crates_libsqlite3-sys_license",
10    ],
11}
12
13// Added automatically by a large-scale-change that took the approach of
14// 'apply every license found to every target'. While this makes sure we respect
15// every license restriction, it may not be entirely correct.
16//
17// e.g. GPL in an MIT project might only apply to the contrib/ directory.
18//
19// Please consider splitting the single license below into multiple licenses,
20// taking care not to lose any license_kind information, and overriding the
21// default license using the 'licenses: [...]' property on targets as needed.
22//
23// For unused files, consider creating a 'fileGroup' with "//visibility:private"
24// to attach the license to, and including a comment whether the files may be
25// used in the current project.
26// See: http://go/android-license-faq
27license {
28    name: "external_rust_crates_libsqlite3-sys_license",
29    visibility: [":__subpackages__"],
30    license_kinds: [
31        "SPDX-license-identifier-MIT",
32        "legacy_permissive",
33    ],
34    license_text: [
35        "LICENSE",
36    ],
37}
38
39rust_library {
40    name: "liblibsqlite3_sys",
41    host_supported: true,
42    crate_name: "libsqlite3_sys",
43    cargo_env_compat: true,
44    srcs: [
45        "src/lib.rs",
46        ":libsqlite3_bindgen",
47    ],
48    edition: "2018",
49    features: [
50        "default",
51        "min_sqlite_version_3_6_8",
52        "pkg-config",
53        "vcpkg",
54    ],
55    shared_libs: ["libsqlite"],
56}
57
58rust_test {
59    name: "libsqlite3-sys_test_src_lib",
60    host_supported: true,
61    crate_name: "libsqlite3_sys",
62    cargo_env_compat: true,
63    srcs: [
64        "src/lib.rs",
65        ":libsqlite3_bindgen",
66    ],
67    test_suites: ["general-tests"],
68    auto_gen_config: true,
69    test_options: {
70        unit_test: true,
71    },
72    edition: "2018",
73    features: [
74        "default",
75        "min_sqlite_version_3_6_8",
76        "pkg-config",
77        "vcpkg",
78    ],
79    shared_libs: ["libsqlite"],
80}
81
82rust_bindgen {
83    name: "libsqlite3_bindgen",
84    host_supported: true,
85    crate_name: "sqlite3_bindgen",
86    custom_bindgen: "sqlite3_bindgen_build",
87    wrapper_src: "wrapper.h",
88    source_stem: "bindgen",
89    cflags: ["-I external/sqlite/dist"],
90    defaults: ["sqlite-defaults"],
91}
92
93rust_test {
94    name: "libsqlite3_bindgen_test",
95    srcs: [":libsqlite3_bindgen"],
96    crate_name: "sqlite3_bindgen_test",
97    test_suites: ["general-tests"],
98    auto_gen_config: true,
99    clippy_lints: "none",
100    lints: "none",
101}
102
103rust_library {
104    name: "liblibsqlite3_sys_noicu",
105    host_supported: true,
106    crate_name: "libsqlite3_sys",
107    cargo_env_compat: true,
108    srcs: [
109        "src/lib.rs",
110        ":libsqlite3_bindgen",
111    ],
112    edition: "2018",
113    features: [
114        "default",
115        "min_sqlite_version_3_6_8",
116        "pkg-config",
117        "vcpkg",
118    ],
119    static_libs: [
120        "libsqlite_static_noicu",
121    ],
122}
123
124