clean up unittests, but does not compile.
[CommonLispStat.git] / init.lisp
blob6445bfeacc43729ea5237de36c6263f1399d97c9
1 ;;; Basic initialization for LispStat
2 ;;; Time-stamp: <2007-06-25 19:58:14 ROSSIAN6>
3 ;;; Created: <2007-05-30 17:09:47 ROSSIAN6>
5 ;; Goal:
6 ;;
7 ;; Associate ASDF directory for loading.
8 ;; Make sure that we have initialized any locally defined global variables
9 ;; ensure appropriate tools are linked in for loading.
10 ;; i.e. if features don't exist, load from particular locations in
11 ;; this directory structure.
14 ;; What package should we be in? Contaminating cl-user is probably EVIL.
16 ;; Need to replace this with some form of self-referential structure.
18 ;; Add the critical paths to the ASDF facility and set up other
19 ;; things; currently this will not do the other setups.
21 (progn
22 (defvar *lispstat-home-dir* #p"/home/tony/sandbox/CLS.git/"
23 "Value considered \"home\" for our data")
25 (setf *lispstat-home-dir*
26 ;; #p"/cygdrive/c/local/sandbox/Lisp/CommonLispStat/"w
27 ;; #p"/home/tony/sandbox/CommonLispStat.git/"
28 #p"/home/tony/sandbox/CLS.git/")
30 (defmacro ls-dir (root-str)
31 `(pathname (concatenate 'string (namestring *lispstat-home-dir*) ,root-str)))
33 (defmacro ls-defdir (target-dir-var root-str)
34 `(defvar ,target-dir-var (ls-dir ,root-str)))
36 ;;(macroexpand '(ls-defdir *lispstat-asdf-dir* "ASDF"))
37 ;;(macroexpand-1 '(ls-defdir *lispstat-asdf-dir* "ASDF"))
38 ;;(macroexpand-1 '(ls-dir "ASDF"))
40 (ls-defdir *lispstat-asdf-dir* "ASDF/")
41 (ls-defdir *lispstat-data-dir* "data/")
42 (ls-defdir *lispstat-external-dir* "external/")
43 (ls-defdir *lispstat-examples-dir* "examples/")
45 ;; Load ASDF if it isn't loaded
46 #-asdf(load (pathname (concatenate 'string (namestring *lispstat-external-dir*) "asdf")))
48 ;; (pushnew #p"C:/Lisp/libs/" asdf-util:*source-dirs* :test #'equal)
49 (pushnew *lispstat-asdf-dir* asdf:*central-registry*))
51 (progn
52 ;; Load needed packages
54 (asdf:oos 'asdf:load-op :cffi) ;; FFI
55 (asdf:oos 'asdf:load-op :lift) ;; Unit Testing
57 ;; soon...
58 #+nil(asdf:oos 'asdf:load-op :clem) ;; matrixes
59 #+nil(asdf:oos 'asdf:load-op :clem-test)
60 #+nil(asdf:oos 'asdf:load-op :clem-benchmark)
62 ;; Constraint System
63 ;;(asdf:oos 'asdf:load-op :cells)
65 ;; Finally...
66 #+nil(asdf:oos 'asdf:load-op :lispstat)
69 #+nil(progn
70 (asdf:oos 'asdf:compile-op :cffi)
71 (asdf:oos 'asdf:compile-op :lisp-unit)
72 (asdf:oos 'asdf:compile-op :lift)
73 (asdf:oos 'asdf:compile-op :rclg)
74 (asdf:oos 'asdf:compile-op :cl-cairo2)
75 (asdf:oos 'asdf:load-op :celtk)
76 (asdf:oos 'asdf:compile-op :lispstat :force t)