diff options
author | Lee Shombert <shombert@google.com> | 2024-03-08 16:46:17 -0800 |
---|---|---|
committer | Lee Shombert <shombert@google.com> | 2024-03-08 16:46:17 -0800 |
commit | bbdc4c407b4454b6e78184fa52c28fae735f8a93 (patch) | |
tree | ae4a6a1e7a3c4d21c9fbbe09a3481accea574597 | |
parent | a7e92db29f2d4e9a5453face5f7cf18831cabad3 (diff) | |
download | libsqlite3-sys-bbdc4c407b4454b6e78184fa52c28fae735f8a93.tar.gz |
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
-rw-r--r-- | Android.bp | 2 | ||||
-rw-r--r-- | bindgen_modules.bp | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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", |