Wrap more stuff, move some things around.
[cl-llvm.git] / cl-llvm.asd
blob8d7b9ee0f9fd1b30b2d6f8ffcfc8742d518d1205
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 "transforms-ipo")
20                                        (:file "llvm-extras")))
21                  (:file "stuff")
22                  (:file "packages-post")))))
24 ;; HACK, how do you really do this? Presumably there's a way with ASDF
25 ;; to note that a shared lib should be loaded?
27 (require :cffi)
29 (pushnew (merge-pathnames "src/" (make-pathname :name nil  :type nil :defaults *load-truename*))
30          cffi:*foreign-library-directories*)
32 (cffi:define-foreign-library cl-llvm
33     (t (:or (:default "cl-llvm") "cl-llvm.so")))
35 (cffi:use-foreign-library cl-llvm)