forked from MonoGame/MonoGame
- Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdefault.build
More file actions
Latest commit
183 lines (162 loc) · 10.3 KB
/
Copy pathdefault.build
File metadata and controls
183 lines (162 loc) · 10.3 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<?xml version="1.0"?>
<projectname="MonoGame Build Script"default="build"basedir=".">
<description>Default MonoGame Automated Build script</description>
<propertyname="os"value="${operating-system::get-platform(environment::get-operating-system())}" />
<propertyname="mdtooldir"value="/Applications/MonoDevelop.app/Contents/MacOS"/>
<propertyname="psmtooldir"value="C:\Program Files (x86)\SCE\PSM\tools\PsmStudio\bin" />
<targetname="checkos"description="check the operating system">
<propertyname="os"value="${operating-system::get-platform(environment::get-operating-system())}"/>
<iftest="${os == 'Unix'}">
<iftest="${directory::exists('/Applications') and directory::exists('/Library')}">
<propertyname="os"value="MacOS"/>
<iftest="${not directory::exists(mdtooldir)}">
<propertyname="mdtooldir"value="${path::get-full-path('/Applications/Xamarin Studio.app/Contents/MacOS')}"/>
</if>
</if>
</if>
<echomessage="Detected : ${os}"/>
</target>
<targetname="clean">
<deletedir="${project::get-base-directory()}\MonoGame.Framework\obj"verbose="true">
</delete>
</target>
<targetname="build"description="Build MonoGame Release"depends="checkos">
<calltarget="buildwindows"/>
<calltarget="buildlinux"/>
<calltarget="buildandroid" />
<calltarget="buildwindows8" />
<calltarget="buildwindowsphone" />
<calltarget="buildmac" />
<calltarget="buildios" />
<calltarget="buildpsm" />
<calltarget="buildtools"/>
<calltarget="buildcontentprocessor"/>
<calltarget="buildcontentpipeline"/>
<nantbuildfile="ProjectTemplates/MonoDevelop/MonoDevelop.MonoGame/default.build"target="build" />
<nantbuildfile="ProjectTemplates/VisualStudio2010/default.build"target="build" />
<nantbuildfile="ProjectTemplates/VisualStudio2012/default.build"target="build" />
<nantbuildfile="IDE/MonoDevelop/default.build"target="build"/>
<calltarget="buildtests"/>
<nantbuildfile="Installers/default.build"target="build" />
</target>
<targetname="buildpsm"description="Build Play Station Mobile"depends="clean">
<iftest="${os == 'Win32NT'}">
<iftest="${file::exists('C:\Program Files (x86)\SCE\PSM\tools\PsmStudio\bin\mdtool.exe')}">
<execprogram="mdtool.exe"basedir="${psmtooldir}"commandline="build -t:Clean -c:Release MonoGame.Framework.PSMobile.sln" />
<execprogram="mdtool.exe"basedir="${psmtooldir}"commandline="build -t:Build -c:Release MonoGame.Framework.PSMobile.sln" />
</if>
</if>
</target>
<targetname="buildwindows"description="Build Windows"depends="clean">
<iftest="${os == 'Win32NT'}">
<execprogram="msbuild "commandline="MonoGame.Framework.Windows.sln /t:Clean /p:Configuration=Release" />
<execprogram="msbuild "commandline="MonoGame.Framework.Windows.sln /t:Build /p:Configuration=Release" />
<execprogram="msbuild "commandline="MonoGame.Framework.WindowsGL.sln /t:Clean /p:Configuration=Release" />
<execprogram="msbuild "commandline="MonoGame.Framework.WindowsGL.sln /t:Build /p:Configuration=Release" />
</if>
<iftest="${os == 'Unix'}">
<execprogram="xbuild"commandline="/t:Clean /p:Configuration=Release MonoGame.Framework.Windows.sln" />
<execprogram="xbuild"commandline="/t:Build /p:Configuration=Release MonoGame.Framework.Windows.sln" />
<execprogram="xbuild"commandline="/t:Clean /p:Configuration=Release MonoGame.Framework.WindowsGL.sln" />
<execprogram="xbuild"commandline="/t:Build /p:Configuration=Release MonoGame.Framework.WindowsGL.sln" />
</if>
</target>
<targetname="buildlinux"description="Build Linux"depends="clean">
<iftest="${os == 'Win32NT'}">
<execprogram="msbuild "commandline="MonoGame.Framework.Linux.sln /t:Clean /p:Configuration=Release" />
<execprogram="msbuild "commandline="MonoGame.Framework.Linux.sln /t:Build /p:Configuration=Release" />
</if>
<iftest="${os == 'Unix'}">
<execprogram="xbuild"commandline="/t:Clean /p:Configuration=Release MonoGame.Framework.Linux.sln" />
<execprogram="xbuild"commandline="/t:Build /p:Configuration=Release MonoGame.Framework.Linux.sln" />
</if>
</target>
<targetname="buildmac"description="Build MacOS"depends="clean">
<iftest="${os == 'MacOS'}">
<execprogram="mdtool"basedir="${mdtooldir}"commandline="build -t:Clean -c:Release MonoGame.Framework.MacOS.sln" />
<execprogram="mdtool"basedir="${mdtooldir}"commandline="build -t:Build -c:Release MonoGame.Framework.MacOS.sln" />
</if>
</target>
<targetname="buildios"description="Build iOS"depends="clean">
<iftest="${os == 'MacOS'}">
<iftest="${file::exists('/Developer/MonoTouch/MSBuild/Xamarin.ObjcBinding.CSharp.targets')}">
<execprogram="mdtool"basedir="${mdtooldir}"commandline="build -t:Clean -c:Release MonoGame.Framework.iOS.sln" />
<execprogram="mdtool"basedir="${mdtooldir}"commandline="build -t:Build -c:Release MonoGame.Framework.iOS.sln" />
</if>
</if>
</target>
<targetname="buildandroid"description="Build Android"depends="clean">
<iftest="${os == 'Win32NT'}">
<iftest="${file::exists('C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.CSharp.targets')}">
<execprogram="msbuild "commandline="MonoGame.Framework.Android.sln /t:Clean /p:Configuration=Release" />
<execprogram="msbuild "commandline="MonoGame.Framework.Android.sln /t:Build /p:Configuration=Release" />
<execprogram="msbuild "commandline="MonoGame.Framework.OUYA.sln /t:Clean /p:Configuration=Release" />
<execprogram="msbuild "commandline="MonoGame.Framework.OUYA.sln /t:Build /p:Configuration=Release" />
</if>
</if>
<iftest="${os == 'MacOS'}">
<iftest="${file::exists('/Developer/MonoAndroid/usr/bin/mandroid')}">
<execprogram="mdtool"basedir="${mdtooldir}"commandline="build -t:Clean -c:Release MonoGame.Framework.Android.sln" />
<execprogram="mdtool"basedir="${mdtooldir}"commandline="build -t:Build -c:Release MonoGame.Framework.Android.sln" />
<execprogram="mdtool"basedir="${mdtooldir}"commandline="build -t:Clean -c:Release MonoGame.Framework.OUYA.sln" />
<execprogram="mdtool"basedir="${mdtooldir}"commandline="build -t:Build -c:Release MonoGame.Framework.OUYA.sln" />
</if>
</if>
</target>
<targetname="buildwindows8"description="Build Windows 8"depends="clean">
<iftest="${os == 'Win32NT'}">
<execprogram="msbuild "commandline="MonoGame.Framework.Windows8.sln /t:Clean /p:Configuration=Release" />
<execprogram="msbuild "commandline="MonoGame.Framework.Windows8.sln /t:Rebuild /p:Configuration=Release" />
</if>
</target>
<targetname="buildwindowsphone"description="Build Windows Phone"depends="clean">
<iftest="${os == 'Win32NT'}">
<iftest="${file::exists('c:\Program Files (x86)\MSBuild\Microsoft\WindowsPhone\v8.0\Microsoft.Cpp.WindowsPhone.8.0.targets')}">
<execprogram="msbuild "commandline='MonoGame.Framework.WindowsPhone.sln /t:Clean /p:Configuration=Release /p:Platform="ARM"' />
<execprogram="msbuild "commandline='MonoGame.Framework.WindowsPhone.sln /t:Build /p:Configuration=Release /p:Platform="ARM"' />
<execprogram="msbuild "commandline='MonoGame.Framework.WindowsPhone.sln /t:Clean /p:Configuration=Release /p:Platform="x86"' />
<execprogram="msbuild "commandline='MonoGame.Framework.WindowsPhone.sln /t:Build /p:Configuration=Release /p:Platform="x86"' />
</if>
</if>
</target>
<targetname="buildtools"description="Build Tools"depends="clean">
<iftest="${os == 'Win32NT'}">
<execprogram="msbuild "commandline="Tools\2MGFX\2MGFX.sln /t:Clean /p:Configuration=Release" />
<execprogram="msbuild "commandline="Tools\2MGFX\2MGFX.sln /t:Build /p:Configuration=Release" />
<execprogram="msbuild "commandline="Tools\MGCB\MGCB.sln /t:Clean /p:Configuration=Release" />
<execprogram="msbuild "commandline="Tools\MGCB\MGCB.sln /t:Build /p:Configuration=Release" />
</if>
</target>
<targetname="buildcontentprocessor"description="Build Content Processor"depends="clean">
<iftest="${os == 'Win32NT'}">
<execprogram="msbuild "commandline="MonoGame.ContentPipeline\ContentProcessors\MonoGameContentProcessors.sln /t:Clean /p:Configuration=Release" />
<execprogram="msbuild "commandline="MonoGame.ContentPipeline\ContentProcessors\MonoGameContentProcessors.sln /t:Build /p:Configuration=Release" />
</if>
</target>
<targetname="buildcontentpipeline"description="Build Content Pipeline"depends="clean">
<iftest="${os == 'Win32NT'}">
<execprogram="msbuild "commandline="MonoGame.Framework.Content.Pipeline.Windows.sln /t:Clean /p:Configuration=Release" />
<execprogram="msbuild "commandline="MonoGame.Framework.Content.Pipeline.Windows.sln /t:Build /p:Configuration=Release" />
<execprogram="msbuild "commandline="MonoGame.Framework.Content.Pipeline.Linux.sln /t:Clean /p:Configuration=Release" />
<execprogram="msbuild "commandline="MonoGame.Framework.Content.Pipeline.Linux.sln /t:Build /p:Configuration=Release" />
</if>
<iftest="${os == 'Unix'}">
<execprogram="xbuild"commandline="/t:Clean /p:Configuration=Release MonoGame.Framework.Content.Pipeline.Linux.sln" />
<execprogram="xbuild"commandline="/t:Build /p:Configuration=Release MonoGame.Framework.Content.Pipeline.Linux.sln" />
</if>
<iftest="${os == 'MacOS'}">
<execprogram="mdtool"basedir="${mdtooldir}"commandline="build -t:Clean -c:Release MonoGame.Framework.Content.Pipeline.MacOS.sln" />
<execprogram="mdtool"basedir="${mdtooldir}"commandline="build -t:Build -c:Release MonoGame.Framework.Content.Pipeline.MacOS.sln" />
</if>
</target>
<targetname="buildtests"description="Build Tests"depends="clean">
<iftest="${os == 'Win32NT'}">
<execprogram="msbuild "commandline="Test\MonoGame.Tests.Windows.sln /t:Clean /p:Configuration=Release" />
<execprogram="msbuild "commandline="Test\MonoGame.Tests.Windows.sln /t:Build /p:Configuration=Release" />
</if>
</target>
<targetname="runtests"description="Run Tests">
<iftest="${os == 'Win32NT'}">
</if>
</target>
</project>