1;;;; -*- Mode: lisp; indent-tabs-mode: nil -*-
2;;;
3;;; cffi.asd --- ASDF system definition for CFFI.
4;;;
5;;; Copyright (C) 2005-2006, James Bielman  <jamesjb@jamesjb.com>
6;;; Copyright (C) 2005-2010, Luis Oliveira  <loliveira@common-lisp.net>
7;;;
8;;; Permission is hereby granted, free of charge, to any person
9;;; obtaining a copy of this software and associated documentation
10;;; files (the "Software"), to deal in the Software without
11;;; restriction, including without limitation the rights to use, copy,
12;;; modify, merge, publish, distribute, sublicense, and/or sell copies
13;;; of the Software, and to permit persons to whom the Software is
14;;; furnished to do so, subject to the following conditions:
15;;;
16;;; The above copyright notice and this permission notice shall be
17;;; included in all copies or substantial portions of the Software.
18;;;
19;;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20;;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21;;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22;;; NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
23;;; HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
24;;; WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25;;; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26;;; DEALINGS IN THE SOFTWARE.
27;;;
28
29(in-package :asdf)
30
31#-(or openmcl mcl sbcl cmu scl clisp lispworks ecl allegro cormanlisp abcl mkcl)
32(error "Sorry, this Lisp is not yet supported.  Patches welcome!")
33
34(defsystem :cffi
35  :version "0.16.1"
36  :description "The Common Foreign Function Interface"
37  :author "James Bielman  <jamesjb@jamesjb.com>"
38  :maintainer "Luis Oliveira  <loliveira@common-lisp.net>"
39  :licence "MIT"
40  :depends-on (:uiop :alexandria :trivial-features :babel)
41  :components
42  ((:module "src"
43    :serial t
44    :components
45    (#+openmcl    (:file "cffi-openmcl")
46     #+mcl        (:file "cffi-mcl")
47     #+sbcl       (:file "cffi-sbcl")
48     #+cmu        (:file "cffi-cmucl")
49     #+scl        (:file "cffi-scl")
50     #+clisp      (:file "cffi-clisp")
51     #+lispworks  (:file "cffi-lispworks")
52     #+ecl        (:file "cffi-ecl")
53     #+allegro    (:file "cffi-allegro")
54     #+cormanlisp (:file "cffi-corman")
55     #+abcl       (:file "cffi-abcl")
56     #+mkcl       (:file "cffi-mkcl")
57     (:file "package")
58     (:file "utils")
59     (:file "libraries")
60     (:file "early-types")
61     (:file "types")
62     (:file "enum")
63     (:file "strings")
64     (:file "structures")
65     (:file "functions")
66     (:file "foreign-vars")
67     (:file "features")))))
68
69(defmethod operation-done-p ((o test-op) (c (eql (find-system :cffi))))
70  nil)
71
72(defmethod perform ((o test-op) (c (eql (find-system :cffi))))
73  (operate 'asdf:load-op :cffi-tests)
74  (operate 'asdf:test-op :cffi-tests))
75
76;; vim: ft=lisp et
77