-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
105 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
|
||
set "__VS=Visual Studio 16 2019" | ||
set "__VSWhere=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" | ||
set "__VSDISPLAY=" | ||
set "__VSVER=" | ||
if exist "%__VSWhere%" ( | ||
for /f "tokens=*" %%p in ( | ||
'"%__VSWhere%" -latest -property catalog_productLineVersion' | ||
) do set __VSDISPLAY=%%p | ||
|
||
for /f "tokens=*" %%p in ( | ||
'"%__VSWhere%" -latest -property catalog_productDisplayVersion' | ||
) do set __VSVER=%%p | ||
|
||
) | ||
if "%__VSVER%" neq "" ( | ||
set __VS=Visual Studio %__VSVER:~0,2% %__VSDisplay% | ||
) | ||
|
||
mkdir build32 & pushd build32 | ||
cmake -DLUAC_COMPATIBLE_FORMAT=ON -G "Visual Studio 14 2015" .. | ||
IF %ERRORLEVEL% NEQ 0 cmake -DLUAC_COMPATIBLE_FORMAT=ON -G "Visual Studio 15 2017" .. | ||
cmake -DLUAC_COMPATIBLE_FORMAT=ON -G "%__VS%" -A Win32 .. | ||
IF %ERRORLEVEL% NEQ 0 cmake -DLUAC_COMPATIBLE_FORMAT=ON -G "Visual Studio 16 2019" -A Win32 .. | ||
popd | ||
cmake --build build32 --config Release | ||
pause |
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,6 +1,25 @@ | ||
|
||
set "__VS=Visual Studio 16 2019" | ||
set "__VSWhere=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" | ||
set "__VSDISPLAY=" | ||
set "__VSVER=" | ||
if exist "%__VSWhere%" ( | ||
for /f "tokens=*" %%p in ( | ||
'"%__VSWhere%" -latest -property catalog_productLineVersion' | ||
) do set __VSDISPLAY=%%p | ||
|
||
for /f "tokens=*" %%p in ( | ||
'"%__VSWhere%" -latest -property catalog_productDisplayVersion' | ||
) do set __VSVER=%%p | ||
|
||
) | ||
if "%__VSVER%" neq "" ( | ||
set __VS=Visual Studio %__VSVER:~0,2% %__VSDisplay% | ||
) | ||
|
||
mkdir build64 & pushd build64 | ||
cmake -DLUAC_COMPATIBLE_FORMAT=ON -G "Visual Studio 14 2015 Win64" .. | ||
IF %ERRORLEVEL% NEQ 0 cmake -DLUAC_COMPATIBLE_FORMAT=ON -G "Visual Studio 15 2017 Win64" .. | ||
cmake -DLUAC_COMPATIBLE_FORMAT=ON -G "%__VS%" -A x64 .. | ||
IF %ERRORLEVEL% NEQ 0 cmake -DLUAC_COMPATIBLE_FORMAT=ON -G "Visual Studio 16 2019" -A x64 .. | ||
popd | ||
cmake --build build64 --config Release | ||
pause |
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
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