-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild-linux-sdl2.lisp
31 lines (26 loc) · 1.3 KB
/
build-linux-sdl2.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(ql:quickload :lem-sdl2)
(cffi:close-foreign-library 'async-process::async-process)
(cffi:close-foreign-library 'sdl2::libsdl2)
(cffi:close-foreign-library 'sdl2-ttf::libsdl2-ttf)
(cffi:close-foreign-library 'sdl2-image::libsdl2-image)
(defun setup-foreign-library-directories ()
(setf cffi:*foreign-library-directories* '())
(cffi:load-foreign-library (lem:lem-relative-pathname "lib/libasyncprocess.so"))
(cffi:load-foreign-library (lem:lem-relative-pathname "lib/libdecor-0.so.0"))
(cffi:load-foreign-library (lem:lem-relative-pathname "lib/libLerc.so.4"))
(cffi:load-foreign-library (lem:lem-relative-pathname "lib/libtiff.so.6"))
(cffi:load-foreign-library (lem:lem-relative-pathname "lib/libsamplerate.so.0"))
(cffi:load-foreign-library (lem:lem-relative-pathname "lib/libSDL2-2.0.so.0"))
(cffi:load-foreign-library (lem:lem-relative-pathname "lib/libSDL2_image-2.0.so.0"))
(cffi:load-foreign-library (lem:lem-relative-pathname "lib/libSDL2_ttf-2.0.so.0")))
(lem:copy-file-or-directory (asdf:system-relative-pathname :lem-sdl2 "resources/")
"linux/resources/")
(load "general.lisp")
(apply #'sb-ext:save-lisp-and-die
"linux/lem"
:toplevel 'launch
:executable t
#+sb-core-compression
'(:compression -1)
#-sb-core-compression
'())