aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Shombert <shombert@google.com>2024-03-08 16:46:17 -0800
committerLee Shombert <shombert@google.com>2024-03-08 16:46:17 -0800
commitbbdc4c407b4454b6e78184fa52c28fae735f8a93 (patch)
treeae4a6a1e7a3c4d21c9fbbe09a3481accea574597
parenta7e92db29f2d4e9a5453face5f7cf18831cabad3 (diff)
downloadlibsqlite3-sys-bbdc4c407b4454b6e78184fa52c28fae735f8a93.tar.gz
Remove hard-coded sqlite path from rust Android.bpHEADmastermain
Once multiple versions of sqlite are supported, the hard-coded include path will not be correct. This replaces the hard-coded path with a reference to the "libsqlite" module; that will always bring in the correct header path. Bug: 323176655 Change-Id: If1d0d50784219fba67086b4919d298cedf911435
-rw-r--r--Android.bp2
-rw-r--r--bindgen_modules.bp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Android.bp b/Android.bp
index dc4fbf9..c30bf30 100644
--- a/Android.bp
+++ b/Android.bp
@@ -92,7 +92,7 @@ rust_bindgen {
custom_bindgen: "sqlite3_bindgen_build",
wrapper_src: "wrapper.h",
source_stem: "bindgen",
- cflags: ["-I external/sqlite/dist"],
+ header_libs: ["libsqlite"],
defaults: ["sqlite-defaults"],
apex_available: [
"//apex_available:platform",
diff --git a/bindgen_modules.bp b/bindgen_modules.bp
index ec26c19..6db7199 100644
--- a/bindgen_modules.bp
+++ b/bindgen_modules.bp
@@ -5,7 +5,7 @@ rust_bindgen {
custom_bindgen: "sqlite3_bindgen_build",
wrapper_src: "wrapper.h",
source_stem: "bindgen",
- cflags: ["-I external/sqlite/dist"],
+ header_libs: ["libsqlite"],
defaults: ["sqlite-defaults"],
apex_available: [
"//apex_available:platform",