Update on strategy.
[CommonLispStat.git] / init.lisp
blob04f0b57cd7ea330f2ad5f6e47155292995ea96a7
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
23 (defvar *lispstat-home-dir*
24 ;; #p"/cygdrive/c/local/sandbox/Lisp/CommonLispStat/"w
25 #p"/home/tony/sandbox/CommonLispStat.git/"
26 "Value considered \"home\" for our data")
29 (defmacro ls-dir (root-str)
30 `(pathname (concatenate 'string (namestring *lispstat-home-dir*) ,root-str)))
32 (defmacro ls-defdir (target-dir-var root-str)
33 `(defvar ,target-dir-var (ls-dir ,root-str)))
35 ;;(macroexpand '(ls-defdir *lispstat-asdf-dir* "ASDF"))
36 ;;(macroexpand-1 '(ls-defdir *lispstat-asdf-dir* "ASDF"))
37 ;;(macroexpand-1 '(ls-dir "ASDF"))
39 (ls-defdir *lispstat-asdf-dir* "ASDF/")
40 (ls-defdir *lispstat-data-dir* "data/")
41 (ls-defdir *lispstat-external-dir* "external/")
42 (ls-defdir *lispstat-examples-dir* "examples/")
44 ;; Load ASDF if it isn't loaded
45 #-asdf(load (pathname (concatenate 'string (namestring *lispstat-external-dir*) "asdf")))
47 ;; (pushnew #p"C:/Lisp/libs/" asdf-util:*source-dirs* :test #'equal)
48 (pushnew *lispstat-asdf-dir* asdf:*central-registry*))
50 ;; Load the packages that we will need.
51 (progn
53 ;; FFI
54 (asdf:oos 'asdf:load-op :cffi)
56 ;; Unit Testing
57 (asdf:oos 'asdf:load-op :lift)
59 ;;(asdf:oos 'asdf:load-op :lisp-unit)
61 (asdf:oos 'asdf:load-op :clem)
62 #+nil(asdf:oos 'asdf:load-op :clem-test)
63 #+nil(asdf:oos 'asdf:load-op :clem-benchmark)
65 ;; Constraint System
66 ;;(asdf:oos 'asdf:load-op :cells)
68 ;; Finally...
69 #+nil(asdf:oos 'asdf:load-op :lispstat)
72 #+nil(progn
73 (asdf:oos 'asdf:compile-op :cffi)
74 (asdf:oos 'asdf:compile-op :lisp-unit)
75 (asdf:oos 'asdf:compile-op :lift)
76 (asdf:oos 'asdf:compile-op :rclg)
77 (asdf:oos 'asdf:compile-op :cl-cairo2)
78 (asdf:oos 'asdf:load-op :celtk))