-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostmodern-async.asd
46 lines (41 loc) · 2.13 KB
/
postmodern-async.asd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
(defpackage :postmodern-async-system
(:use :common-lisp :asdf)
(:export :*threads*))
(in-package :postmodern-async-system)
;; Change this to manually turn threading support on or off.
(eval-when (:compile-toplevel :load-toplevel :execute)
#+(or allegro armedbear cmu corman (and digitool ccl-5.1)
ecl lispworks openmcl sbcl)
(pushnew :postmodern-async-thread-safe *features*)
#+(or allegro clisp ecl lispworks mcl openmcl cmu sbcl)
(pushnew :postmodern-async-use-mop *features*))
(defsystem :postmodern-async
:description "PosgreSQL programming API"
:depends-on (:cl-postgres-async :s-sql #+postmodern-async-use-mop :closer-mop
#+postmodern-async-thread-safe :bordeaux-threads)
:components
((:module :postmodern-async
:components ((:file "package")
(:file "connect" :depends-on ("package"))
(:file "query" :depends-on ("connect"))
(:file "prepare" :depends-on ("query"))
(:file "util" :depends-on ("query"))
(:file "transaction" :depends-on ("query"))
(:file "namespace" :depends-on ("query"))
#+postmodern-async-use-mop
(:file "table" :depends-on ("util" "transaction"))
(:file "deftable" :depends-on
("query" #+postmodern-async-use-mop "table"))
(:file "async" :depends-on ("util" "transaction"))))))
(defsystem :postmodern-async-tests
:depends-on (:postmodern :eos :simple-date :simple-date-postgres-glue)
:components
((:module :postmodern
:components ((:file "tests")))))
(defmethod perform ((op asdf:test-op) (system (eql (find-system :postmodern-async))))
(asdf:oos 'asdf:load-op :postmodern-async)
(asdf:oos 'asdf:load-op :cl-postgres-async-tests)
(asdf:oos 'asdf:load-op :postmodern-async-tests)
(funcall (intern (string :prompt-connection) (string :cl-postgres-async-tests))
(eval (intern (string :*test-connection*) (string :postmodern-async-tests))))
(funcall (intern (string :run!) (string :Eos)) :postmodern-async))