source: project/objc/objc.setup @ 7348

Last change on this file since 7348 was 7348, checked in by Jim Ursetto, 13 years ago

objc: bump version

  • Property svn:executable set to *
File size: 2.1 KB
Line 
1;;; objc setup file
2
3(define exports? (string>=? (chicken-version) "2.310"))
4
5(define easyffi? (string>=? (chicken-version) "2.424"))
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 (
15                ("objc-support.so" ("objc-support.scm" "classes.scm" "alignment.scm"
16                                                                                                "array.scm" "convert.scm" #;"objc.scm")
17                        (compile objc-support.scm -s -objc -O2 -d1
18                                ,@(if easyffi? '(-extend easyffi) '())
19                                ,@(if exports? '(-check-imports -emit-exports objc-support.exports) '())
20                                -lffi -framework Foundation ,dbg))
21                ("objc-class-proxies-bin.so" ("objc-class-proxies-bin.scm" "scheme-object.m" "scheme-object.h")
22                        (compile -objc -framework Foundation -s -O2 -d1
23                                ,@(if easyffi? '(-extend easyffi) '())
24                                ,@(if exports? '(-check-imports -emit-exports objc-class-proxies-bin.exports) '())
25                                objc-class-proxies-bin.scm scheme-object.m))
26                ("objc-class-proxies.so" ("objc-class-proxies.scm")
27                        (compile -s -O2 -d1
28                                ,@(if exports? '(-check-imports -emit-exports objc-class-proxies.exports) '())
29                                objc-class-proxies.scm))
30                ("cocoa.so" ("cocoa.scm")
31                        (compile -s cocoa.scm -objc -O2 -d1
32                                ,@(if easyffi? '(-extend easyffi) '())
33                                ,@(if exports? '(-check-imports -emit-exports cocoa.exports) '())
34                                -framework Cocoa -X ./objc.scm ,dbg)) )
35  '#("objc-support.so" "objc-class-proxies-bin.so" "objc-class-proxies.so" "cocoa.so") )
36
37(install-extension 'objc-base
38 `(     "objc-base.scm" "objc-support.so" "cocoa.so"
39                ,@(if exports? '("objc-support.exports" "cocoa.exports") '()) )
40 `(     (syntax)
41                (require-at-runtime objc-support)
42                ,@(if exports? `((exports "objc-support.exports" "cocoa.exports")) '())
43                (version "0.4.4") ) )
44
45(install-extension 'objc
46 `( "objc.scm" "objc-class-proxies.so" "objc-class-proxies-bin.so"
47                "objc.html"
48                ,@(if exports? '("objc-class-proxies.exports" "objc-class-proxies-bin.exports") '()) )
49 `(     (syntax)
50                (require-at-runtime objc-support objc-class-proxies)
51        (version "0.4.3")
52                ,@(if exports? `((exports "objc-class-proxies.exports" "objc-class-proxies-bin.exports")) '())
53        (documentation "objc.html") ) )
54
Note: See TracBrowser for help on using the repository browser.