use complete forms to initialize environment
[CommonLispStat.git] / init.lisp
blobbcae7a5aa12361dd9eca22170aefddde37a01d87
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/")
43 ;; Load ASDF if it isn't loaded
44 #-asdf(load (pathname (concatenate 'string (namestring *lispstat-external-dir*) "asdf")))
46 ;; (pushnew #p"C:/Lisp/libs/" asdf-util:*source-dirs* :test #'equal)
47 (pushnew *lispstat-asdf-dir* asdf:*central-registry*))
49 ;; Load the packages that we will need.
50 (progn
52 ;; FFI
53 (asdf:oos 'asdf:load-op :cffi)
55 ;; Unit Testing
56 (asdf:oos 'asdf:load-op :lift)
58 ;;(asdf:oos 'asdf:load-op :lisp-unit)
60 (asdf:oos 'asdf:load-op :clem)
61 #+nil(asdf:oos 'asdf:load-op :clem-test)
62 #+nil(asdf:oos 'asdf:load-op :clem-benchmark)
64 ;; Constraint System
65 ;;(asdf:oos 'asdf:load-op :cells)
67 ;; Finally...
68 #+nil(asdf:oos 'asdf:load-op :lispstat)
71 #+nil(progn
72 (asdf:oos 'asdf:compile-op :cffi)
73 (asdf:oos 'asdf:compile-op :lisp-unit)
74 (asdf:oos 'asdf:compile-op :lift)
75 (asdf:oos 'asdf:compile-op :rclg)
76 (asdf:oos 'asdf:compile-op :cl-cairo2)
77 (asdf:oos 'asdf:load-op :celtk))