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
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        (compile objc-base.scm scheme-object.m -s -objc -O2 -d1 -j objc-base
25                 ,@(if easyffi? '(-extend easyffi) '())
26                 -lffi -I/usr/include/ffi -framework Foundation ,dbg)
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"))
34
35(install-extension
36 'objc-cocoa
37 `("objc-cocoa.so" "objc-cocoa.import.so")
38 `((version ,version)))
39
40(install-extension
41 'objc-base
42 `("objc-base.so" "objc-base.import.so")
43 `((version ,version)))
44
45(install-extension 'objc
46 `("objc.so" "objc.import.so" "objc.html")
47 `((version ,version)
48   (documentation "objc.html")))
49
Note: See TracBrowser for help on using the repository browser.