summarylogtreecommitdiffstats
path: root/build-sdl2.lisp
blob: 3a344cad7299f264ae59dc7706f603d08bd53cf1 (plain)
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
(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 "/usr/share/lem/libasyncprocess.so")
  (cffi:load-foreign-library "libdecor-0.so")
  (cffi:load-foreign-library "libtiff.so")
  (cffi:load-foreign-library "libsamplerate.so")
  (cffi:load-foreign-library "libSDL2.so")
  (cffi:load-foreign-library "libSDL2_image.so")
  (cffi:load-foreign-library "libSDL2_ttf.so"))

(load (merge-pathnames "general.lisp" *load-pathname*))

(setf lem-sdl2/resource::*resource-directory* #p"/usr/share/lem/")

(apply #'sb-ext:save-lisp-and-die
       "lem-gui"
       :toplevel 'launch
       :executable t
       #+sb-core-compression
       '(:compression -1)
       #-sb-core-compression
       '())