asteroid/build-executable.lisp

22 lines
601 B
Common Lisp
Executable File

;; #!/usr/local/bin/sbcl --script
;; -*-lisp-*-
;; we require quicklisp to load our transitive dependencies.
(load "~/quicklisp/setup.lisp")
;; Build script for creating asteroid executable using save-lisp-and-die
;; ASDF will automatically find the project via source-registry.conf
;; Load the system
(ql:quickload :asteroid)
;; Define the main function for the executable
(defun main ()
(asteroid:-main))
;; Save the executable
(sb-ext:save-lisp-and-die "asteroid"
:toplevel #'main
:executable t
:compression 22)