Skip to content

Commit

Permalink
Update GetAndBuildThis and UpdateDependencies batch files
Browse files Browse the repository at this point in the history
  • Loading branch information
regnrand committed Oct 11, 2013
1 parent f1da99d commit 89b44f1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 22 deletions.
16 changes: 13 additions & 3 deletions GetAndBuildThis.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
setlocal
call UpdateDependencies.bat

call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
IF "%1"=="" (
set BUILD_CONFIG="Debug"
) ELSE (
set BUILD_CONFIG=%1
)

IF "%2"=="" (
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
SET HaveCalledvcvarsall=True
)

call UpdateDependencies.bat %BUILD_CONFIG% %HaveCalledvcvarsall%
hg pull -u --rebase
msbuild "Chorus VS2010.sln" /verbosity:quiet /maxcpucount
msbuild "Chorus VS2010.sln" /verbosity:quiet /maxcpucount /p:Configuration=%BUILD_CONFIG%
35 changes: 16 additions & 19 deletions UpdateDependencies.bat
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
REM Since Palaso libraries change frequently, you will likely need to
REM get that project and be able to build it, then run this script.
REM This script assumes that the libraries project are on the same level as this project.
REM It copies the needed libraries both into the lib folder and the debug folder.
REM It copies the needed libraries both into the lib folder and the debug/release folder.

pushd .
IF "%1"=="" (
set BUILD_CONFIG="Debug"
) ELSE (
set BUILD_CONFIG=%1
)

pushd .
cd ..\palaso
call GetAndBuildThis.bat
call GetAndBuildThis.bat %BUILD_CONFIG% %2
popd

copy /Y ..\palaso\output\debug\palaso.dll lib\debug\
copy /Y ..\palaso\output\debug\palaso.xml lib\debug\
copy /Y ..\palaso\output\debug\palaso.pdb lib\debug\

copy /Y ..\palaso\output\debug\Palaso.Lift.dll lib\debug\
copy /Y ..\palaso\output\debug\Palaso.Lift.xml lib\debug\
copy /Y ..\palaso\output\debug\Palaso.Lift.pdb lib\debug\
copy /Y ..\palaso\output\%BUILD_CONFIG%\palaso.dll lib\%BUILD_CONFIG%
copy /Y ..\palaso\output\%BUILD_CONFIG%\palaso.pdb lib\%BUILD_CONFIG%

copy /Y ..\palaso\output\debug\palasouiwindowsforms.dll lib\debug
copy /Y ..\palaso\output\debug\palasouiwindowsforms.xml lib\debug
copy /Y ..\palaso\output\debug\palasouiwindowsforms.pdb lib\debug
copy /Y ..\palaso\output\%BUILD_CONFIG%\Palaso.Lift.dll lib\%BUILD_CONFIG%
copy /Y ..\palaso\output\%BUILD_CONFIG%\Palaso.Lift.pdb lib\%BUILD_CONFIG%

copy /Y ..\palaso\output\%BUILD_CONFIG%\palasouiwindowsforms.dll lib\%BUILD_CONFIG%
copy /Y ..\palaso\output\%BUILD_CONFIG%\palasouiwindowsforms.pdb lib\%BUILD_CONFIG%

copy /Y ..\palaso\output\debug\palaso.testutilities.dll lib\debug
copy /Y ..\palaso\output\debug\palaso.testutilities.xml lib\debug
copy /Y ..\palaso\output\debug\palaso.testutilities.pdb debug

copy /Y ..\palaso\output\debug\palaso.* output\debug
copy /Y ..\palaso\output\debug\palaso.testutilities.* output\debug
copy /Y ..\palaso\output\debug\palasouiwindowsforms.* output\debug
copy /Y ..\palaso\output\%BUILD_CONFIG%\palaso.testutilities.dll lib\%BUILD_CONFIG%
copy /Y ..\palaso\output\%BUILD_CONFIG%\palaso.testutilities.pdb lib\%BUILD_CONFIG%

pause

0 comments on commit 89b44f1

Please sign in to comment.