source: project/release/4/objc/trunk/objc.setup @ 14899

Last change on this file since 14899 was 14899, checked in by Alex Shinn, 12 years ago

initial conversion, not yet working

  • Property svn:executable set to *
File size: 1.4 KB
RevLine 
[60]1;;; objc setup file
[55]2
[14899]3(define version "0.5.0")
[856]4
[14899]5(define easyffi? #t)
[1708]6
[40]7(define dbg
8  (if (member "-debug" (command-line-arguments))
9      "-kv -D debug"
[14899]10      ""))
[40]11
[856]12;; Uhh, I guess make body already in quasiquote
[40]13
[14899]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"))
[143]32
[14899]33(install-extension
34 'objc-cocoa
35 `("objc-cocoa.so" "objc-cocoa.import.so")
36 `((version ,version)))
[143]37
[14899]38(install-extension
39 'objc-base
40 `("objc-base.so" "objc-base.import.so")
41 `((version ,version)))
42
[856]43(install-extension 'objc
[14899]44 `("objc.so" "objc.import.so" "objc.html")
45 `((version ,version)
46   (documentation "objc.html")))
[856]47
Note: See TracBrowser for help on using the repository browser.