-
Notifications
You must be signed in to change notification settings - Fork 0
/
chil.asd
50 lines (47 loc) · 1.78 KB
/
chil.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
(defsystem :chil
:author "Karl Hallsby <[email protected]>"
:description "Constructing Hardware In Lisp"
:pathname #p"source/"
:components ((:file "chil")
(:module "Module"
:pathname ""
:depends-on ("chil")
:components ((:file "module")))
(:module "Backends"
:pathname #p"backends/"
:depends-on ("Module")
:components ((:file "base")
(:file "verilog")
(:file "vhdl")
(:file "system-verilog")))
(:module "Utils"
:pathname ""
:depends-on ()
:components ((:file "utils")))
(:module "Types"
:pathname "types/"
:depends-on ("Utils")
:components ((:file "data")
(:file "uint"))))
:depends-on (:log4cl :cl-ppcre :trivia)
:in-order-to ((test-op (test-op "chil/tests"))))
(defsystem :chil/tests
:depends-on (:chil :alexandria :lisp-unit2 :check-it)
:pathname #p"tests/"
:components ((:file "example")
(:file "write-verilog")
(:file "utils")))
(defmethod asdf:perform ((o asdf:test-op) (c (eql (find-system :chil/tests))))
;; Binding `*package*' to package-under-test makes for more reproducible tests.
(let ((*package* (find-package :chil/tests)))
(uiop:symbol-call
:lisp-unit2 :run-tests
:package *package*
:name :chil
:run-contexts (find-symbol "WITH-SUMMARY-CONTEXT" :lisp-unit2))))
(defsystem :chil/sim
:author "Karl Hallsby <[email protected]>"
:description "Chil Snapshotting Digital Simulator"
:pathname #p"source/sim/"
:components ((:file "sim"))
:depends-on (:log4cl))