source: project/release/3/stream-ext/trunk/stream-ext.setup @ 12425

Last change on this file since 12425 was 12425, checked in by azul, 11 years ago

fixes

File size: 720 bytes
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  -O2 -d0 -s
9         ,@(if has-exports? '(-check-imports -emit-exports stream-ext.exports) '())
10         stream-ext.scm)
11
12(install-extension
13
14  ; Name of your extension:
15  'stream-ext
16
17  ; Files to install for your extension:
18  `(,(dynld-name "stream-ext")
19    ,@(if has-exports? '("stream-ext.exports") (list)) )
20
21  ; Assoc list with properties for your extension:
22  `((version ,(if (file-exists? "version") (with-input-from-file "version" read) "unknown"))
23    (documentation "stream-ext.html")
24    ,@(if has-exports? `((exports "stream-ext.exports")) (list)) ))
Note: See TracBrowser for help on using the repository browser.