source: project/release/3/lexgen/trunk/lexgen.setup @ 13244

Last change on this file since 13244 was 13244, checked in by Ivan Raikov, 11 years ago

Initial code for lexgen, a lexer combinator library.

File size: 622 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 lexgen.exports) '())
10         lexgen.scm)
11
12(install-extension
13
14 ;; Name of your extension:
15  'lexgen
16
17  ;; Files to install for your extension:
18  `(,(dynld-name "lexgen")
19    ,@(if has-exports? '("lexgen.exports") (list)) )
20 
21
22  ;; Assoc list with properties for your extension:
23  '((version 1.0)
24    (documentation "lexgen.html")
25    ,@(if has-exports? `((exports "lexgen.exports")) (list)) ))
Note: See TracBrowser for help on using the repository browser.