support building with chicken-install too
Change-Id: I47510ca9d5892f1def55ab14f610ba796a6a6964
This commit is contained in:
parent
933b942a62
commit
56b114ef2c
8 changed files with 55 additions and 10 deletions
|
|
@ -5,9 +5,16 @@
|
|||
(component-options
|
||||
(csc-options "-X" "r7rs" "-R" "r7rs" "-optimize-level" "3" "-C" "-D_GNU_SOURCE"))
|
||||
(components
|
||||
(generated-source-file stock_overrides.h
|
||||
; Also generates stub man_rust.h, man_go.h, man_ninja.go
|
||||
(custom-build "generate-files")
|
||||
(source-dependencies "overrides.json"))
|
||||
(program zilch-cli-go
|
||||
(component-dependencies stock_overrides.h)
|
||||
(source "zilch-go.scm"))
|
||||
(program zilch-cli-rust
|
||||
(component-dependencies stock_overrides.h)
|
||||
(source "zilch-rust.scm"))
|
||||
(program zilch-cli-ninja
|
||||
(component-dependencies stock_overrides.h)
|
||||
(source "zilch-ninja.scm"))))
|
||||
|
|
|
|||
7
cli/generate-files
Executable file
7
cli/generate-files
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
(cat ./overrides.json; printf '\0') | xxd -i -n stock_overrides > stock_overrides.h
|
||||
(printf '(no info)\0') | xxd -i -n man_rust > man_rust.h
|
||||
(printf '(no info)\0') | xxd -i -n man_go > man_go.h
|
||||
(printf '(no info)\0') | xxd -i -n man_ninja > man_ninja.h
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue