forked from BinaryConstruct/Transvoxel-XNA
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.bat
42 lines (33 loc) · 1.91 KB
/
build.bat
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
@echo off
setlocal ENABLEDELAYEDEXPANSION
set SOLUTION=TransvoxelXNA
if exist "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" set msbuild="C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe"
if exist "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" set devenv="C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe"
REM for Win64
if exist "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" set devenv="C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe"
echo Building TransVoxel Solution...
REM del /q .\build.log
REM del /q .\msbuild.log
%msbuild% .\Solution\%SOLUTION%.sln /fileLogger /verbosity:m /t:rebuild /property:Configuration=Release > buildAllCpu.log
REM CPU Specific Build parameter
REM %msbuild% .\Solutions\%SOLUTION%.sln /fileLogger /verbosity:m /t:rebuild /property:Configuration=Release;Platform=x64 > buildx64.log
REM Build using Visual Studio
REM %devenv% .\Solutions\\%SOLUTION%.sln /Rebuild "Release|x86" /Out .\build.log
rmdir /S /Q .\Binaries
mkdir .\Binaries
REM mkdir .\Binaries\x86
REM mkdir .\Binaries\x64
if exist ".\msbuild.log" move ".\msbuild.log" ".\Binaries\msbuild.log"
if exist ".\buildAllCpu.log" move ".\buildAllCpu.log" ".\Binaries\"
REM if exist ".\buildx64.log" move ".\buildx64.log" ".\Binaries\"
REM if exist ".\buildx86.log" move ".\buildx86.log" ".\Binaries\"
echo Gathering binaries...
REM csproj names in for loop
for %%F in ("Transvoxel") do (
echo Copying %%F
if exist ".\Projects\%%F\bin\Release\%%F.dll" copy ".\Projects\%%F\bin\Release\%%F.dll" .\Binaries\
if exist ".\Projects\%%F\bin\Release\%%F.pdb" copy ".\Projects\%%F\bin\Release\%%F.pdb" .\Binaries\
if exist ".\Projects\%%F\bin\Release\%%F.xml" copy ".\Projects\%%F\bin\Release\%%F.xml" .\Binaries\
)
echo Build Complete. See buildlog.txt for details. Binary files located in \Binaries\
pause