truth-table/build.lisp

30 lines
776 B
Common Lisp
Raw Normal View History

2024-09-04 03:14:57 -07:00
;; This file should be run as follows:
;; sbcl --load build.lisp --eval '(<BUILD FUNCTION>)'
;; where <BUILD FUNCTION> is either `cli' or `web'
2024-09-03 17:50:58 -07:00
2024-09-04 03:14:57 -07:00
#-sbcl (error "Only SBCL is supported right now")
2024-09-03 17:50:58 -07:00
2024-09-04 03:14:57 -07:00
(sb-ext:disable-debugger)
(require :asdf)
(defun cli ()
"Build the CLI application executable."
(asdf:load-system :truth-table/cli)
(require :truth-table/cli)
2024-09-03 17:50:58 -07:00
(sb-ext:save-lisp-and-die
"truth-table"
2024-09-04 03:14:57 -07:00
:executable t
2024-09-03 17:50:58 -07:00
:save-runtime-options t
2024-09-04 03:14:57 -07:00
:toplevel (intern "TOPLEVEL" :truth-table/cli)))
(defun web ()
"Build the web server executable."
(asdf:load-system :truth-table/web)
(require :truth-table/web)
(sb-ext:save-lisp-and-die
"truth-table-webserver"
:executable t
:save-runtime-options t
:toplevel (intern "TOPLEVEL" :truth-table/web)))