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

Last change on this file was 26001, checked in by Jim Ursetto, 9 years ago

objc 0.5.2: use make egg; s/pointer/c-pointer/; remove objc:import-classes-at-toplevel! due to removed global-set!; totally untested

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1;;; objc setup file
2(use make)
3
4(define version "0.5.2")
5
6(define easyffi? #t)
7
8(define dbg
9  (if (member "-debug" (command-line-arguments))
10      "-kv -D debug"
11      ""))
12
13;; Uhh, I guess make body already in quasiquote
14
15(make (("objc.so"
16        ("objc-support.scm" "classes.scm" "alignment.scm"
17         "array.scm" "convert.scm" "objc.scm" "objc-runtime.h"
18         "scheme-object.m" "scheme-object.h"
19         "objc-class-proxies.scm" "objc-class-proxies-bin.scm")
20        (compile objc.scm scheme-object.m -s -objc -O2 -d1 -j objc
21                 ,@(if easyffi? '(-extend easyffi) '())
22                 -lffi -I/usr/include/ffi -framework Foundation ,dbg)
23        (compile objc.import.scm -s -O2 -d0))
24       ("cocoa.so" ("objc-cocoa.scm" "objc.so")
25        (compile -s objc-cocoa.scm -o cocoa.so -objc -O2 -d1 -j cocoa
26                 ,@(if easyffi? '(-extend easyffi) '())
27                 -framework Cocoa ,dbg)
28        (compile -s cocoa.import.scm -O2 -d0)))
29  '#("objc.so" "cocoa.so"))
30
31(install-extension
32 'cocoa
33 `("cocoa.so" "cocoa.import.so")
34 `((version ,version)))
35
36(install-extension
37 'objc
38 `("objc.so" "objc.import.so")
39 `((version ,version)))
40
Note: See TracBrowser for help on using the repository browser.