Skip to content

Commit

Permalink
update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
lovettchris committed Feb 15, 2017
1 parent f12164a commit 4db8355
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
13 changes: 11 additions & 2 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@echo off

msbuild /p:Platform=x64 /p:Configuration=Debug DroneShell.sln
msbuild /p:Platform=x64 /p:Configuration=Release DroneShell.sln
if ERRORLEVEL 1 goto :buildfailed
msbuild /p:Platform=x64 /p:Configuration=Release DroneShell.sln
if ERRORLEVEL 1 goto :buildfailed

set MAVLINK_TARGET_LIB=AirLib\deps\MavLinkCom\lib
if NOT exist %MAVLINK_TARGET_LIB% mkdir %MAVLINK_TARGET_LIB%
Expand All @@ -11,4 +15,9 @@ if NOT exist Unreal\Plugins\AirSim\Source\AirLib mkdir Unreal\Plugins\AirSim\Sou

robocopy /MIR MavLinkCom\include %MAVLINK_TARGET_INCLUDE%
robocopy /MIR MavLinkCom\lib %MAVLINK_TARGET_LIB%
robocopy /MIR AirLib Unreal\Plugins\AirSim\Source\AirLib /XD temp
robocopy /MIR AirLib Unreal\Plugins\AirSim\Source\AirLib /XD temp
goto :eof

:buildfailed
echo #### Build failed
goto :eof
10 changes: 10 additions & 0 deletions clean.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

msbuild /p:Platform=x64 /p:Configuration=Debug DroneShell.sln /t:Clean
if ERRORLEVEL 1 goto :buildfailed
msbuild /p:Platform=x64 /p:Configuration=Release DroneShell.sln /t:Clean
if ERRORLEVEL 1 goto :buildfailed
goto :eof

:buildfailed
echo #### Build failed
goto :eof

0 comments on commit 4db8355

Please sign in to comment.