Export matrix stuff properly (?).
[CommonLispStat.git] / init.lisp
blob2e212aebdfc2c44254b5e75a4d208142a5844bd1
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 (asdf:oos 'asdf:load-op :clem) ;; matrixes
58 #+nil(asdf:oos 'asdf:load-op :clem-test)
59 #+nil(asdf:oos 'asdf:load-op :clem-benchmark)
61 ;; Constraint System
62 ;;(asdf:oos 'asdf:load-op :cells)
64 ;; Finally...
65 #+nil(asdf:oos 'asdf:load-op :lispstat)
68 #+nil(progn
69 (asdf:oos 'asdf:compile-op :cffi)
70 (asdf:oos 'asdf:compile-op :lisp-unit)
71 (asdf:oos 'asdf:compile-op :lift)
72 (asdf:oos 'asdf:compile-op :rclg)
73 (asdf:oos 'asdf:compile-op :cl-cairo2)
74 (asdf:oos 'asdf:load-op :celtk)
75 (asdf:oos 'asdf:compile-op :lispstat :force t)