Joel Galenson | 2398e02 | 2021-08-24 08:49:34 -0700 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --config cargo2android.json. |
Seth Moore | 8cc6a24 | 2021-04-02 16:52:39 +0000 | [diff] [blame] | 2 | // Do not modify this file as changes will be overridden on upgrade. |
Chih-Hung Hsieh | 9a627fb | 2020-07-29 20:55:10 -0700 | [diff] [blame] | 3 | |
| 4 | // We renamed the shared_libs dependence from libsqlite3 to libsqlite. |
Matthew Maurer | 5856e85 | 2020-08-10 16:31:06 -0700 | [diff] [blame] | 5 | // srcs has been moved out of _defaults to work around b/163420435 |
Chih-Hung Hsieh | 9a627fb | 2020-07-29 20:55:10 -0700 | [diff] [blame] | 6 | |
Bob Badour | 0f6dcf7 | 2021-02-12 18:24:18 -0800 | [diff] [blame] | 7 | package { |
| 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 |
| 27 | license { |
| 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 | |
Chih-Hung Hsieh | 9a627fb | 2020-07-29 20:55:10 -0700 | [diff] [blame] | 39 | rust_library { |
| 40 | name: "liblibsqlite3_sys", |
| 41 | host_supported: true, |
| 42 | crate_name: "libsqlite3_sys", |
Joel Galenson | 2398e02 | 2021-08-24 08:49:34 -0700 | [diff] [blame] | 43 | cargo_env_compat: true, |
Matthew Maurer | 5856e85 | 2020-08-10 16:31:06 -0700 | [diff] [blame] | 44 | srcs: [ |
| 45 | "src/lib.rs", |
| 46 | ":libsqlite3_bindgen", |
| 47 | ], |
Chih-Hung Hsieh | 9a627fb | 2020-07-29 20:55:10 -0700 | [diff] [blame] | 48 | edition: "2018", |
Chih-Hung Hsieh | 9a627fb | 2020-07-29 20:55:10 -0700 | [diff] [blame] | 49 | features: [ |
| 50 | "default", |
| 51 | "min_sqlite_version_3_6_8", |
| 52 | "pkg-config", |
| 53 | "vcpkg", |
| 54 | ], |
Joel Galenson | 1f38c4a | 2021-11-29 14:04:12 -0800 | [diff] [blame] | 55 | shared_libs: ["libsqlite"], |
Chih-Hung Hsieh | 9a627fb | 2020-07-29 20:55:10 -0700 | [diff] [blame] | 56 | } |
| 57 | |
| 58 | rust_test { |
Joel Galenson | 1f38c4a | 2021-11-29 14:04:12 -0800 | [diff] [blame] | 59 | name: "libsqlite3-sys_test_src_lib", |
| 60 | host_supported: true, |
| 61 | crate_name: "libsqlite3_sys", |
| 62 | cargo_env_compat: true, |
Matthew Maurer | 5856e85 | 2020-08-10 16:31:06 -0700 | [diff] [blame] | 63 | srcs: [ |
| 64 | "src/lib.rs", |
| 65 | ":libsqlite3_bindgen", |
| 66 | ], |
Joel Galenson | 1f38c4a | 2021-11-29 14:04:12 -0800 | [diff] [blame] | 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"], |
Chih-Hung Hsieh | 9a627fb | 2020-07-29 20:55:10 -0700 | [diff] [blame] | 80 | } |
| 81 | |
Matthew Maurer | 5856e85 | 2020-08-10 16:31:06 -0700 | [diff] [blame] | 82 | rust_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", |
Seth Moore | 8cc6a24 | 2021-04-02 16:52:39 +0000 | [diff] [blame] | 89 | cflags: ["-I external/sqlite/dist"], |
| 90 | defaults: ["sqlite-defaults"], |
Chih-Hung Hsieh | 9a627fb | 2020-07-29 20:55:10 -0700 | [diff] [blame] | 91 | } |
Joel Galenson | d39f447 | 2021-08-24 09:19:42 -0700 | [diff] [blame] | 92 | |
| 93 | rust_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 | } |
Jiyong Park | 8e5c8e8 | 2021-09-14 09:31:54 +0900 | [diff] [blame] | 102 | |
| 103 | rust_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 | |