Changeset 12420 in project


Ignore:
Timestamp:
11/09/08 17:32:57 (11 years ago)
Author:
azul
Message:

Use exports, dynamic version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/3/orders/trunk/orders.setup

    r750 r12420  
    1 (compile -s -O2 -d1 orders.scm)
    2 (install-extension 'orders '("orders.so" "orders.html") '((version 1.0) (documentation "orders.html")))
     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 orders.exports) '())
     10         orders.scm)
     11
     12(install-extension 'orders
     13                   `(,(dynld-name "orders")
     14                     ,@(if has-exports? '("orders.exports") (list)))
     15                   '((version ,(if (file-exists? version) (with-input-from-file "version" read) "unknown"))
     16                     ,@(if has-exports? `((exports "orders.exports")) (list))
     17                     (documentation "orders.html")))
Note: See TracChangeset for help on using the changeset viewer.