Add build script for the standard package manager
This commit is contained in:
parent
971edb23ad
commit
fda72624d1
4 changed files with 41 additions and 2 deletions
23
build.ss
Executable file
23
build.ss
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env gxi
|
||||
|
||||
(import :std/make)
|
||||
|
||||
;; the build specification
|
||||
(def build-spec
|
||||
'((exe: "sncf")))
|
||||
|
||||
;; the source directory anchor
|
||||
(def srcdir
|
||||
(path-normalize (path-directory (this-source-file))))
|
||||
|
||||
;; the main function of the script
|
||||
(def (main . args)
|
||||
(match args
|
||||
;; this is the default (and, here, only) action, which builds the project
|
||||
([]
|
||||
(make srcdir: srcdir ; source anchor
|
||||
;;bindir: srcdir ; where to place executables; default is GERBIL_PATH/bin
|
||||
optimize: #t ; enable optimizations
|
||||
debug: #f ; enable debugger introspection
|
||||
static: #t ; don't generate static compilation artifacts
|
||||
build-spec)))) ; the actual build specification
|
Loading…
Add table
Add a link
Reference in a new issue