Menu

[r760]: / trunk / lispbuilder-sdl / cffi / library.lisp  Maximize  Restore  History

Download this file

25 lines (19 with data), 709 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
;;; -*- lisp -*-
(in-package #:lispbuilder-sdl-cffi)
#+win32(eval-when (:compile-toplevel :load-toplevel :execute)
(pushnew (merge-pathnames "../bin/" (directory-namestring (or *load-truename* *default-pathname-defaults*)))
cffi:*foreign-library-directories*
:test #'equal))
;; This is where FINK installs SDL.
#+darwin (pushnew #P"/sw/lib/" cffi:*foreign-library-directories*
:test #'equal)
(cffi:define-foreign-library sdl
(:darwin (:or (:framework "SDL")
(:default "libSDL")))
(:windows "SDL.dll")
(:unix (:or "libSDL-1.2.so.0.7.2"
"libSDL-1.2.so.0"
"libSDL-1.2.so"
"libSDL.so"
"libSDL")))
(cffi:use-foreign-library sdl)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.