Changeset 14685 in project for release/4/lexgen/trunk/lexgen.setup


Ignore:
Timestamp:
05/18/09 03:03:15 (11 years ago)
Author:
Ivan Raikov
Message:

lexgen ported to Chicken 4

Location:
release/4/lexgen
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • release/4/lexgen/trunk/lexgen.setup

    r13993 r14685  
    11;; -*- Hen -*-
    2 
    3 (define has-exports? (string>=? (chicken-version) "2.310"))
    42
    53(define (dynld-name fn)         
    64  (make-pathname #f fn ##sys#load-dynamic-extension))   
    75
    8 (compile -O2 -d0 -s
    9          ,@(if has-exports? '(-check-imports -emit-exports lexgen.exports) '())
    10          lexgen.scm)
     6(compile -O2 -d0 -s lexgen.scm -j lexgen)
     7(compile -O2 -d0 -s lexgen.import.scm)
    118
    129(install-extension
     
    1613
    1714  ;; Files to install for your extension:
    18   `(,(dynld-name "lexgen")
    19     ,@(if has-exports? '("lexgen.exports") (list)) )
     15  `(,(dynld-name "lexgen") ,(dynld-name "lexgen.import") )
    2016 
    2117
    2218  ;; Assoc list with properties for your extension:
    23   '((version 1.3)
     19  '((version 1.4)
    2420    (documentation "lexgen.html")
    25     ,@(if has-exports? `((exports "lexgen.exports")) (list)) ))
     21    ))
Note: See TracChangeset for help on using the changeset viewer.