forked from lefthandedgoat/canopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile.rb
43 lines (32 loc) · 761 Bytes
/
Rakefile.rb
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
37
38
39
40
41
42
43
module OS
def OS.windows?
(/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
end
def OS.mac?
(/darwin/ =~ RUBY_PLATFORM) != nil
end
def OS.unix?
!OS.windows?
end
def OS.linux?
OS.unix? and not OS.mac?
end
end
task :default => [:build, :ui]
task :build do
if OS.windows? then
sh 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe canopy.sln'
#sh 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe canopy.sln /p:VisualStudioVersion=12.0'
end
if OS.mac? then
sh 'xbuild canopy.sln'
end
end
task :ui do
if OS.windows? then
sh 'tests\basictests\bin\debug\basictests.exe'
end
if OS.mac? then
sh "mono --debug tests/basictests/bin/debug/basictests.exe"
end
end