summaryrefslogtreecommitdiff
path: root/rva.asd
blob: b6b14d2383d74afcb404e043a9c493772e1666d8 (plain)
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
#.(unless (or #+asdf3.1 (version<= "3.1" (asdf-version)))
    (error "You need ASDF >= 3.1 to load this system correctly."))

(asdf:defsystem #:rva
  ;; :author ""
  ;; :license ""
  :version "1.0"
  :homepage "https://github.com/bdunahu/rva"
  :description "Assembler for the RISC-V[ECTOR] mini-ISA."
  :source-control (:git "git@github.com:bdunahu/rva.git")
  :depends-on (:uiop
               :clingon
	       :esrap)
  :components ((:module "src"
                :serial t
                :components ((:file "package")
                             (:file "util")
			     (:file "parse")
			     (:file "emit")
                             (:file "main"))))
  :long-description
  #.(uiop:read-file-string
     (uiop:subpathname *load-pathname* "README.md"))
  :in-order-to ((test-op (test-op "rva/tests")))
  :build-operation "program-op"
  :build-pathname "bin/rva"
  :entry-point "rva:main")

(asdf:defsystem #:rva/tests
  ;; :author ""
  ;; :license ""
  :description "rva's test suite"
  :depends-on (:rva
               :fiveam)
  :components ((:module "t"
                :serial t
                :components ((:file "package")
                             (:file "main")
                             (:file "util")
                             (:file "parse"))))
  :perform (test-op (o s) (uiop:symbol-call :rva-tests :test-rva)))

(defmethod asdf:perform ((o asdf:image-op) (c asdf:system))
  (uiop:dump-image (asdf:output-file o c)
                   :executable t
                   :compression t))