forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.cmd
More file actions
39 lines (32 loc) · 1.75 KB
/
make.cmd
File metadata and controls
39 lines (32 loc) · 1.75 KB
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
@REM Make sure ProgramFiles(x86) variable is defined
@SET "ProgramFilesBase=%ProgramFiles% (x86)"
@IF NOT EXIST "%ProgramFilesBase%" (
SET "ProgramFilesBase=%ProgramFiles%"
)
ECHO %ProgramFilesBase%
@REM Set up environment so that we can run Visual Studio.
@REM More-or-less the same effect as running vcvars32.bat
@REM from the Visual Studio source tree.
@REM @call vcvars32
@set "PATH=%ProgramFilesBase%\Microsoft Visual Studio 10.0\VSTSDB\Deploy;%ProgramFilesBase%\Microsoft Visual Studio 10.0\Common7\IDE\;%ProgramFilesBase%\Microsoft Visual Studio 10.0\VC\BIN;%ProgramFilesBase%\Microsoft Visual Studio 10.0\Common7\Tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Windows\Microsoft.NET\Framework\v3.5;%ProgramFilesBase%\Microsoft Visual Studio 10.0\VC\VCPackages;%ProgramFilesBase%\HTML Help Workshop;%ProgramFilesBase%\Microsoft SDKs\Windows\7.0A\bin\NETFX 4.0 Tools;%ProgramFilesBase%\Microsoft SDKs\Windows\7.0A\bin;C:\Perl64\site\bin;C:\Perl64\bin;C:\Perl\site\bin;C:\Perl\bin;C:\windows\system32;C:\windows;C:\windows\system32\wbem"
@REM Works around hangs when generating .pdb files
@REM Needs to run in the background as never terminates
@REM
@start /min /b mspdbsrv -start -spawn -shutdowntime -1
@REM Select the correct build mode.
@REM
@IF NOT DEFINED BUILDTYPE SET BUILDTYPE=Debug
@REM Select the correct build project file
@REM
IF NOT DEFINED BUILD_EDITION SET BUILD_EDITION=community
IF %BUILD_EDITION%==commercial (
SET BUILD_PROJECT=livecode-commercial.sln
) ELSE (
SET BUILD_PROJECT=livecode\livecode.sln
)
IF -%1-==-- (
@msbuild %BUILD_PROJECT% /fl /flp:Verbosity=normal /nologo /p:Configuration=%BUILDTYPE% /m:1
) ELSE (
@msbuild %BUILD_PROJECT% /fl /flp:Verbosity=normal /nologo /p:Configuration=%BUILDTYPE% /m:1 /t:%TARGET%
)
@exit %ERRORLEVEL%