-
Notifications
You must be signed in to change notification settings - Fork 237
/
Nukefile
36 lines (29 loc) · 1.27 KB
/
Nukefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
;; source files
(set @c_files (filelist "^objc/.*\.c$"))
(set @m_files (filelist "^objc/.*\.m$"))
(set @nu_files (filelist "^nu/.*\.nu$"))
(set @frameworks '("Cocoa" "Nu" "Carbon"))
(if (or isSnowLeopard isLion)
(then
;; Make sure you download and build the mach_inject_bundle first
;; Get it at git://github.com/rentzsch/mach_star.git
(if (isSnowLeopard)
(then (set @cflags "-isysroot /Developer/SDKs/MacOSX10.6.sdk "))
(else (set @cflags "-isysroot /Developer/SDKs/MacOSX10.7.sdk ")))
(set @ldflags " -framework Cocoa -framework Nu -framework Carbon -framework mach_inject_bundle")
(set @arch '("x86_64" )))
(else
;; If not Snow Leopard, then use the included version of mach_star
(set @includes " -I../libinject/objc")
(set @ldflags " -framework Cocoa -framework Nu -framework Carbon -linject -L../libinject ")
(set @arch '("i386" ))))
(set @mflags " -fobjc-exceptions -fobjc-gc ")
;; framework description
(set @framework "NuInject")
(set @framework_identifier "nu.programming.inject")
(set @framework_creator_code "????")
(compilation-tasks)
(framework-tasks)
(task "default" => "framework")
(task "clobber" => "clean" is
(SH "rm -rf #{@framework}.framework"))