Created
August 13, 2017 08:02
-
-
Save DanCraft99/3a99be44e26a1cd878b8578863cfcef6 to your computer and use it in GitHub Desktop.
Setup for building Windows Application from command lines using VS 2017 C++ Build Tools
This file contains hidden or 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
@echo Setting Includes paths now.... | |
@echo `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat x64 10.0.15063.0` | |
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64 | |
set WINDOWSSDKDIR=C:\Program Files (x86)\Windows Kits\10 | |
@echo Overriding Setting Includes paths now.... | |
SET INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\um;%INCLUDE% | |
SET INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt;%INCLUDE% | |
SET INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared;%INCLUDE% | |
SET INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\winrt;%INCLUDE% | |
echo Setting Library paths now.... | |
SET LIB=C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\ucrt\x64;%LIB% | |
SET LIB=C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\um\x64;%LIB% |
The whole trouble of the setup comes from the aging SDK tool vcvarsall.bat used for the Build environment setup. That tool is not well maintained and lack of documentation. Somehow, you will need to pray and find your way out when things do not work out as claimed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please take note that this gist is FOR and ONLY FOR those few coders that prefer build applications from command lines. For others, please stick to your Visual Studio Professional or Community build for bullet-proof build setups.