summaryrefslogtreecommitdiff
path: root/rva.asd
blob: 65a426253f13246e980159b876e96dbf149db92a (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
#.(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 "0.1"
  :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)
  :components ((:module "src"
                :serial t
                :components ((:file "package")
                             (:file "util")
                             (: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"))))
  :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))