-
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.
Add MSBuild script for Visual Studio 2010, 2012, 2013 and 2015.
- Loading branch information
Showing
22 changed files
with
210 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v120\Toolset.props"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.props"/> | ||
</Project> |
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v120\Toolset.targets"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.targets"/> | ||
</Project> |
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v120_xp\Toolset.props"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.props"/> | ||
</Project> |
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v120_xp\Toolset.targets"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.targets"/> | ||
</Project> |
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v140\Toolset.props"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.props"/> | ||
</Project> |
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v140\Toolset.targets"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.targets"/> | ||
</Project> |
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v140_xp\Toolset.props"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.props"/> | ||
</Project> |
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v140_xp\Toolset.targets"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.targets"/> | ||
</Project> |
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v100\Microsoft.Cpp.$(Platform).v100.props"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.props"/> | ||
</Project> |
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v100\Microsoft.Cpp.$(Platform).v100.targets"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.targets"/> | ||
</Project> |
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v110\Microsoft.Cpp.$(Platform).v110.props"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.props"/> | ||
</Project> |
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v110\Microsoft.Cpp.$(Platform).v110.targets"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.targets"/> | ||
</Project> |
4 changes: 4 additions & 0 deletions
4
VS2015/Win32/LLVM v110_xp/Microsoft.Cpp.Win32.LLVM v110_xp.props
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v110_xp\Microsoft.Cpp.$(Platform).v110_xp.props"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.props"/> | ||
</Project> |
4 changes: 4 additions & 0 deletions
4
VS2015/Win32/LLVM v110_xp/Microsoft.Cpp.Win32.LLVM v110_xp.targets
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v110_xp\Microsoft.Cpp.$(Platform).v110_xp.targets"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.targets"/> | ||
</Project> |
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,83 @@ | ||
@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 "..\VS2017\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 "..\VS2017\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 "..\VS2017\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 "..\VS2017\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\" | ||
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 |
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v100\Microsoft.Cpp.$(Platform).v100.props"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.props"/> | ||
</Project> |
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v100\Microsoft.Cpp.$(Platform).v100.targets"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.targets"/> | ||
</Project> |
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v110\Microsoft.Cpp.$(Platform).v110.props"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.props"/> | ||
</Project> |
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v110\Microsoft.Cpp.$(Platform).v110.targets"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.targets"/> | ||
</Project> |
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v110_xp\Microsoft.Cpp.$(Platform).v110_xp.props"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.props"/> | ||
</Project> |
4 changes: 4 additions & 0 deletions
4
VS2015/x64/LLVM v110_xp/Microsoft.Cpp.x64.LLVM v110_xp.targets
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,4 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v110_xp\Microsoft.Cpp.$(Platform).v110_xp.targets"/> | ||
<Import Project="$(VCTargetsPath)\LLVM\LLVM.Common.targets"/> | ||
</Project> |
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