Include sqlite3 headers from libsqlite3-sys bundled sqlite3 for sqlean rather than relying on system headers.

This commit is contained in:
Sebastian Jeltsch
2024-12-25 22:34:11 +01:00
parent 44e0bb6f84
commit 890fa37b2e
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ jobs:
- name: Install Dependencies
run: |
sudo apt-get update && \
sudo apt-get install -y --no-install-recommends curl libssl-dev pkg-config libclang-dev protobuf-compiler libprotobuf-dev libsqlite3-dev zip
sudo apt-get install -y --no-install-recommends curl libssl-dev pkg-config libclang-dev protobuf-compiler libprotobuf-dev zip
- uses: pnpm/action-setup@v4
with:
+1 -1
View File
@@ -18,7 +18,7 @@ jobs:
- name: Install Dependencies
run: |
sudo apt-get update && \
sudo apt-get install -y --no-install-recommends curl libssl-dev pkg-config libclang-dev protobuf-compiler libprotobuf-dev libsqlite3-dev
sudo apt-get install -y --no-install-recommends curl libssl-dev pkg-config libclang-dev protobuf-compiler libprotobuf-dev
- uses: pnpm/action-setup@v4
with:
version: 9
+3
View File
@@ -55,9 +55,12 @@ fn build_object() {
// Disable SQLEAN's define-eval feature
.flag("-DDISABLE_DEFINE_EVAL");
let sqlite3_include_dir = env::var("DEP_SQLITE3_INCLUDE").expect("Set by libsqlite3-sys");
cfg
.warnings(false)
.include(PATH)
.include(sqlite3_include_dir)
.files(files.iter().map(|f| format!("{PATH}/{f}")))
.compile("define");