-
Notifications
You must be signed in to change notification settings - Fork 24
/
build.bat
22 lines (19 loc) · 907 Bytes
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@echo off
rem See 'readme' file
if "%PROCESSOR_ARCHITECTURE%"=="x86" set BDS=%ProgramFiles%\Embarcadero\Studio\14.0
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set BDS=%ProgramFiles(x86)%\Embarcadero\Studio\14.0
set WITH_DRAGEXT64=0
set WITH_DOTNET=1
rem set DRAGEXT64CL=<path to x64 cl.exe>
rem set DRAGEXT64INCL=<path to x64 includes>
rem set DRAGEXT64LIB=<path to x64 libraries>
if "%BUILD_TARGET%"=="" set BUILD_TARGET=Build
if "%BUILD_CONFIG%"=="" set BUILD_CONFIG=Release
cd libs
call buildlibs.bat
cd ..\source
%WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe WinSCP.groupproj /t:%BUILD_TARGET% /p:RELEASE_TYPE=%RELEASE_TYPE%;CONFIG=%BUILD_CONFIG%;INTERM_PATH=.;FINAL_PATH=.
if "%WITH_DOTNET%"=="0" goto SKIP_DOTNET
cd ..\dotnet
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe WinSCPnet.csproj /t:Build "/p:Configuration=%BUILD_CONFIG%;Platform=AnyCPU;INTERM_PATH=.;FINAL_PATH=."
:SKIP_DOTNET