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

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

objc: tests pass and cocoa works. Cleanup still required

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