1 ;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
4 Copyright 2006,2007 Greg Pfeil
6 Distributed under the MIT license (see LICENSE file)
9 (eval-when (:compile-toplevel :load-toplevel :execute)
11 (and allegro multiprocessing)
13 (and openmcl openmcl-native-threads)
19 (and digitool ccl-5.1)
22 (pushnew :thread-support *features*))
24 (defsystem :bordeaux-threads
25 :author "Greg Pfeil <greg@technomadic.org>"
27 :description "Bordeaux Threads makes writing portable multi-threaded apps simple."
28 :version (:read-file-form "version.sexp")
29 :depends-on (:alexandria
30 #+(and allegro (version>= 9)) (:require "smputil")
31 #+(and allegro (not (version>= 9))) (:require "process")
32 #+corman (:require "threads"))
33 :components ((:module "src"
37 (:file "bordeaux-threads")
38 (:file #+(and thread-support armedbear) "impl-abcl"
39 #+(and thread-support allegro) "impl-allegro"
40 #+(and thread-support clisp) "impl-clisp"
41 #+(and thread-support openmcl) "impl-clozure"
42 #+(and thread-support cmu) "impl-cmucl"
43 #+(and thread-support corman) "impl-corman"
44 #+(and thread-support ecl) "impl-ecl"
45 #+(and thread-support mkcl) "impl-mkcl"
46 #+(and thread-support lispworks) "impl-lispworks"
47 #+(and thread-support digitool) "impl-mcl"
48 #+(and thread-support sbcl) "impl-sbcl"
49 #+(and thread-support scl) "impl-scl"
50 #-thread-support "impl-null")
51 #+(and thread-support lispworks (not lispworks6))
52 (:file "impl-lispworks-condition-variables")
53 #+(and thread-support digitool)
54 (:file "condition-variables")
55 (:file "default-implementations")))))
57 (defsystem :bordeaux-threads/test
58 :author "Greg Pfeil <greg@technomadic.org>"
59 :description "Bordeaux Threads test suite."
61 :version (:read-file-form "version.sexp")
62 :depends-on (:bordeaux-threads :fiveam)
63 :components ((:module "test"
64 :components ((:file "bordeaux-threads-test")))))
66 (defmethod perform ((o test-op) (c (eql (find-system :bordeaux-threads))))
67 (load-system :bordeaux-threads/test :force '(:bordeaux-threads/test))
68 (uiop:symbol-call :5am :run! :bordeaux-threads))