source: project/release/3/html-stream/trunk/html-stream.setup @ 12426

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

Use exports.

File size: 798 bytes
Line 
1;; -*- scheme -*-
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 html-stream.exports) '())
10         html-stream-base.scm)
11
12(install-extension 'html-stream
13                   `(,(dynld-name "html-stream")
14                     "html-stream-base.so"
15                     ,@(if has-exports? '("html-stream.exports") (list)))
16                   `((syntax)
17                     (require-at-runtime html-stream-base)
18                     (version ,(if (file-exists? "version") (with-input-from-file "version" read) "unknown"))
19                     ,@(if has-exports? `((exports "html-stream.exports")) (list))
20                     (documentation "html-stream.html")))
Note: See TracBrowser for help on using the repository browser.