source: project/release/4/nemo/trunk/nemo.setup @ 28020

Last change on this file since 28020 was 28020, checked in by Ivan Raikov, 8 years ago

nemo: added defaults component type and query procedure

File size: 9.7 KB
Line 
1; -*- Hen -*-
2
3(define (dynld-name fn)         
4  (make-pathname #f fn ##sys#load-dynamic-extension))   
5
6(define nemo-version 8.0)
7
8(use make)
9
10(make (
11       ("expr.grm.scm" ("expr.grm")
12        (run (csi -s expr.grm)))
13
14       ((dynld-name "nemo-core") ("nemo-core.scm" "expr.grm.scm")
15        (compile -O -d2 -S -s nemo-core.scm -j nemo-core))
16
17       ((dynld-name "nemo-core.import") ("nemo-core.import.scm")
18        (compile -O2 -s nemo-core.import.scm))
19       )
20  (list (dynld-name "nemo-core")
21        (dynld-name "nemo-core.import"))
22  )
23
24(install-extension
25
26  ; Name of your extension:
27  'nemo-core
28
29  ; Files to install for your extension:
30  `(,(dynld-name "nemo-core") ,(dynld-name "nemo-core.import"))
31
32  ; Assoc list with properties for your extension:
33  `((version ,nemo-version)))
34
35
36(make (
37       ((dynld-name "nemo-utils") ("nemo-utils.scm")
38        (compile -O2 -d0 -S -s nemo-utils.scm -j nemo-utils))
39
40       ((dynld-name "nemo-utils.import") ("nemo-utils.import.scm")
41        (compile -O2 -s nemo-utils.import.scm))
42       )
43  (list (dynld-name "nemo-utils")
44        (dynld-name "nemo-utils.import"))
45  )
46
47
48(install-extension
49
50  ; Name of your extension:
51  'nemo-utils
52
53  ; Files to install for your extension:
54  `(,(dynld-name "nemo-utils") ,(dynld-name "nemo-utils.import"))
55
56  ; Assoc list with properties for your extension:
57  `((version ,nemo-version)))
58
59
60(make (
61       ((dynld-name "nemo-synapse") ("nemo-synapse.scm")
62        (compile -O -d2 -S -s nemo-synapse.scm -j nemo-synapse))
63
64       ((dynld-name "nemo-synapse.import") ("nemo-synapse.import.scm")
65        (compile -O2 -s nemo-synapse.import.scm))
66       )
67  (list (dynld-name "nemo-synapse")
68        (dynld-name "nemo-synapse.import"))
69  )
70
71
72
73(install-extension
74
75  ; Name of your extension:
76  'nemo-synapse
77
78  ; Files to install for your extension:
79  `(,(dynld-name "nemo-synapse") ,(dynld-name "nemo-synapse.import") )
80
81  ; Assoc list with properties for your extension:
82  `((version ,nemo-version)))
83
84
85
86(make (
87       ((dynld-name "nemo-gate-complex") ("nemo-gate-complex.scm")
88        (compile -O -d2 -S -s nemo-gate-complex.scm -j nemo-gate-complex))
89
90       ((dynld-name "nemo-gate-complex.import") ("nemo-gate-complex.import.scm")
91        (compile -O2 -s nemo-gate-complex.import.scm))
92       )
93  (list (dynld-name "nemo-gate-complex")
94        (dynld-name "nemo-gate-complex.import"))
95  )
96
97
98
99(install-extension
100
101  ; Name of your extension:
102  'nemo-gate-complex
103
104  ; Files to install for your extension:
105  `(,(dynld-name "nemo-gate-complex") ,(dynld-name "nemo-gate-complex.import") )
106
107  ; Assoc list with properties for your extension:
108  `((version ,nemo-version)))
109
110
111(make (
112       ((dynld-name "nemo-defaults") ("nemo-defaults.scm")
113        (compile -O -d2 -S -s nemo-defaults.scm -j nemo-defaults))
114
115       ((dynld-name "nemo-defaults.import") ("nemo-defaults.import.scm")
116        (compile -O2 -s nemo-defaults.import.scm))
117       )
118  (list (dynld-name "nemo-defaults")
119        (dynld-name "nemo-defaults.import"))
120  )
121
122
123
124(install-extension
125
126  ; Name of your extension:
127  'nemo-defaults
128
129  ; Files to install for your extension:
130  `(,(dynld-name "nemo-defaults") ,(dynld-name "nemo-defaults.import") )
131
132  ; Assoc list with properties for your extension:
133  `((version ,nemo-version)))
134
135
136(make (
137       ((dynld-name "nemo-macros") ("nemo-macros.scm")
138        (compile -O -d2 -S -s nemo-macros.scm -j nemo-macros))
139
140       ((dynld-name "nemo-macros.import") ("nemo-macros.import.scm")
141        (compile -O2 -s nemo-macros.import.scm))
142       )
143  (list (dynld-name "nemo-macros")
144        (dynld-name "nemo-macros.import"))
145  )
146
147(install-extension
148
149  ; Name of your extension:
150  'nemo-macros
151
152  ; Files to install for your extension:
153  `(,(dynld-name "nemo-macros") ,(dynld-name "nemo-macros.import") )
154
155  ; Assoc list with properties for your extension:
156  `((version ,nemo-version)))
157
158
159(make (
160       ((dynld-name "nemo-nmodl") ("nemo-nmodl.scm")
161        (compile -O -d2 -S -s nemo-nmodl.scm -j nemo-nmodl))
162
163       ((dynld-name "nemo-nmodl.import") ("nemo-nmodl.import.scm")
164        (compile -O2 -s nemo-nmodl.import.scm))
165       )
166  (list (dynld-name "nemo-nmodl")
167        (dynld-name "nemo-nmodl.import"))
168  )
169
170(install-extension
171
172  ; Name of your extension:
173  'nemo-nmodl
174
175  ; Files to install for your extension:
176  `(,(dynld-name "nemo-nmodl")  ,(dynld-name "nemo-nmodl.import")  )
177
178  ; Assoc list with properties for your extension:
179  `((version ,nemo-version)))
180
181(if (file-exists? "nemo-matlab.scm")
182    (begin
183      (make (
184             ((dynld-name "nemo-matlab") ("nemo-matlab.scm")
185              (compile -O -d2 -S -s nemo-matlab.scm -j nemo-matlab))
186             
187             ((dynld-name "nemo-matlab.import") ("nemo-matlab.import.scm")
188              (compile -O2 -s nemo-matlab.import.scm))
189             )
190        (list (dynld-name "nemo-matlab")
191              (dynld-name "nemo-matlab.import"))
192        )))
193
194
195(if (file-exists? "nemo-matlab.scm")
196    (install-extension
197     
198     ;; Name of your extension:
199     'nemo-matlab
200     
201     ;; Files to install for your extension:
202     `(,(dynld-name "nemo-matlab")  ,(dynld-name "nemo-matlab.import")  )
203     
204     ;; Assoc list with properties for your extension:
205     `((version ,nemo-version))))
206
207
208(if (file-exists? "nemo-nest.scm")
209    (begin
210      (make (
211             ((dynld-name "nemo-nest") ("nemo-nest.scm")
212              (compile -O -d2 -S -s nemo-nest.scm -j nemo-nest))
213             
214             ((dynld-name "nemo-nest.import") ("nemo-nest.import.scm")
215              (compile -O2 -s nemo-nest.import.scm))
216             )
217        (list (dynld-name "nemo-nest")
218              (dynld-name "nemo-nest.import"))
219        )))
220
221
222(if (file-exists? "nemo-nest.scm")
223    (install-extension
224     
225     ;; Name of your extension:
226     'nemo-nest
227     
228     ;; Files to install for your extension:
229     `(,(dynld-name "nemo-nest")  ,(dynld-name "nemo-nest.import")  )
230     
231     ;; Assoc list with properties for your extension:
232     `((version ,nemo-version))))
233
234
235(if (file-exists? "nemo-pyparams.scm")
236    (begin
237      (make (
238             ((dynld-name "nemo-pyparams") ("nemo-pyparams.scm")
239              (compile -O -d2 -S -s nemo-pyparams.scm -j nemo-pyparams))
240             
241             ((dynld-name "nemo-pyparams.import") ("nemo-pyparams.import.scm")
242              (compile -O2 -s nemo-pyparams.import.scm))
243             )
244        (list (dynld-name "nemo-pyparams")
245              (dynld-name "nemo-pyparams.import"))
246        )))
247
248
249(if (file-exists? "nemo-pyparams.scm")
250    (install-extension
251     
252     ;; Name of your extension:
253     'nemo-pyparams
254     
255     ;; Files to install for your extension:
256     `(,(dynld-name "nemo-pyparams")  ,(dynld-name "nemo-pyparams.import")  )
257     
258     ;; Assoc list with properties for your extension:
259     `((version ,nemo-version))))
260
261
262(if (file-exists? "nemo-eqn.scm")
263    (begin
264      (make (
265             ((dynld-name "nemo-eqn") ("nemo-eqn.scm")
266              (compile -O -d2 -S -s nemo-eqn.scm -j nemo-eqn))
267             
268             ((dynld-name "nemo-eqn.import") ("nemo-eqn.import.scm")
269              (compile -O2 -s nemo-eqn.import.scm))
270             )
271        (list (dynld-name "nemo-eqn")
272              (dynld-name "nemo-eqn.import"))
273        )))
274
275
276(if (file-exists? "nemo-eqn.scm")
277    (install-extension
278     
279     ;; Name of your extension:
280     'nemo-eqn
281     
282     ;; Files to install for your extension:
283     `(,(dynld-name "nemo-eqn")  ,(dynld-name "nemo-eqn.import")  )
284     
285     ;; Assoc list with properties for your extension:
286     `((version ,nemo-version))))
287
288
289(make (
290       ((dynld-name "nemo-hh") ("extensions/nemo-hh.scm")
291        (compile -O -d2 -S -s extensions/nemo-hh.scm -j nemo-hh
292                 -o ,(dynld-name "nemo-hh")) )
293
294       ((dynld-name "nemo-hh.import") ("nemo-hh.import.scm")
295        (compile -O2 -s nemo-hh.import.scm))
296       )
297  (list (dynld-name "nemo-hh")
298        (dynld-name "nemo-hh.import"))
299  )
300
301(install-extension
302
303  ; Name of your extension:
304  'nemo-hh
305
306  ; Files to install for your extension:
307  `(,(dynld-name "nemo-hh")  ,(dynld-name "nemo-hh.import"))
308
309  ; Assoc list with properties for your extension:
310  `((version ,nemo-version)))
311
312(make (
313       ((dynld-name "nemo-vclamp") ("extensions/nemo-vclamp.scm")
314        (compile -O -d2 -S -s extensions/nemo-vclamp.scm -j nemo-vclamp
315                 -o ,(dynld-name "nemo-vclamp")) )
316
317       ((dynld-name "nemo-vclamp.import") ("nemo-vclamp.import.scm")
318        (compile -O2 -s nemo-vclamp.import.scm))
319       )
320  (list (dynld-name "nemo-vclamp")
321        (dynld-name "nemo-vclamp.import"))
322  )
323
324
325(install-extension
326
327  ; Name of your extension:
328  'nemo-vclamp
329
330  ; Files to install for your extension:
331  `(,(dynld-name "nemo-vclamp") ,(dynld-name "nemo-vclamp.import"))
332
333  ; Assoc list with properties for your extension:
334  `((version ,nemo-version)))
335
336
337(make (
338       ((dynld-name "nemo-iclamp") ("extensions/nemo-iclamp.scm")
339        (compile -O -d2 -S -s extensions/nemo-iclamp.scm -j nemo-iclamp
340                 -o ,(dynld-name "nemo-iclamp")) )
341
342       ((dynld-name "nemo-iclamp.import") ("nemo-iclamp.import.scm")
343        (compile -O2 -s nemo-iclamp.import.scm))
344       )
345  (list (dynld-name "nemo-iclamp")
346        (dynld-name "nemo-iclamp.import"))
347  )
348
349
350(install-extension
351
352  ; Name of your extension:
353  'nemo-iclamp
354
355  ; Files to install for your extension:
356  `(,(dynld-name "nemo-iclamp") ,(dynld-name "nemo-iclamp.import"))
357
358  ; Assoc list with properties for your extension:
359  `((version ,nemo-version)))
360
361
362(make (
363       ("nemo" ("nemo.scm")
364        (compile  -uses files -O3 -block -d0 nemo.scm))
365       )
366  "nemo")
367
368(install-program
369 'nemo
370 
371 `("nemo" )
372
373  ; Assoc list with properties for the program:
374  `((version ,nemo-version)
375    ))
376
377;; From setup-header.scm by Kon Lovett
378
379(define (installation-chicken-home)
380  (if (not (installation-prefix)) (chicken-home)
381    (make-pathname `(,(installation-prefix) "share") "chicken") ) )
382
383;;; Constants & Procedures
384
385(define SHARED-DIR (installation-chicken-home))
386(define NEMO-DIR (make-pathname SHARED-DIR "nemo"))
387
388;; File Copy Operations
389
390(define (copy-file-to-nemo-dir fn)
391  (let ([fn (->string fn)])
392    (copy-file fn (make-pathname NEMO-DIR fn)) ) )
393
394;(copy-file-to-nemo-dir "examples/hh-substrate.nemo")
395;(copy-file-to-nemo-dir "examples/hh-superstrate.nemo")
396;(copy-file-to-nemo-dir "examples/Khaliq03")
397
Note: See TracBrowser for help on using the repository browser.