Update build script to compile library modules independently
This commit is contained in:
parent
f9719d087e
commit
e5221c948b
2 changed files with 30 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
||||||
*\~
|
*\~
|
||||||
|
TAGS
|
||||||
build-deps
|
build-deps
|
||||||
|
build-deps-bin
|
||||||
data/
|
data/
|
||||||
|
|
33
build.ss
33
build.ss
|
@ -1,9 +1,32 @@
|
||||||
#!/usr/bin/env gxi
|
#!/usr/bin/env gxi
|
||||||
|
|
||||||
(import :std/build-script)
|
(import :std/make)
|
||||||
|
|
||||||
(defbuild-script
|
(def lib-build-spec
|
||||||
'("uniplot/braille"
|
'("uniplot/braille"
|
||||||
"uniplot/lineplot"
|
"uniplot/lineplot"))
|
||||||
(static-exe: "uniplot"))
|
|
||||||
optimize: #t)
|
(def bin-build-spec
|
||||||
|
'((static-exe: "uniplot")))
|
||||||
|
|
||||||
|
(def srcdir
|
||||||
|
(path-normalize (path-directory (this-source-file))))
|
||||||
|
|
||||||
|
(def (main . args)
|
||||||
|
(match args
|
||||||
|
(["lib"]
|
||||||
|
(make srcdir: srcdir
|
||||||
|
optimize: #t
|
||||||
|
debug: 'src
|
||||||
|
static: #t
|
||||||
|
lib-build-spec))
|
||||||
|
(["bin"]
|
||||||
|
(make srcdir: srcdir
|
||||||
|
optimize: #t
|
||||||
|
debug: #f
|
||||||
|
static: #t
|
||||||
|
build-deps: "build-deps-bin"
|
||||||
|
bin-build-spec))
|
||||||
|
([]
|
||||||
|
(main "lib")
|
||||||
|
(main "bin"))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue