Update example so it works again.
[cl-llvm.git] / cl-llvm.asd
blobc385548d4c1ce7a2d7d1761c031478e00f00b669
1 ;; -*- Lisp -*-
3 (defsystem :cl-llvm
4   :author "James Y Knight"
5   :depends-on (:cffi)
6   :version "0.1"
7   :components
8   ((:module "src"
9     :serial t
10     :components ((:file "packages")
11                  (:file "load-c-lib")
12                  (:module "generated"
13                           :serial t
14                           :components ((:file "core")
15                                        (:file "analysis")
16                                        (:file "target")
17                                        (:file "execution-engine")
18                                        (:file "transforms-scalar")))
19                  (:file "stuff")
20                  (:file "packages-post")))))
22 ;; HACK, how do you really do this? Presumably there's a way with ASDF
23 ;; to note that a shared lib should be loaded?
25 (require :cffi)
27 (pushnew (merge-pathnames "src/" (make-pathname :name nil  :type nil :defaults *load-truename*))
28          cffi:*foreign-library-directories*)
30 (cffi:define-foreign-library cl-llvm
31     (t (:or (:default "cl-llvm") "cl-llvm.so")))
33 (cffi:use-foreign-library cl-llvm)