-
Notifications
You must be signed in to change notification settings - Fork 3
/
build-windows-sdl2.lisp
37 lines (31 loc) · 1.45 KB
/
build-windows-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
32
33
34
35
36
37
(ql:quickload :lem-sdl2)
(cffi:close-foreign-library 'async-process::async-process)
(cffi:close-foreign-library 'cffi::libffi)
(cffi:close-foreign-library 'cl+ssl/config::libcrypto)
(cffi:close-foreign-library 'cl+ssl/config::libssl)
(cffi:close-foreign-library 'sdl2::libsdl2)
(cffi:close-foreign-library 'sdl2-image::libsdl2-image)
(cffi:close-foreign-library 'sdl2-ttf::libsdl2-ttf)
(defun setup-foreign-library-directories ()
(setf cffi:*foreign-library-directories*
(list (lem:lem-relative-pathname "lib/")))
(cffi:load-foreign-library (lem:lem-relative-pathname "lib/libasyncprocess.dll"))
(cffi:load-foreign-library (lem:lem-relative-pathname "lib/libffi-8.dll"))
(cffi:load-foreign-library (lem:lem-relative-pathname "lib/libcrypto-1_1-x64.dll"))
(cffi:load-foreign-library (lem:lem-relative-pathname "lib/libssl-1_1-x64.dll"))
(cffi:load-foreign-library (lem:lem-relative-pathname "lib/SDL2.dll"))
(cffi:load-foreign-library (lem:lem-relative-pathname "lib/SDL2_image.dll"))
(cffi:load-foreign-library (lem:lem-relative-pathname "lib/SDL2_ttf.dll"))
)
(lem:copy-file-or-directory (asdf:system-relative-pathname :lem-sdl2 "resources/")
"windows/resources/")
(load "general.lisp")
(apply #'sb-ext:save-lisp-and-die
"windows/lem-internal.exe"
:toplevel 'launch
:executable t
:application-type :GUI
#+sb-core-compression
'(:compression -1)
#-sb-core-compression
'())