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

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

Bug fixes.

File size: 2.3 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(compile -d2 -s -o ,(dynld-name "nemo-core")
9         ,@(if has-exports? '(-check-imports -emit-exports nemo-core.exports) '())
10         core.scm)
11
12
13(install-extension
14
15  ; Name of your extension:
16  'nemo-core
17
18  ; Files to install for your extension:
19  `(,(dynld-name "nemo-core")
20    ,@(if has-exports? '("nemo-core.exports") (list)) )
21
22  ; Assoc list with properties for your extension:
23  `((version 1.0)
24    ;(documentation "nemo.html")
25    ,@(if has-exports? `((exports "nemo-core.exports")) (list)) ))
26
27
28(install-extension
29 'nemo-macros
30 `("nemo-macros.scm" )
31 `((version 1.0)
32   (syntax)
33   (require-at-runtime nemo-core)))
34
35
36(compile -d2 -O -s -extension -o ,(dynld-name "nemo-nmodl")
37         ,@(if has-exports? '(-check-imports -emit-exports nemo-nmodl.exports) '())
38         nmodl.scm)
39
40(install-extension
41
42  ; Name of your extension:
43  'nemo-nmodl
44
45  ; Files to install for your extension:
46  `(,(dynld-name "nemo-nmodl") 
47    ,@(if has-exports? '("nemo-nmodl.exports") (list)) )
48
49  ; Assoc list with properties for your extension:
50  `((version 1.0)
51    ,@(if has-exports? `((exports "nemo-nmodl.exports")) (list)) ))
52
53
54(compile -d2 -O -s -extension -o ,(dynld-name "nemo-nmodl")
55         ,@(if has-exports? '(-check-imports -emit-exports nemo-nmodl.exports) '())
56         nmodl.scm)
57
58(install-extension
59
60  ; Name of your extension:
61  'nemo-nmodl
62
63  ; Files to install for your extension:
64  `(,(dynld-name "nemo-nmodl") 
65    ,@(if has-exports? '("nemo-nmodl.exports") (list)) )
66
67  ; Assoc list with properties for your extension:
68  `((version 1.0)
69    ,@(if has-exports? `((exports "nemo-nmodl.exports")) (list)) ))
70
71
72(compile -d2 -O -s -o ,(dynld-name "nemo-hh")
73         ,@(if has-exports? '(-check-imports -emit-exports nemo-hh.exports) '())
74         extensions/nemo-hh.scm)
75
76
77(install-extension
78
79  ; Name of your extension:
80  'nemo-hh
81
82  ; Files to install for your extension:
83  `(,(dynld-name "nemo-hh") 
84    ,@(if has-exports? '("nemo-hh.exports") (list)) )
85
86  ; Assoc list with properties for your extension:
87  `((version 1.0)
88    ,@(if has-exports? `((exports "nemo-hh.exports")) (list)) ))
89
90(compile -d2 -O nemo.scm -lchicken)
91
92(install-program
93 'nemo
94 
95 `("nemo" )
96
97  ; Assoc list with properties for the program:
98  '((version 1.0)
99    (documentation "nemo.html")))
Note: See TracBrowser for help on using the repository browser.