Commit4066b2d7Recorded20 Apr 2026Repositorysigil-app

v0.8.2: drop hardcoded sigil-lib include paths, rely on with-sigil-c-flags

Message

Dropped the hardcoded ../sigil/packages/sigil-lib/include and ../sigil/packages/sigil-lib/src entries from the build task's compile-c-sources include-dirs. Those paths only resolve in the sibling-checkout dev layout — they fail when sigil-app is consumed via sigil deps install (the paths don't exist in the deps-fetch layout).

sigil 0.13.0 extended with-sigil-c-flags to auto-inject the sigil-lib include paths from build context, so wrapping compile-c-sources' flags with with-sigil-c-flags makes sigil-lib reachable regardless of the host layout.

Requires sigil-stdlib ^0.13.0 (bumped from ^0.9.0 to match with-sigil-c-flags extension availability).

Changed
 package.sgl | 15 ++++++---------
 sigil.lock  |  7 +++----
 2 files changed, 9 insertions(+), 13 deletions(-)
Diff
package.sglmodified
@@ -5,7 +5,7 @@
5
6
(package
7
name: "sigil-app"
8
version: "0.8.1"
+8
version: "0.8.2"
9
description: "Application framework for Sigil (windowing, input, lifecycle)"
10
url: "https://codeberg.org/sigil/sigil-app"
11
license: "BSD-3-Clause"
@@ -24,7 +24,7 @@
24
optimize: 2))
25
26
dependencies: (list
27
(from-git url: "codeberg:sigil/sigil" package: "sigil-stdlib" version: "^0.9.0"))
+27
(from-git url: "codeberg:sigil/sigil" package: "sigil-stdlib" version: "^0.13.0"))
28
29
libraries: (list
30
(library
@@ -45,13 +45,10 @@
45
steps: (list
46
(compile-c-sources
47
sources: '("src/c/sokol-app.c" "src/c/app.c")
48
include-dirs: '("../sigil/packages/sigil-lib/include"
49
"../sigil/packages/sigil-lib/src"
50
"vendor/sokol"
51
"src/c")
52
flags: '("-std=c99" "-D_GNU_SOURCE"
53
"-DSOKOL_NO_ENTRY" "-DSOKOL_GLCORE"
54
"-Wno-unused-parameter"))
+48
include-dirs: '("vendor/sokol" "src/c")
+49
flags: (with-sigil-c-flags '("-std=c99" "-D_GNU_SOURCE"
+50
"-DSOKOL_NO_ENTRY" "-DSOKOL_GLCORE"
+51
"-Wno-unused-parameter")))
52
(create-static-library name: "sigil-app")
53
(compile-sigil-modules sources: "src/**/*.sgl"
54
output-dir: (config-output-subdir "lib"))))))
sigil.lockmodified
@@ -2,8 +2,7 @@
2
(lock
3
(package name: "sigil-stdlib"
4
url: "codeberg:sigil/sigil"
5
ref: "^0.9.0"
6
sha: "962b7e2788e982264792032d3ba31ed3c237334e"
7
package-selector: "sigil-stdlib"
8
version: "0.9.1")
+5
ref: "^0.13.0"
+6
sha: "2e95b0343b976057a7655b41f08f0930d6abb628"
+7
package-selector: "sigil-stdlib")
8
)