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

Last change on this file since 12276 was 12276, checked in by Ivan Raikov, 13 years ago

Version set to 1.11.

File size: 2.5 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 -O -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 1.11)
26    ;(documentation "nemo.html")
27    ,@(if has-exports? `((exports "nemo-core.exports")) (list)) ))
28
29
30(install-extension
31 'nemo-macros
32 `("nemo-macros.scm" )
33 `((version 1.11)
34   (syntax)
35   (require-at-runtime nemo-core)))
36
37
38(compile -O -d2 -s -extension -o ,(dynld-name "nemo-nmodl")
39         ,@(if has-exports? '(-check-imports -emit-exports nemo-nmodl.exports) '())
40         nemo-nmodl.scm)
41
42(install-extension
43
44  ; Name of your extension:
45  'nemo-nmodl
46
47  ; Files to install for your extension:
48  `(,(dynld-name "nemo-nmodl") 
49    ,@(if has-exports? '("nemo-nmodl.exports") (list)) )
50
51  ; Assoc list with properties for your extension:
52  `((version 1.11)
53    ,@(if has-exports? `((exports "nemo-nmodl.exports")) (list)) ))
54
55
56(compile -O -d2 -s -o ,(dynld-name "nemo-hh")
57         ,@(if has-exports? '(-check-imports -emit-exports nemo-hh.exports) '())
58         extensions/nemo-hh.scm)
59
60
61(install-extension
62
63  ; Name of your extension:
64  'nemo-hh
65
66  ; Files to install for your extension:
67  `(,(dynld-name "nemo-hh") 
68    ,@(if has-exports? '("nemo-hh.exports") (list)) )
69
70  ; Assoc list with properties for your extension:
71  `((version 1.11)
72    ,@(if has-exports? `((exports "nemo-hh.exports")) (list)) ))
73
74
75(run (csi -qbs nemo-eggdoc.scm > nemo.html))
76
77(compile -O -d2 nemo.scm -lchicken)
78
79(install-program
80 'nemo
81 
82 `("nemo" )
83
84  ; Assoc list with properties for the program:
85  '((version 1.11)
86    (documentation "nemo.html")))
87
88
89;; From setup-header.scm by Kon Lovett
90
91;;; Constants & Procedures
92
93(define SHARED-DIR (chicken-home))
94
95(define NEMO-DIR (make-pathname SHARED-DIR "nemo"))
96
97
98;; File Copy Operations
99
100(define (*file-copy fn dn)
101  (let ([fn (->string fn)])
102    (copy-file fn (make-pathname dn fn)) ) )
103
104(define (copy-to-shared fn)
105  (*file-copy (->string fn) (chicken-home)) )
106
107(define (copy-file-to-nemo-dir fn)
108  (*file-copy (->string fn) NEMO-DIR) )
109
110
111(if (not (file-exists? NEMO-DIR))
112    (create-directory NEMO-DIR))
113
114(*file-copy "examples" NEMO-DIR)
Note: See TracBrowser for help on using the repository browser.