-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request xbmc#13279 from Paxxi/vswhere
[xbmc][win32] First step in supporting VS2017
- Loading branch information
Showing
25 changed files
with
109 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
@ECHO OFF | ||
SETLOCAL ENABLEDELAYEDEXPANSION | ||
REM setup all paths | ||
PUSHD %~dp0\..\..\.. | ||
SET base_dir=%CD% | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
@ECHO OFF | ||
|
||
SET cmakeGenerator=Visual Studio 14 ARM | ||
SET TARGET_ARCHITECTURE=arm | ||
PUSHD %~dp0\.. | ||
|
||
rem set Visual C++ build environment for binary addons | ||
call "%VS140COMNTOOLS%..\..\VC\bin\amd64_arm\vcvarsamd64_arm.bat" store 10.0.14393.0 || call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" arm store 10.0.14393.0 | ||
CALL vswhere.bat arm store | ||
|
||
SET cmakeGenerator=Visual Studio %vsver% ARM | ||
SET TARGET_ARCHITECTURE=arm | ||
SET cmakeProps=-DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=%UCRTVersion% | ||
PUSHD %~dp0\.. | ||
|
||
CALL BuildSetup.bat %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
@ECHO OFF | ||
|
||
rem set Visual C++ build environment | ||
call "%VS140COMNTOOLS%..\..\VC\bin\amd64_arm\vcvarsamd64_arm.bat" store 10.0.14393.0 || call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" arm store 10.0.14393.0 | ||
|
||
PUSHD %~dp0\.. | ||
call vswhere.bat arm store | ||
CALL bootstrap-addons %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
@ECHO OFF | ||
|
||
rem set Visual C++ build environment | ||
call "%VS140COMNTOOLS%..\..\VC\bin\amd64_arm\vcvarsamd64_arm.bat" store 10.0.14393.0 || call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" arm store 10.0.14393.0 | ||
|
||
PUSHD %~dp0\.. | ||
call vswhere.bat arm store | ||
CALL make-addons.bat win10 %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
@ECHO OFF | ||
|
||
PUSHD %~dp0\.. | ||
call vswhere.bat arm store | ||
CALL make-mingwlibs.bat buildArm win10 %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
@ECHO OFF | ||
|
||
SETLOCAL | ||
|
||
SET EXITCODE=0 | ||
|
||
SET install=false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
@ECHO OFF | ||
|
||
|
||
REM Trick to make the path absolute | ||
PUSHD %~dp0\..\..\..\project\BuildDependencies | ||
SET builddeps=%CD% | ||
POPD | ||
|
||
SET arch=%1 | ||
SET vcarch=amd64 | ||
SET vcstore=%2 | ||
SET vcvars=no | ||
SET sdkver= | ||
|
||
SET vsver= | ||
SET toolsdir=%arch% | ||
|
||
IF "%arch%" NEQ "x64" ( | ||
SET vcarch=%vcarch%_%arch% | ||
) | ||
|
||
IF "%arch%"=="x86" ( | ||
SET toolsdir=win32 | ||
) | ||
|
||
IF "%vcstore%"=="store" ( | ||
SET sdkver=10.0.14393.0 | ||
SET toolsdir="win10-%toolsdir%" | ||
) | ||
|
||
SET vswhere="%builddeps%\%toolsdir%\tools\vswhere\vswhere.exe" | ||
|
||
FOR /f "usebackq tokens=1* delims=" %%i in (`%vswhere% -latest -property installationPath`) do ( | ||
IF EXIST "%%i\VC\Auxiliary\Build\vcvarsall.bat" ( | ||
SET vcvars="%%i\VC\Auxiliary\Build\vcvarsall.bat" | ||
SET vsver=15 | ||
) | ||
) | ||
|
||
IF %vcvars%==no ( | ||
FOR /f "usebackq tokens=1* delims=" %%i in (`%vswhere% -legacy -property installationPath`) do ( | ||
ECHO %%i | findstr "14" >NUL 2>NUL | ||
IF NOT ERRORLEVEL 1 ( | ||
IF EXIST "%%i\VC\vcvarsall.bat" ( | ||
SET vcvars="%%i\VC\vcvarsall.bat" | ||
SET vsver=14 | ||
) | ||
) | ||
) | ||
) | ||
|
||
IF %vcvars%==no ( | ||
ECHO "ERROR! Could not find vcvarsall.bat" | ||
EXIT /B 1 | ||
) | ||
|
||
REM vcvars changes the cwd so we need to store it and restore it | ||
PUSHD %~dp0 | ||
CALL %vcvars% %vcarch% %vcstore% %sdkver% | ||
POPD | ||
|
||
IF ERRORLEVEL 1 ( | ||
ECHO "ERROR! something went wrong when calling" | ||
ECHO %vcvars% %vcarch% %vcstore% %sdkver% | ||
EXIT /B 1 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
@ECHO OFF | ||
|
||
SET cmakeGenerator=Visual Studio 14 | ||
SET TARGET_ARCHITECTURE=x86 | ||
|
||
rem set Visual C++ build environment for binary addons | ||
call "%VS140COMNTOOLS%..\..\VC\bin\amd64_x86\vcvarsamd64_x86.bat" store 10.0.14393.0 || call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x86 store 10.0.14393.0 | ||
PUSHD %~dp0\.. | ||
CALL vswhere.bat x86 store | ||
|
||
SET cmakeGenerator=Visual Studio %vsver% | ||
SET TARGET_ARCHITECTURE=x86 | ||
SET cmakeProps=-DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=%UCRTVersion% | ||
PUSHD %~dp0\.. | ||
|
||
CALL BuildSetup.bat %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
@ECHO OFF | ||
|
||
rem set Visual C++ build environment | ||
call "%VS140COMNTOOLS%..\..\VC\bin\amd64_x86\vcvarsamd64_x86.bat" store 10.0.14393.0 || call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x86 store 10.0.14393.0 | ||
|
||
PUSHD %~dp0\.. | ||
CALL vswhere.bat x86 store | ||
CALL bootstrap-addons %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
@ECHO OFF | ||
|
||
rem set Visual C++ build environment | ||
call "%VS140COMNTOOLS%..\..\VC\bin\amd64_x86\vcvarsamd64_x86.bat" store 10.0.14393.0 || call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x86 store 10.0.14393.0 | ||
|
||
PUSHD %~dp0\.. | ||
CALL vswhere.bat x86 store | ||
CALL make-addons.bat win10 %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
@ECHO OFF | ||
|
||
PUSHD %~dp0\.. | ||
CALL vswhere.bat x86 store | ||
CALL make-mingwlibs.bat win10 %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
@ECHO OFF | ||
|
||
SET cmakeGenerator=Visual Studio 14 | ||
SET TARGET_ARCHITECTURE=x86 | ||
PUSHD %~dp0\.. | ||
|
||
rem set Visual C++ build environment for binary addons | ||
call "%VS140COMNTOOLS%..\..\VC\bin\amd64_x86\vcvarsamd64_x86.bat" || call "%VS140COMNTOOLS%..\..\VC\bin\vcvars32.bat" | ||
CALL vswhere.bat x86 | ||
|
||
SET cmakeGenerator=Visual Studio %vsver% | ||
SET TARGET_ARCHITECTURE=x86 | ||
|
||
PUSHD %~dp0\.. | ||
CALL BuildSetup.bat %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
@ECHO OFF | ||
|
||
rem set Visual C++ build environment | ||
call "%VS140COMNTOOLS%..\..\VC\bin\amd64_x86\vcvarsamd64_x86.bat" || call "%VS140COMNTOOLS%..\..\VC\bin\vcvars32.bat" | ||
|
||
PUSHD %~dp0\.. | ||
CALL vswhere.bat x86 | ||
CALL bootstrap-addons %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
@ECHO OFF | ||
|
||
rem set Visual C++ build environment | ||
call "%VS140COMNTOOLS%..\..\VC\bin\amd64_x86\vcvarsamd64_x86.bat" || call "%VS140COMNTOOLS%..\..\VC\bin\vcvars32.bat" | ||
|
||
PUSHD %~dp0\.. | ||
CALL vswhere.bat x86 | ||
CALL make-addons.bat %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
@ECHO OFF | ||
|
||
PUSHD %~dp0\.. | ||
CALL vswhere.bat x86 | ||
CALL make-mingwlibs.bat %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
@ECHO OFF | ||
|
||
SET cmakeGenerator=Visual Studio 14 Win64 | ||
SET TARGET_ARCHITECTURE=x64 | ||
|
||
rem set Visual C++ build environment for binary addons | ||
call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" amd64 store 10.0.14393.0 | ||
PUSHD %~dp0\.. | ||
CALL vswhere.bat x64 store | ||
|
||
SET cmakeGenerator=Visual Studio %vsver% Win64 | ||
SET TARGET_ARCHITECTURE=x64 | ||
SET cmakeProps=-DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=%UCRTVersion% | ||
PUSHD %~dp0\.. | ||
|
||
CALL BuildSetup.bat %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
@ECHO OFF | ||
|
||
rem set Visual C++ build environment | ||
call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" amd64 store 10.0.14393.0 | ||
|
||
PUSHD %~dp0\.. | ||
CALL vswhere.bat x64 store | ||
CALL bootstrap-addons %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
@ECHO OFF | ||
|
||
rem set Visual C++ build environment | ||
call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" amd64 store 10.0.14393.0 | ||
|
||
PUSHD %~dp0\.. | ||
CALL vswhere.bat x64 store | ||
CALL make-addons.bat win10 %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
@ECHO OFF | ||
|
||
PUSHD %~dp0\.. | ||
CALL vswhere.bat x64 store | ||
CALL make-mingwlibs.bat build64 win10 %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
@ECHO OFF | ||
|
||
SET cmakeGenerator=Visual Studio 14 Win64 | ||
SET TARGET_ARCHITECTURE=x64 | ||
PUSHD %~dp0\.. | ||
CALL vswhere.bat x64 | ||
|
||
rem set Visual C++ build environment for binary addons | ||
call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x64 | ||
SET cmakeGenerator=Visual Studio %vsver% Win64 | ||
SET TARGET_ARCHITECTURE=x64 | ||
|
||
PUSHD %~dp0\.. | ||
CALL BuildSetup.bat %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
@ECHO OFF | ||
|
||
rem set Visual C++ build environment | ||
call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x64 | ||
|
||
PUSHD %~dp0\.. | ||
CALL vswhere.bat x64 | ||
CALL bootstrap-addons %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
@ECHO OFF | ||
|
||
rem set Visual C++ build environment | ||
call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x64 | ||
|
||
PUSHD %~dp0\.. | ||
CALL vswhere.bat x64 | ||
CALL make-addons.bat %* | ||
POPD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
@ECHO OFF | ||
|
||
PUSHD %~dp0\.. | ||
CALL vswhere.bat x64 | ||
CALL make-mingwlibs.bat build64 %* | ||
POPD |