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
Line 
1;;; objc setup file
2
3(define version "0.5.0")
4
5(define easyffi? #t)
6
7(define dbg
8  (if (member "-debug" (command-line-arguments))
9      "-kv -D debug"
10      ""))
11
12;; Uhh, I guess make body already in quasiquote
13
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"))
32
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)))
42
43(install-extension 'objc
44 `("objc.so" "objc.import.so" "objc.html")
45 `((version ,version)
46   (documentation "objc.html")))
47
Note: See TracBrowser for help on using the repository browser.