-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile.msbuild
46 lines (38 loc) · 1.68 KB
/
compile.msbuild
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
Nebula3 Build Script
Example usage:
msbuild compile.msbuild /p:Config=Debug;Rebuild=true
cvs-update (kinda pointless outside of Radon Labs), and recompiles the Debug configuration.
Only builds the libraries.
msbuild compile.msbuild /p:CVS=false;Config=Release;Rebuild=true /t:Tools
Recompiles the Release version without a cvs-update, builds libraries and all the executables.
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Win32Targets">
<!-- define basic properties -->
<PropertyGroup>
<Config>Debug</Config>
<Rebuild>false</Rebuild>
<CVS>false</CVS>
</PropertyGroup>
<!-- define vstudio project files (order is important!) -->
<ItemGroup>
<!-- link libs -->
<Win32Targets Include="code/vs8.0/tools_win32.sln"/>
<Win32Targets Include="code/vs8.0/tests_win32.sln"/>
<Win32Targets Include="code/vs8.0/benchmarks_win32.sln"/>
</ItemGroup>
<!-- run CVS Update on entire project -->
<Target Name="CVSUpdate" Condition="$(CVS)=='true'">
<Exec Command="cvs update" WorkingDirectory="."/>
</Target>
<!-- run tclsh update to update project files -->
<Target Name="TclshUpdate" DependsOnTargets="CVSUpdate">
<Exec Command="tclsh update.tcl" WorkingDirectory="code"/>
</Target>
<!-- build Nebula3 Foundation libs -->
<Target Name="Win32Targets" DependsOnTargets="TclshUpdate">
<MSBuild Projects="@(Win32Targets)" Properties="Configuration=$(Config);Rebuild=$(Rebuild)"/>
</Target>
<Target Name="AllTargets" DependsOnTargets="Win32Targets"/>
</Project>