More work on defproto2 fixes.
[CommonLispStat.git] / init.lisp
blob1a48dc353376485b8601aee89a0c9eeec156c9bc
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 ;; (setf *my-base-directory*
15 ;; #p"/home/tony/sandbox/CLS.git/"
16 ;; #p"/Users/ungil/lisp/CommonLispStat/")
20 ;; What package should we be in? Contaminating cl-user is probably EVIL.
22 ;; Need to replace this with some form of self-referential structure.
24 ;; Add the critical paths to the ASDF facility and set up other
25 ;; things; currently this will not do the other setups.
27 (progn
28 (defvar *lispstat-home-dir* #p"/home/tony/sandbox/CLS.git/"
29 "Value considered \"home\" for our data")
31 (setf *lispstat-home-dir*
32 ;; #p"/cygdrive/c/local/sandbox/Lisp/CommonLispStat/"w
33 ;; #p"/home/tony/sandbox/CommonLispStat.git/"
34 #p"/home/tony/sandbox/CLS.git/")
36 (defmacro ls-dir (root-str)
37 `(pathname (concatenate 'string (namestring *lispstat-home-dir*) ,root-str)))
39 (defmacro ls-defdir (target-dir-var root-str)
40 `(defvar ,target-dir-var (ls-dir ,root-str)))
42 ;;(macroexpand '(ls-defdir *lispstat-asdf-dir* "ASDF"))
43 ;;(macroexpand-1 '(ls-defdir *lispstat-asdf-dir* "ASDF"))
44 ;;(macroexpand-1 '(ls-dir "ASDF"))
46 (ls-defdir *lispstat-asdf-dir* "ASDF/")
47 (ls-defdir *lispstat-data-dir* "data/")
48 (ls-defdir *lispstat-external-dir* "external/")
49 (ls-defdir *lispstat-examples-dir* "examples/")
51 ;; Load ASDF if it isn't loaded
52 #-asdf(load (pathname (concatenate 'string (namestring *lispstat-external-dir*) "asdf")))
54 ;; (pushnew #p"C:/Lisp/libs/" asdf-util:*source-dirs* :test #'equal)
55 (pushnew *lispstat-asdf-dir* asdf:*central-registry*))
57 (progn
58 ;; Load needed packages
60 (asdf:oos 'asdf:load-op :cffi) ;; FFI
61 (asdf:oos 'asdf:load-op :lift) ;; Unit Testing
63 ;; soon...
64 #+nil(asdf:oos 'asdf:load-op :clem) ;; matrixes
65 #+nil(asdf:oos 'asdf:load-op :clem-test)
66 #+nil(asdf:oos 'asdf:load-op :clem-benchmark)
68 ;; Constraint System
69 ;;(asdf:oos 'asdf:load-op :cells)
71 ;; Finally...
72 (asdf:oos 'asdf:load-op :lispstat)
75 #+nil(progn
76 (asdf:oos 'asdf:compile-op :cffi)
77 (asdf:oos 'asdf:compile-op :lisp-unit)
78 (asdf:oos 'asdf:compile-op :lift)
79 (asdf:oos 'asdf:compile-op :rclg)
80 (asdf:oos 'asdf:compile-op :cl-cairo2)
81 ;; (asdf:operate 'asdf:load-op 'cffi)
82 ;; (asdf:operate 'asdf:load-op 'rclg)
83 (asdf:oos 'asdf:load-op :celtk)
84 (asdf:oos 'asdf:compile-op :lispstat :force t)
85 ;; (asdf:operate 'asdf:compile-op 'lispstat)