Remove hard-coded sqlite path from rust Android.bp
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
diff --git a/Android.bp b/Android.bp
index dc4fbf9..c30bf30 100644
--- a/Android.bp
+++ b/Android.bp
@@ -92,7 +92,7 @@
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 @@
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",