source: project/release/3/nemo/trunk/nemo.setup @ 13235

Last change on this file since 13235 was 13235, checked in by Ivan Raikov, 12 years ago

XML parser and generator brought up to date.

File size: 3.8 KB
Line 
1; -*- Hen -*-
2
3(define has-exports? (string>=? (chicken-version) "2.310"))
4
5(define (dynld-name fn)         
6  (make-pathname #f fn ##sys#load-dynamic-extension))   
7
8(run (csi -s expr.grm))
9
10(compile  -d2 -s -o ,(dynld-name "nemo-core")
11         ,@(if has-exports? '(-check-imports -emit-exports nemo-core.exports) '())
12         nemo-core.scm)
13
14
15(install-extension
16
17  ; Name of your extension:
18  'nemo-core
19
20  ; Files to install for your extension:
21  `(,(dynld-name "nemo-core")
22    ,@(if has-exports? '("nemo-core.exports") (list)) )
23
24  ; Assoc list with properties for your extension:
25  `((version 2.0)
26    ;(documentation "nemo.html")
27    ,@(if has-exports? `((exports "nemo-core.exports")) (list)) ))
28
29(compile -d2 -s -o ,(dynld-name "nemo-utils")
30         ,@(if has-exports? '(-check-imports -emit-exports nemo-utils.exports) '())
31         nemo-utils.scm)
32
33
34(install-extension
35
36  ; Name of your extension:
37  'nemo-utils
38
39  ; Files to install for your extension:
40  `(,(dynld-name "nemo-utils")
41    ,@(if has-exports? '("nemo-utils.exports") (list)) )
42
43  ; Assoc list with properties for your extension:
44  `((version 2.0)
45    ;(documentation "nemo.html")
46    ,@(if has-exports? `((exports "nemo-utils.exports")) (list)) ))
47
48
49
50(compile -d2 -s -o ,(dynld-name "nemo-ionch")
51         ,@(if has-exports? '(-check-imports -emit-exports nemo-ionch.exports) '())
52         nemo-ionch.scm)
53
54
55(install-extension
56
57  ; Name of your extension:
58  'nemo-ionch
59
60  ; Files to install for your extension:
61  `(,(dynld-name "nemo-ionch")
62    ,@(if has-exports? '("nemo-ionch.exports") (list)) )
63
64  ; Assoc list with properties for your extension:
65  `((version 2.0)
66    ;(documentation "nemo.html")
67    ,@(if has-exports? `((exports "nemo-ionch.exports")) (list)) ))
68
69
70(install-extension
71 'nemo-macros
72 `("nemo-macros.scm" )
73 `((version 2.0)
74   (syntax)
75   (require-at-runtime nemo-core)))
76
77
78(compile -d2 -s -extension -o ,(dynld-name "nemo-nmodl")
79         ,@(if has-exports? '(-check-imports -emit-exports nemo-nmodl.exports) '())
80         nemo-nmodl.scm)
81
82(install-extension
83
84  ; Name of your extension:
85  'nemo-nmodl
86
87  ; Files to install for your extension:
88  `(,(dynld-name "nemo-nmodl") 
89    ,@(if has-exports? '("nemo-nmodl.exports") (list)) )
90
91  ; Assoc list with properties for your extension:
92  `((version 2.0)
93    ,@(if has-exports? `((exports "nemo-nmodl.exports")) (list)) ))
94
95(if (file-exists? "nemo-matlab.scm")
96    (compile -d2 -s -extension -o ,(dynld-name "nemo-matlab")
97             ,@(if has-exports? '(-check-imports -emit-exports nemo-matlab.exports) '())
98             nemo-matlab.scm))
99
100(if (file-exists? "nemo-matlab.scm")
101    (install-extension
102     
103     ;; Name of your extension:
104     'nemo-matlab
105     
106     ;; Files to install for your extension:
107     `(,(dynld-name "nemo-matlab") 
108       ,@(if has-exports? '("nemo-matlab.exports") (list)) )
109     
110     ;; Assoc list with properties for your extension:
111     `((version 2.0)
112       ,@(if has-exports? `((exports "nemo-matlab.exports")) (list)) )))
113
114
115(compile -d2 -s -o ,(dynld-name "nemo-hh")
116         ,@(if has-exports? '(-check-imports -emit-exports nemo-hh.exports) '())
117         extensions/nemo-hh.scm)
118
119
120(install-extension
121
122  ; Name of your extension:
123  'nemo-hh
124
125  ; Files to install for your extension:
126  `(,(dynld-name "nemo-hh") 
127    ,@(if has-exports? '("nemo-hh.exports") (list)) )
128
129  ; Assoc list with properties for your extension:
130  `((version 2.0)
131    ,@(if has-exports? `((exports "nemo-hh.exports")) (list)) ))
132
133
134(run (csi -qbs nemo-eggdoc.scm > nemo.html))
135
136(compile -d2 nemo.scm -lchicken)
137
138(install-program
139 'nemo
140 
141 `("nemo" )
142
143  ; Assoc list with properties for the program:
144  '((version 2.0)
145    (documentation "nemo.html")))
146
147
148;; From setup-header.scm by Kon Lovett
149
150;;; Constants & Procedures
151
152(define SHARED-DIR (chicken-home))
153
154(define NEMO-DIR (make-pathname SHARED-DIR "nemo"))
155
156;; File Copy Operations
157
158(if (not (file-exists? NEMO-DIR))
159    (create-directory NEMO-DIR))
160
161(copy-file "examples" NEMO-DIR)
Note: See TracBrowser for help on using the repository browser.