Changeset 14899 in project for release/4/objc/trunk/objc.setup


Ignore:
Timestamp:
06/06/09 09:56:38 (12 years ago)
Author:
Alex Shinn
Message:

initial conversion, not yet working

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

Legend:

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

    r9967 r14899  
    11;;; objc setup file
    22
    3 (define exports? (string>=? (chicken-version) "2.310"))
     3(define version "0.5.0")
    44
    5 (define easyffi? (string>=? (chicken-version) "2.424"))
     5(define easyffi? #t)
    66
    77(define dbg
    88  (if (member "-debug" (command-line-arguments))
    99      "-kv -D debug"
    10       "") )
     10      ""))
    1111
    1212;; Uhh, I guess make body already in quasiquote
    1313
    14 (make (
    15                 ("objc-support.so" ("objc-support.scm" "classes.scm" "alignment.scm"
    16                                                                                                 "array.scm" "convert.scm" #;"objc.scm")
    17                         (compile objc-support.scm -s -objc -O2 -d1
    18                                 ,@(if easyffi? '(-extend easyffi) '())
    19                                 ,@(if exports? '(-check-imports -emit-exports objc-support.exports) '())
    20                                 -lffi -framework Foundation ,dbg))
    21                 ("objc-class-proxies-bin.so" ("objc-class-proxies-bin.scm" "scheme-object.m" "scheme-object.h")
    22                         (compile -objc -framework Foundation -s -O2 -d1
    23                                 ,@(if easyffi? '(-extend easyffi) '())
    24                                 ,@(if exports? '(-check-imports -emit-exports objc-class-proxies-bin.exports) '())
    25                                 objc-class-proxies-bin.scm scheme-object.m))
    26                 ("objc-class-proxies.so" ("objc-class-proxies.scm")
    27                         (compile -s -O2 -d1
    28                                 ,@(if exports? '(-check-imports -emit-exports objc-class-proxies.exports) '())
    29                                 objc-class-proxies.scm))
    30                 ("cocoa.so" ("cocoa.scm")
    31                         (compile -s cocoa.scm -objc -O2 -d1
    32                                 ,@(if easyffi? '(-extend easyffi) '())
    33                                 ,@(if exports? '(-check-imports -emit-exports cocoa.exports) '())
    34                                 -framework Cocoa -X ./objc.scm ,dbg)) )
    35   '#("objc-support.so" "objc-class-proxies-bin.so" "objc-class-proxies.so" "cocoa.so") )
     14(make (("objc.so"
     15        ("objc.scm" "scheme-object.m" "scheme-object.h" "objc-base.so")
     16        (compile -objc -framework Foundation -s -O2 -d1
     17                 ,@(if easyffi? '(-extend easyffi) '())
     18                 objc.scm scheme-object.m))
     19       ("objc-base.so"
     20        ("objc-support.scm" "classes.scm" "alignment.scm"
     21         "array.scm" "convert.scm" "objc-base.scm" "objc-runtime.h")
     22        (compile objc-base.scm -s -objc -O2 -d1 -j objc-base
     23                 ,@(if easyffi? '(-extend easyffi) '())
     24                 -lffi -framework Foundation ,dbg)
     25        (compile objc-base.import.scm -s -O2 -d0))
     26       ("objc-cocoa.so" ("objc-cocoa.scm" "objc-base.so")
     27        (compile -s objc-cocoa.scm -objc -O2 -d1 -j objc-cocoa
     28                 ,@(if easyffi? '(-extend easyffi) '())
     29                 -framework Cocoa -X ./objc.scm ,dbg)
     30        (compile -s objc-cocoa.import.scm -O2 -d0)))
     31  '#("objc.so" "objc-base.so" "objc-cocoa.so"))
    3632
    37 (install-extension 'objc-base
    38  `(     "objc-base.scm" "objc-support.so" "cocoa.so"
    39                 ,@(if exports? '("objc-support.exports" "cocoa.exports") '()) )
    40  `(     (syntax)
    41                 (require-at-runtime objc-support)
    42                 ,@(if exports? `((exports "objc-support.exports" "cocoa.exports")) '())
    43                 (version "0.4.5") ) )
     33(install-extension
     34 'objc-cocoa
     35 `("objc-cocoa.so" "objc-cocoa.import.so")
     36 `((version ,version)))
     37
     38(install-extension
     39 'objc-base
     40 `("objc-base.so" "objc-base.import.so")
     41 `((version ,version)))
    4442
    4543(install-extension 'objc
    46  `( "objc.scm" "objc-class-proxies.so" "objc-class-proxies-bin.so"
    47                 "objc.html"
    48                 ,@(if exports? '("objc-class-proxies.exports" "objc-class-proxies-bin.exports") '()) )
    49  `(     (syntax)
    50                 (require-at-runtime objc-support objc-class-proxies)
    51         (version "0.4.5")
    52                 ,@(if exports? `((exports "objc-class-proxies.exports" "objc-class-proxies-bin.exports")) '())
    53         (documentation "objc.html") ) )
     44 `("objc.so" "objc.import.so" "objc.html")
     45 `((version ,version)
     46   (documentation "objc.html")))
    5447
Note: See TracChangeset for help on using the changeset viewer.