forked from wesen/cl-mill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lisp
27 lines (24 loc) · 1009 Bytes
/
init.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
(in-package :gcode)
(defvar *shared-library-directories*
`( "/usr/local/lib/"
"/usr/lib/"
"/usr/lib/cl-gd/"
"/cygwin/usr/local/lib/"
"/cygwin/usr/lib/")
"A list of directories where UFFI tries to find libpotrace")
(defvar *shared-library-types* '("so" "dll" "dylib")
"The list of types a shared library can have. Used when looking for
libpotrace")
(defvar *shared-library-drive-letters* '("C" "D" "E" "F" "G")
"The list of drive letters \(used by Wintendo) used when looking for
libpotrace")
(defun load-potrace (&key force-load)
(let ((filename (find-foreign-library "pot-glue"
*shared-library-directories*
:types *shared-library-types*
:drive-letters *shared-library-drive-letters*)))
(load-foreign-library filename
:module "potrace"
:force-load force-load
:supporting-libraries '("potrace"))))
#+nil(load-potrace)