aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-06-01 00:14:03 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-06-01 00:14:03 +0000
commit7e1bea98726e13a936af960de9f6286eac55a9de (patch)
tree35bd108f71b2b8430a7522baadded2d27fc3f05d
parentf817767a9dd6364736791719002c988825c12f6e (diff)
parent4b1c87587a947942ae012a7be13b44c8beeebeff (diff)
downloadlibsqlite3-sys-7e1bea98726e13a936af960de9f6286eac55a9de.tar.gz
Snap for 10235775 from 4b1c87587a947942ae012a7be13b44c8beeebeff to simpleperf-release
Change-Id: Ib75406eb441129799756810d5b5c535bc91f4971
-rw-r--r--Android.bp26
-rw-r--r--cargo2android-extra-module.bp20
-rw-r--r--cargo2android.json5
-rw-r--r--patches/Android.bp.patch20
4 files changed, 16 insertions, 55 deletions
diff --git a/Android.bp b/Android.bp
index 9f055dc..fda9c2a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -53,6 +53,10 @@ rust_library {
"vcpkg",
],
shared_libs: ["libsqlite"],
+ apex_available: [
+ "//apex_available:platform",
+ "//apex_available:anyapex",
+ ],
}
rust_test {
@@ -99,25 +103,3 @@ rust_test {
clippy_lints: "none",
lints: "none",
}
-
-rust_library {
- name: "liblibsqlite3_sys_noicu",
- host_supported: true,
- crate_name: "libsqlite3_sys",
- cargo_env_compat: true,
- srcs: [
- "src/lib.rs",
- ":libsqlite3_bindgen",
- ],
- edition: "2018",
- features: [
- "default",
- "min_sqlite_version_3_6_8",
- "pkg-config",
- "vcpkg",
- ],
- static_libs: [
- "libsqlite_static_noicu",
- ],
-}
-
diff --git a/cargo2android-extra-module.bp b/cargo2android-extra-module.bp
deleted file mode 100644
index 8676b74..0000000
--- a/cargo2android-extra-module.bp
+++ /dev/null
@@ -1,20 +0,0 @@
-rust_library {
- name: "liblibsqlite3_sys_noicu",
- host_supported: true,
- crate_name: "libsqlite3_sys",
- cargo_env_compat: true,
- srcs: [
- "src/lib.rs",
- ":libsqlite3_bindgen",
- ],
- edition: "2018",
- features: [
- "default",
- "min_sqlite_version_3_6_8",
- "pkg-config",
- "vcpkg",
- ],
- static_libs: [
- "libsqlite_static_noicu",
- ],
-}
diff --git a/cargo2android.json b/cargo2android.json
index e901180..edeca5e 100644
--- a/cargo2android.json
+++ b/cargo2android.json
@@ -1,9 +1,10 @@
{
- "add-toplevel-block": "cargo2android-extra-module.bp",
"copy-out": true,
"device": true,
"no-pkg-vers": true,
"patch": "patches/Android.bp.patch",
+ "product-available": false,
"run": true,
- "tests": true
+ "tests": true,
+ "vendor-available": false
}
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
index bd57023..5dedfd4 100644
--- a/patches/Android.bp.patch
+++ b/patches/Android.bp.patch
@@ -1,8 +1,8 @@
diff --git a/Android.bp b/Android.bp
-index 1764165..df125da 100644
+index 8d9ed58..f3b39a3 100644
--- a/Android.bp
+++ b/Android.bp
-@@ -36,13 +36,6 @@
+@@ -36,13 +36,6 @@ license {
],
}
@@ -16,7 +16,7 @@ index 1764165..df125da 100644
rust_library {
name: "liblibsqlite3_sys",
host_supported: true,
-@@ -50,7 +43,7 @@
+@@ -50,7 +43,7 @@ rust_library {
cargo_env_compat: true,
srcs: [
"src/lib.rs",
@@ -25,16 +25,16 @@ index 1764165..df125da 100644
],
edition: "2018",
features: [
-@@ -59,7 +52,7 @@
+@@ -59,7 +52,7 @@ rust_library {
"pkg-config",
"vcpkg",
],
- shared_libs: ["libsqlite3"],
+ shared_libs: ["libsqlite"],
- }
-
- rust_test {
-@@ -69,7 +62,7 @@
+ apex_available: [
+ "//apex_available:platform",
+ "//apex_available:anyapex",
+@@ -75,7 +68,7 @@ rust_test {
cargo_env_compat: true,
srcs: [
"src/lib.rs",
@@ -43,7 +43,7 @@ index 1764165..df125da 100644
],
test_suites: ["general-tests"],
auto_gen_config: true,
-@@ -83,7 +76,28 @@
+@@ -89,5 +82,26 @@ rust_test {
"pkg-config",
"vcpkg",
],
@@ -71,5 +71,3 @@ index 1764165..df125da 100644
+ clippy_lints: "none",
+ lints: "none",
}
-
- rust_library {