oct.asd 3.48 KB
Newer Older
Raymond Toy's avatar
Raymond Toy committed
1
2
;;;; -*- Mode: lisp -*-
;;;;
3
;;;; Copyright (c) 2007, 2011 Raymond Toy
Raymond Toy's avatar
Raymond Toy committed
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
;;;;
;;;; Permission is hereby granted, free of charge, to any person
;;;; obtaining a copy of this software and associated documentation
;;;; files (the "Software"), to deal in the Software without
;;;; restriction, including without limitation the rights to use,
;;;; copy, modify, merge, publish, distribute, sublicense, and/or sell
;;;; copies of the Software, and to permit persons to whom the
;;;; Software is furnished to do so, subject to the following
;;;; conditions:
;;;;
;;;; The above copyright notice and this permission notice shall be
;;;; included in all copies or substantial portions of the Software.
;;;;
;;;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
;;;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
;;;; OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
;;;; NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
;;;; HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
;;;; WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
;;;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
;;;; OTHER DEALINGS IN THE SOFTWARE.

;;; This is the asdf definition for oct.  I don't normally use this,
;;; so it might be out of date.  Use at your own risk.

(defpackage #:oct-system
30
  (:use #:cl #:asdf))
Raymond Toy's avatar
Raymond Toy committed
31
32
33
34
35
36

(in-package #:oct-system)

(asdf:defsystem oct
  :description "A portable implementation of quad-double arithmetic.  See <http://www.common-lisp.net/project/oct>."
  :author "Raymond Toy"
Raymond Toy's avatar
Raymond Toy committed
37
  :maintainer "See <http://www.common-lisp.net/project/oct>"
Raymond Toy's avatar
Raymond Toy committed
38
  :licence "MIT"
Raymond Toy's avatar
Raymond Toy committed
39
  :version "2013.11.26"			; Just use the date
Raymond Toy's avatar
Raymond Toy committed
40
41
42
43
  :components
  ((:file "qd-package")
   (:file "qd-rep" :depends-on ("qd-package"))
   #-cmu
Raymond Toy's avatar
Raymond Toy committed
44
   (:file "qd-dd" :depends-on ("qd-package" "qd-rep"))
Raymond Toy's avatar
Raymond Toy committed
45
   (:file "qd"
Raymond Toy's avatar
Raymond Toy committed
46
	  :depends-on ("qd-rep" #-cmu "qd-dd"))
Raymond Toy's avatar
Raymond Toy committed
47
48
49
   (:file "qd-io"
	  :depends-on ("qd"))
   (:file "qd-const"
50
51
52
53
54
	  :depends-on ("qd-io")
	  :around-compile (lambda (thunk)
			    ;; Just byte-compile these on cmucl since these are just constants
			    (let (#+nil (ext:*byte-compile-default* t))
			      (funcall thunk))))
Raymond Toy's avatar
Raymond Toy committed
55
56
57
58
   (:file "qd-fun"
	  :depends-on ("qd" "qd-const"))
   (:file "qd-class"
	  :depends-on ("qd-fun"))
59
60
61
62
63
   (:file "qd-const2" :depends-on ("qd-class" "qd-const")
	  :around-compile (lambda (thunk)
			    ;; Just byte-compile these on cmucl since these are just constants
			    (let (#+nil (ext:*byte-compile-default* t))
			      (funcall thunk))))
Raymond Toy's avatar
Raymond Toy committed
64
65
   (:file "qd-methods"
	  :depends-on ("qd-class"))
66
   (:file "qd-reader"
Raymond Toy's avatar
Raymond Toy committed
67
	  :depends-on ("qd-methods"))
68
69
   (:file "qd-format"
	  :depends-on ("qd-methods" "qd-reader"))
Raymond Toy's avatar
Raymond Toy committed
70
   (:file "qd-complex"
71
	  :depends-on ("qd-methods" "qd-reader"))
72
   (:file "qd-elliptic"
73
	  :depends-on ("qd-methods" "qd-reader"))
74
75
   (:file "qd-theta"
	  :depends-on ("qd-methods" "qd-reader"))
76
   (:file "qd-gamma"
Raymond Toy's avatar
Raymond Toy committed
77
	  :depends-on ("qd-complex" "qd-methods" "qd-reader"))
78
79
   (:file "qd-bessel"
	  :depends-on ("qd-methods"))))
80
81


82
(defmethod perform ((op test-op) (c (eql (asdf:find-system :oct))))
83
84
  (oos 'test-op 'oct-tests))

Symbolics's avatar
Symbolics committed
85
(asdf:defsystem oct/tests
86
  :depends-on (oct)
Raymond Toy's avatar
Raymond Toy committed
87
  :version "2013.11.26"			; Just use the date
88
  :in-order-to ((compile-op (load-op :rt))
89
		(load-op (load-op :rt))
90
91
92
93
94
95
		(test-op (load-op :rt :oct)))
  :components
  ((:file "qd-extra")
   (:file "qd-test")
   (:file "rt-tests")))

Symbolics's avatar
Symbolics committed
96
(defmethod perform ((op test-op) (c (eql (asdf:find-system :oct/tests))))
97
  (or (funcall (intern "DO-TESTS" (find-package "RT")))
98
      (error "TEST-OP failed for OCT-TESTS")))