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

Last change on this file since 17867 was 17867, checked in by Jim Ursetto, 11 years ago

objc: compiles now

  • Property svn:executable set to *
File size: 1.5 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"
[17867]15        ("objc.scm" "objc-base.so")
[14899]16        (compile -objc -framework Foundation -s -O2 -d1
17                 ,@(if easyffi? '(-extend easyffi) '())
[17867]18                 objc.scm -j objc)
19        (compile objc.import.scm -s -O2 -d0))
[14899]20       ("objc-base.so"
21        ("objc-support.scm" "classes.scm" "alignment.scm"
[17867]22         "array.scm" "convert.scm" "objc-base.scm" "objc-runtime.h"
23         "scheme-object.m" "scheme-object.h")
24        (compile objc-base.scm scheme-object.m -s -objc -O2 -d1 -j objc-base
[14899]25                 ,@(if easyffi? '(-extend easyffi) '())
[17867]26                 -lffi -I/usr/include/ffi -framework Foundation ,dbg)
[14899]27        (compile objc-base.import.scm -s -O2 -d0))
28       ("objc-cocoa.so" ("objc-cocoa.scm" "objc-base.so")
29        (compile -s objc-cocoa.scm -objc -O2 -d1 -j objc-cocoa
30                 ,@(if easyffi? '(-extend easyffi) '())
31                 -framework Cocoa -X ./objc.scm ,dbg)
32        (compile -s objc-cocoa.import.scm -O2 -d0)))
33  '#("objc.so" "objc-base.so" "objc-cocoa.so"))
[143]34
[14899]35(install-extension
36 'objc-cocoa
37 `("objc-cocoa.so" "objc-cocoa.import.so")
38 `((version ,version)))
[143]39
[14899]40(install-extension
41 'objc-base
42 `("objc-base.so" "objc-base.import.so")
43 `((version ,version)))
44
[856]45(install-extension 'objc
[14899]46 `("objc.so" "objc.import.so" "objc.html")
47 `((version ,version)
48   (documentation "objc.html")))
[856]49
Note: See TracBrowser for help on using the repository browser.