-
Notifications
You must be signed in to change notification settings - Fork 35
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
10 changed files
with
338 additions
and
13 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,4 +1,6 @@ | ||
dist/LLVM*/ | ||
*.pyc | ||
*.pyo | ||
*.plist | ||
*.orig | ||
*.zip |
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 |
---|---|---|
|
@@ -83,3 +83,4 @@ IF %SUCCESS% == 0 ( | |
|
||
POPD | ||
ENDLOCAL | ||
EXIST /B |
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,35 @@ | ||
@ECHO OFF | ||
SETLOCAL ENABLEEXTENSIONS | ||
|
||
SET "EXIST_ON_ERROR=%~1" | ||
SET SUCCESS=0 | ||
|
||
PUSHD %~dp0 | ||
|
||
@rem Visual Studio 2010 | ||
:TRY_2010 | ||
SET VCT_PATH=%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\Platforms | ||
IF EXIST "%VCT_PATH%" GOTO FIND_2010 | ||
SET VCT_PATH=%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\Platforms | ||
IF EXIST "%VCT_PATH%" GOTO FIND_2010 | ||
GOTO VC_NOT_FOUND | ||
|
||
:FIND_2010 | ||
ECHO VCTargetsPath for Visual Studio 2010: %VCT_PATH% | ||
XCOPY /Q /Y "LLVM" "%VCT_PATH%\..\LLVM\" | ||
XCOPY /Q /Y "x64\LLVM_v100" "%VCT_PATH%\x64\PlatformToolsets\LLVM_v100\" | ||
XCOPY /Q /Y "Win32\LLVM_v100" "%VCT_PATH%\Win32\PlatformToolsets\LLVM_v100\" | ||
XCOPY /Q /Y "x64\LLVM_v90" "%VCT_PATH%\x64\PlatformToolsets\LLVM_v90\" | ||
XCOPY /Q /Y "Win32\LLVM_v90" "%VCT_PATH%\Win32\PlatformToolsets\LLVM_v90\" | ||
SET SUCCESS=1 | ||
|
||
|
||
:VC_NOT_FOUND | ||
IF %SUCCESS% == 0 ( | ||
ECHO Visual C++ 2010 NOT Installed. | ||
IF "%EXIST_ON_ERROR%" == "" PAUSE | ||
) | ||
|
||
POPD | ||
ENDLOCAL | ||
EXIST /B |
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,86 @@ | ||
@ECHO OFF | ||
SETLOCAL ENABLEEXTENSIONS | ||
|
||
SET "EXIST_ON_ERROR=%~1" | ||
SET SUCCESS=0 | ||
|
||
PUSHD %~dp0 | ||
|
||
@rem Visual Studio 2015 | ||
:TRY_2015 | ||
SET VCT_PATH=%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms | ||
IF EXIST "%VCT_PATH%" GOTO FIND_2015 | ||
SET VCT_PATH=%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms | ||
IF EXIST "%VCT_PATH%" GOTO FIND_2015 | ||
GOTO TRY_2013 | ||
|
||
:FIND_2015 | ||
ECHO VCTargetsPath for Visual Studio 2015: %VCT_PATH% | ||
XCOPY /Q /Y "LLVM" "%VCT_PATH%\..\LLVM\" | ||
XCOPY /Q /Y "LLVM_v140" "%VCT_PATH%\x64\PlatformToolsets\LLVM_v140\" | ||
XCOPY /Q /Y "LLVM_v140_xp" "%VCT_PATH%\x64\PlatformToolsets\LLVM_v140_xp\" | ||
XCOPY /Q /Y "LLVM_v140" "%VCT_PATH%\Win32\PlatformToolsets\LLVM_v140\" | ||
XCOPY /Q /Y "LLVM_v140_xp" "%VCT_PATH%\Win32\PlatformToolsets\LLVM_v140_xp\" | ||
SET SUCCESS=1 | ||
|
||
@rem Visual Studio 2013 | ||
:TRY_2013 | ||
SET VCT_PATH=%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms | ||
IF EXIST "%VCT_PATH%" GOTO FIND_2013 | ||
SET VCT_PATH=%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms | ||
IF EXIST "%VCT_PATH%" GOTO FIND_2013 | ||
GOTO TRY_2012 | ||
|
||
:FIND_2013 | ||
ECHO VCTargetsPath for Visual Studio 2013: %VCT_PATH% | ||
XCOPY /Q /Y "LLVM" "%VCT_PATH%\..\LLVM\" | ||
XCOPY /Q /Y "LLVM_v120" "%VCT_PATH%\x64\PlatformToolsets\LLVM_v120\" | ||
XCOPY /Q /Y "LLVM_v120_xp" "%VCT_PATH%\x64\PlatformToolsets\LLVM_v120_xp\" | ||
XCOPY /Q /Y "LLVM_v120" "%VCT_PATH%\Win32\PlatformToolsets\LLVM_v120\" | ||
XCOPY /Q /Y "LLVM_v120_xp" "%VCT_PATH%\Win32\PlatformToolsets\LLVM_v120_xp\" | ||
SET SUCCESS=1 | ||
|
||
@rem Visual Studio 2012 | ||
:TRY_2012 | ||
SET VCT_PATH=%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms | ||
IF EXIST "%VCT_PATH%" GOTO FIND_2012 | ||
SET VCT_PATH=%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms | ||
IF EXIST "%VCT_PATH%" GOTO FIND_2012 | ||
GOTO TRY_2010 | ||
|
||
:FIND_2012 | ||
ECHO VCTargetsPath for Visual Studio 2012: %VCT_PATH% | ||
XCOPY /Q /Y "LLVM" "%VCT_PATH%\..\LLVM\" | ||
XCOPY /Q /Y "x64\LLVM_v110" "%VCT_PATH%\x64\PlatformToolsets\LLVM_v110\" | ||
XCOPY /Q /Y "x64\LLVM_v110_xp" "%VCT_PATH%\x64\PlatformToolsets\LLVM_v110_xp\" | ||
XCOPY /Q /Y "Win32\LLVM_v110" "%VCT_PATH%\Win32\PlatformToolsets\LLVM_v110\" | ||
XCOPY /Q /Y "Win32\LLVM_v110_xp" "%VCT_PATH%\Win32\PlatformToolsets\LLVM_v110_xp\" | ||
SET SUCCESS=1 | ||
|
||
@rem Visual Studio 2010 | ||
:TRY_2010 | ||
SET VCT_PATH=%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\Platforms | ||
IF EXIST "%VCT_PATH%" GOTO FIND_2010 | ||
SET VCT_PATH=%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\Platforms | ||
IF EXIST "%VCT_PATH%" GOTO FIND_2010 | ||
GOTO VC_NOT_FOUND | ||
|
||
:FIND_2010 | ||
ECHO VCTargetsPath for Visual Studio 2010: %VCT_PATH% | ||
XCOPY /Q /Y "LLVM" "%VCT_PATH%\..\LLVM\" | ||
XCOPY /Q /Y "x64\LLVM_v100" "%VCT_PATH%\x64\PlatformToolsets\LLVM_v100\" | ||
XCOPY /Q /Y "Win32\LLVM_v100" "%VCT_PATH%\Win32\PlatformToolsets\LLVM_v100\" | ||
XCOPY /Q /Y "x64\LLVM_v90" "%VCT_PATH%\x64\PlatformToolsets\LLVM_v90\" | ||
XCOPY /Q /Y "Win32\LLVM_v90" "%VCT_PATH%\Win32\PlatformToolsets\LLVM_v90\" | ||
SET SUCCESS=1 | ||
|
||
|
||
:VC_NOT_FOUND | ||
IF %SUCCESS% == 0 ( | ||
ECHO Visual C++ 2015, 2013, 2012 or 2010 NOT Installed. | ||
IF "%EXIST_ON_ERROR%" == "" PAUSE | ||
) | ||
|
||
POPD | ||
ENDLOCAL | ||
EXIST /B |
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,35 @@ | ||
@ECHO OFF | ||
SETLOCAL ENABLEEXTENSIONS | ||
|
||
SET "EXIST_ON_ERROR=%~1" | ||
SET SUCCESS=0 | ||
|
||
PUSHD %~dp0 | ||
|
||
@rem Visual Studio 2012 | ||
:TRY_2012 | ||
SET VCT_PATH=%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms | ||
IF EXIST "%VCT_PATH%" GOTO FIND_2012 | ||
SET VCT_PATH=%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms | ||
IF EXIST "%VCT_PATH%" GOTO FIND_2012 | ||
GOTO VC_NOT_FOUND | ||
|
||
:FIND_2012 | ||
ECHO VCTargetsPath for Visual Studio 2012: %VCT_PATH% | ||
XCOPY /Q /Y "LLVM" "%VCT_PATH%\..\LLVM\" | ||
XCOPY /Q /Y "x64\LLVM_v110" "%VCT_PATH%\x64\PlatformToolsets\LLVM_v110\" | ||
XCOPY /Q /Y "x64\LLVM_v110_xp" "%VCT_PATH%\x64\PlatformToolsets\LLVM_v110_xp\" | ||
XCOPY /Q /Y "Win32\LLVM_v110" "%VCT_PATH%\Win32\PlatformToolsets\LLVM_v110\" | ||
XCOPY /Q /Y "Win32\LLVM_v110_xp" "%VCT_PATH%\Win32\PlatformToolsets\LLVM_v110_xp\" | ||
SET SUCCESS=1 | ||
|
||
|
||
:VC_NOT_FOUND | ||
IF %SUCCESS% == 0 ( | ||
ECHO Visual C++ 2012 NOT Installed. | ||
IF "%EXIST_ON_ERROR%" == "" PAUSE | ||
) | ||
|
||
POPD | ||
ENDLOCAL | ||
EXIST /B |
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,35 @@ | ||
@ECHO OFF | ||
SETLOCAL ENABLEEXTENSIONS | ||
|
||
SET "EXIST_ON_ERROR=%~1" | ||
SET SUCCESS=0 | ||
|
||
PUSHD %~dp0 | ||
|
||
@rem Visual Studio 2013 | ||
:TRY_2013 | ||
SET VCT_PATH=%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms | ||
IF EXIST "%VCT_PATH%" GOTO FIND_2013 | ||
SET VCT_PATH=%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms | ||
IF EXIST "%VCT_PATH%" GOTO FIND_2013 | ||
GOTO VC_NOT_FOUND | ||
|
||
:FIND_2013 | ||
ECHO VCTargetsPath for Visual Studio 2013: %VCT_PATH% | ||
XCOPY /Q /Y "LLVM" "%VCT_PATH%\..\LLVM\" | ||
XCOPY /Q /Y "LLVM_v120" "%VCT_PATH%\x64\PlatformToolsets\LLVM_v120\" | ||
XCOPY /Q /Y "LLVM_v120_xp" "%VCT_PATH%\x64\PlatformToolsets\LLVM_v120_xp\" | ||
XCOPY /Q /Y "LLVM_v120" "%VCT_PATH%\Win32\PlatformToolsets\LLVM_v120\" | ||
XCOPY /Q /Y "LLVM_v120_xp" "%VCT_PATH%\Win32\PlatformToolsets\LLVM_v120_xp\" | ||
SET SUCCESS=1 | ||
|
||
|
||
:VC_NOT_FOUND | ||
IF %SUCCESS% == 0 ( | ||
ECHO Visual C++ 2013 NOT Installed. | ||
IF "%EXIST_ON_ERROR%" == "" PAUSE | ||
) | ||
|
||
POPD | ||
ENDLOCAL | ||
EXIST /B |
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,35 @@ | ||
@ECHO OFF | ||
SETLOCAL ENABLEEXTENSIONS | ||
|
||
SET "EXIST_ON_ERROR=%~1" | ||
SET SUCCESS=0 | ||
|
||
PUSHD %~dp0 | ||
|
||
@rem Visual Studio 2015 | ||
:TRY_2015 | ||
SET VCT_PATH=%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms | ||
IF EXIST "%VCT_PATH%" GOTO FIND_2015 | ||
SET VCT_PATH=%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms | ||
IF EXIST "%VCT_PATH%" GOTO FIND_2015 | ||
GOTO VC_NOT_FOUND | ||
|
||
:FIND_2015 | ||
ECHO VCTargetsPath for Visual Studio 2015: %VCT_PATH% | ||
XCOPY /Q /Y "LLVM" "%VCT_PATH%\..\LLVM\" | ||
XCOPY /Q /Y "LLVM_v140" "%VCT_PATH%\x64\PlatformToolsets\LLVM_v140\" | ||
XCOPY /Q /Y "LLVM_v140_xp" "%VCT_PATH%\x64\PlatformToolsets\LLVM_v140_xp\" | ||
XCOPY /Q /Y "LLVM_v140" "%VCT_PATH%\Win32\PlatformToolsets\LLVM_v140\" | ||
XCOPY /Q /Y "LLVM_v140_xp" "%VCT_PATH%\Win32\PlatformToolsets\LLVM_v140_xp\" | ||
SET SUCCESS=1 | ||
|
||
|
||
:VC_NOT_FOUND | ||
IF %SUCCESS% == 0 ( | ||
ECHO Visual C++ 2015 NOT Installed. | ||
IF "%EXIST_ON_ERROR%" == "" PAUSE | ||
) | ||
|
||
POPD | ||
ENDLOCAL | ||
EXIST /B |
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,71 @@ | ||
@ECHO OFF | ||
|
||
SETLOCAL ENABLEEXTENSIONS | ||
CD /D %~dp0 | ||
|
||
|
||
ECHO Visual Studio 2017 and 2019 | ||
@RD /Q /S LLVM_VS2017 | ||
XCOPY /Q /S /Y ..\VS2017 LLVM_VS2017\ | ||
CALL :SUB_MAKE_ZIP LLVM_VS2017 | ||
@RD /Q /S LLVM_VS2017 | ||
|
||
|
||
ECHO Visual Studio 2010 to 2015 | ||
@RD /Q /S LLVM_VS2010_2015 | ||
XCOPY /Q /Y ..\VS2017\LLVM LLVM_VS2010_2015\LLVM\ | ||
XCOPY /Q /S /Y ..\VS2015 LLVM_VS2010_2015\ | ||
XCOPY /Q /Y install_VS2010_2015.bat LLVM_VS2010_2015\install.bat* | ||
CALL :SUB_MAKE_ZIP LLVM_VS2010_2015 | ||
@RD /Q /S LLVM_VS2010_2015 | ||
|
||
|
||
ECHO Visual Studio 2015 | ||
@RD /Q /S LLVM_VS2015 | ||
XCOPY /Q /Y ..\VS2017\LLVM LLVM_VS2015\LLVM\ | ||
XCOPY /Q /Y ..\VS2015\LLVM_v140 LLVM_VS2015\LLVM_v140\ | ||
XCOPY /Q /Y ..\VS2015\LLVM_v140_xp LLVM_VS2015\LLVM_v140_xp\ | ||
XCOPY /Q /Y install_VS2015.bat LLVM_VS2015\install.bat* | ||
CALL :SUB_MAKE_ZIP LLVM_VS2015 | ||
@RD /Q /S LLVM_VS2015 | ||
|
||
|
||
ECHO Visual Studio 2013 | ||
@RD /Q /S LLVM_VS2013 | ||
XCOPY /Q /Y ..\VS2017\LLVM LLVM_VS2013\LLVM\ | ||
XCOPY /Q /Y ..\VS2015\LLVM_v120 LLVM_VS2013\LLVM_v120\ | ||
XCOPY /Q /Y ..\VS2015\LLVM_v120_xp LLVM_VS2013\LLVM_v120_xp\ | ||
XCOPY /Q /Y install_VS2013.bat LLVM_VS2013\install.bat* | ||
CALL :SUB_MAKE_ZIP LLVM_VS2013 | ||
@RD /Q /S LLVM_VS2013 | ||
|
||
|
||
ECHO Visual Studio 2012 | ||
@RD /Q /S LLVM_VS2012 | ||
XCOPY /Q /Y ..\VS2017\LLVM LLVM_VS2012\LLVM\ | ||
XCOPY /Q /Y ..\VS2015\x64\LLVM_v110 LLVM_VS2012\x64\LLVM_v110\ | ||
XCOPY /Q /Y ..\VS2015\x64\LLVM_v110_xp LLVM_VS2012\x64\LLVM_v110_xp\ | ||
XCOPY /Q /Y ..\VS2015\Win32\LLVM_v110 LLVM_VS2012\Win32\LLVM_v110\ | ||
XCOPY /Q /Y ..\VS2015\Win32\LLVM_v110_xp LLVM_VS2012\Win32\LLVM_v110_xp\ | ||
XCOPY /Q /Y install_VS2012.bat LLVM_VS2012\install.bat* | ||
CALL :SUB_MAKE_ZIP LLVM_VS2012 | ||
@RD /Q /S LLVM_VS2012 | ||
|
||
|
||
ECHO Visual Studio 2010 | ||
@RD /Q /S LLVM_VS2010 | ||
XCOPY /Q /Y ..\VS2017\LLVM LLVM_VS2010\LLVM\ | ||
XCOPY /Q /Y ..\VS2015\x64\LLVM_v100 LLVM_VS2010\x64\LLVM_v100\ | ||
XCOPY /Q /Y ..\VS2015\x64\LLVM_v90 LLVM_VS2010\x64\LLVM_v90\ | ||
XCOPY /Q /Y ..\VS2015\Win32\LLVM_v100 LLVM_VS2010\Win32\LLVM_v100\ | ||
XCOPY /Q /Y ..\VS2015\Win32\LLVM_v90 LLVM_VS2010\Win32\LLVM_v90\ | ||
XCOPY /Q /Y install_VS2010.bat LLVM_VS2010\install.bat* | ||
CALL :SUB_MAKE_ZIP LLVM_VS2010 | ||
@RD /Q /S LLVM_VS2010 | ||
|
||
EXIT /B | ||
|
||
:SUB_MAKE_ZIP | ||
7z a -tzip -mx9 "%~1.zip" "%~1" >NUL | ||
ENDLOCAL | ||
EXIT /B |
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