source: project/sfht/trunk/sfht.setup @ 6630

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

Updated build script to use platform-dependent dynamic library suffix.

File size: 666 bytes
Line 
1
2(define has-exports? (string>=? (chicken-version) "2.310"))
3
4(define (dynld-name fn)         
5  (make-pathname #f fn ##sys#load-dynamic-extension))   
6
7(compile -O2 -d0 -s
8         ,@(if has-exports? '(-check-imports -emit-exports sfht.exports) '())
9         sfht.scm -lchicken -ldl -lm)
10
11(run (csi -qbs sfht-eggdoc.scm > sfht.html))
12
13(install-extension
14
15  ; Name of your extension:
16  'sfht
17
18  ; Files to install for your extension:
19  `(,(dynld-name "sfht") "sfht.html"
20    ,@(if has-exports? '("sfht.exports") (list)) )
21
22
23  ; Assoc list with properties for your extension:
24  '((version 2.1)
25    (documentation "sfht.html")
26    ,@(if has-exports? `((exports "sfht.exports")) (list)) ))
27
Note: See TracBrowser for help on using the repository browser.