-
Notifications
You must be signed in to change notification settings - Fork 6
/
build_libs_2015.cmd
35 lines (28 loc) · 1.95 KB
/
build_libs_2015.cmd
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
@echo off
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
if "aa%VS140COMNTOOLS%" == "aa" goto novs140
if NOT "aa%GARBAGE%" == "aa" goto garbok
echo warning: no ^"GARBAGE^" variable defined (path to temp compile files, must not be inside %TEMP%)
set GARBAGE="%cd%\~garbage"
if not exist %GARBAGE% md %GARBAGE%
:garbok
echo ^"GARBAGE^" is %GARBAGE%
set vsc="%VS140COMNTOOLS%..\..\vc\bin"
set msb="C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe"
if a%1a == a64a (
%msb% toxcore\vs\toxcore_2015_64.vcxproj /fl1 /clp:ErrorsOnly /m:3 /t:Rebuild /p:Configuration=Debug;GARBAGE=%GARBAGE%;SolutionDir=..\..\;Platform=x64
%msb% toxcore\vs\toxcore_2015_64.vcxproj /fl1 /clp:ErrorsOnly /m:3 /t:Rebuild /p:Configuration=Release;GARBAGE=%GARBAGE%;SolutionDir=..\..\;Platform=x64
%msb% opus\opus_2015_64.vcxproj /fl1 /clp:ErrorsOnly /m:3 /t:Rebuild /p:Configuration=Release;GARBAGE=%GARBAGE%;SolutionDir=..\;Platform=x64
%msb% libsodium\libsodium_2015_64.vcxproj /fl1 /clp:ErrorsOnly /m:3 /t:Rebuild /p:Configuration=Release;GARBAGE=%GARBAGE%;SolutionDir=..\;Platform=x64
%msb% libvpx\libvpx_2015_64.vcxproj /fl1 /clp:ErrorsOnly /m:3 /t:Rebuild /p:Configuration=Release;GARBAGE=%GARBAGE%;SolutionDir=..\;Platform=x64
) else (
%msb% toxcore\vs\toxcore_2015.vcxproj /fl1 /clp:ErrorsOnly /m:3 /t:Rebuild /p:Configuration=Debug;GARBAGE=%GARBAGE%;SolutionDir=..\..\
%msb% toxcore\vs\toxcore_2015.vcxproj /fl1 /clp:ErrorsOnly /m:3 /t:Rebuild /p:Configuration=Release;GARBAGE=%GARBAGE%;SolutionDir=..\..\
%msb% opus\opus_2015.vcxproj /fl1 /clp:ErrorsOnly /m:3 /t:Rebuild /p:Configuration=Release;GARBAGE=%GARBAGE%;SolutionDir=..\
%msb% libsodium\libsodium_2015.vcxproj /fl1 /clp:ErrorsOnly /m:3 /t:Rebuild /p:Configuration=Release;GARBAGE=%GARBAGE%;SolutionDir=..\
%msb% libvpx\libvpx_2015.vcxproj /fl1 /clp:ErrorsOnly /m:3 /t:Rebuild /p:Configuration=Release;GARBAGE=%GARBAGE%;SolutionDir=..\
)
goto oka
:novs140
echo error: Visual Studio 2015 not found (install Visual Studio 2015 Express for free)
:oka