-
Notifications
You must be signed in to change notification settings - Fork 90
/
postmodern.asd
76 lines (70 loc) · 3.83 KB
/
postmodern.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
;;;; -*- Mode: LISP; Syntax: Ansi-Common-Lisp; Base: 10; -*-
(defpackage :postmodern-system
(:use :common-lisp :asdf)
(:export :*threads*))
(in-package :postmodern-system)
;; Change this to manually turn threading support on or off.
(eval-when (:compile-toplevel :load-toplevel :execute)
#+(or allegro armedbear clasp cmu corman (and digitool ccl-5.1)
ecl lispworks openmcl sbcl genera)
(pushnew :postmodern-thread-safe *features*)
#+(or allegro clasp clisp ecl lispworks mcl openmcl cmu sbcl armedbear)
(pushnew :postmodern-use-mop *features*))
(defsystem "postmodern"
:description "PostgreSQL programming API"
:author "Marijn Haverbeke <[email protected]>"
:maintainer "Sabra Crolleton <[email protected]>"
:homepage "https://github.com/marijnh/Postmodern"
:license "zlib"
:version "1.33.11"
:depends-on ("alexandria"
"cl-postgres"
"s-sql"
"global-vars"
"split-sequence"
"uiop"
(:feature :postmodern-use-mop "closer-mop")
(:feature :postmodern-thread-safe "bordeaux-threads"))
:components
((:module "postmodern"
:components ((:file "package")
(:file "config")
(:file "connect" :depends-on ("package" "config"))
(:file "json-encoder" :depends-on ("package" "config"))
(:file "query" :depends-on ("connect" "json-encoder" "config"))
(:file "prepare" :depends-on ("query" "config"))
(:file "roles" :depends-on ("query" "config"))
(:file "util" :depends-on ("query" "roles" "config"))
(:file "transaction" :depends-on ("query" "config"))
(:file "namespace" :depends-on ("query" "config"))
(:file "execute-file" :depends-on ("query" "config"))
(:file "table" :depends-on ("util" "transaction" "query" "config")
:if-feature :postmodern-use-mop)
(:file "deftable" :depends-on
("query" (:feature :postmodern-use-mop "table" "config"))))))
:in-order-to ((test-op (test-op "postmodern/tests"))))
(defsystem "postmodern/tests"
:depends-on ("postmodern" "fiveam" "simple-date" "simple-date/postgres-glue"
"cl-postgres/tests" "s-sql/tests" "local-time"
"cl-postgres+local-time")
:components
((:module "postmodern/tests"
:components ((:file "test-package")
(:file "tests")
(:file "test-prepared-statements" :depends-on ("test-package" "tests")
:if-feature :postmodern-use-mop)
(:file "test-binary-prepared-statements" :depends-on ("test-package" "tests")
:if-feature :postmodern-use-mop)
(:file "test-binary-parameters" :depends-on ("test-package" "tests")
:if-feature :postmodern-use-mop)
(:file "test-return-types" :depends-on ("tests" "test-package"))
(:file "test-table-info" :depends-on ("test-package" "tests"))
(:file "test-return-types-timestamps" :depends-on ("test-package" "tests"))
(:file "test-transactions" :depends-on ("test-package" "tests"))
(:file "test-roles" :depends-on ("test-package" "tests"))
#-abcl (:file "test-dao" :depends-on ("test-package" "tests"))
#+abcl (:file "abcl-test-dao" :depends-on ("test-package" "tests"))
(:file "test-execute-file" :depends-on ("test-package" "tests")))))
:perform (test-op (o c)
(uiop:symbol-call :cl-postgres-tests '#:prompt-connection)
(uiop:symbol-call :fiveam '#:run! :postmodern)))