llvm.org GIT mirror llvm / a22ff96
Include an LLVM-vs2012_xp toolset in the MSBuild integration Patch by Paul Hampson! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191010 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 7 years ago
4 changed file(s) with 37 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
11 set(prop_file_in "Microsoft.Cpp.Win32.llvm.props.in")
22 set(prop_file_v100 "Microsoft.Cpp.Win32.LLVM-vs2010.props")
33 set(prop_file_v110 "Microsoft.Cpp.Win32.LLVM-vs2012.props")
4 set(prop_file_v110_xp "Microsoft.Cpp.Win32.LLVM-vs2012_xp.props")
45
56 # CPack will install a registry key in this format that we wish to reference.
67 set(REG_KEY "${CMAKE_PROJECT_NAME} ${CPACK_PACKAGE_VERSION}")
910 configure_file(${prop_file_in} ${prop_file_v100})
1011 set(VS_VERSION "v110")
1112 configure_file(${prop_file_in} ${prop_file_v110})
13 set(VS_VERSION "v110_xp")
14 configure_file(${prop_file_in} ${prop_file_v110_xp})
1215
1316 set(REG_KEY)
1417 set(VS_VERSION)
1518 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${prop_file_v100}" DESTINATION tools/msbuild)
1619 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${prop_file_v110}" DESTINATION tools/msbuild)
20 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${prop_file_v110_xp}" DESTINATION tools/msbuild)
1721
1822 install(DIRECTORY .
1923 DESTINATION tools/msbuild
0
1
2
3 v4.0
4 NoSupportCodeAnalysisXP;$(BeforeClCompileTargets)
5
6
7
8
9
10
11
12
13
14 CheckWindowsSDK71A;$(PrepareForBuildDependsOn)
15
16
17
18
19
20
3838 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
3939 copy Microsoft.Cpp.Win32.LLVM-vs2012.targets %D%\LLVM-vs2012
4040 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
41 IF NOT EXIST %D%\LLVM-vs2012_xp mkdir %D%\LLVM-vs2012_xp
42 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
43 copy Microsoft.Cpp.Win32.LLVM-vs2012_xp.props %D%\LLVM-vs2012_xp
44 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
45 copy Microsoft.Cpp.Win32.LLVM-vs2012_xp.targets %D%\LLVM-vs2012_xp
46 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
4147 echo Done!
4248 goto END
4349
1818 IF EXIST %D%\LLVM-vs2012 del %D%\LLVM-vs2012\Microsoft.Cpp.Win32.LLVM-vs2012.props
1919 IF EXIST %D%\LLVM-vs2012 del %D%\LLVM-vs2012\Microsoft.Cpp.Win32.LLVM-vs2012.targets
2020 IF EXIST %D%\LLVM-vs2012 rmdir %D%\LLVM-vs2012
21 IF EXIST %D%\LLVM-vs2012_xp del %D%\LLVM-vs2012_xp\Microsoft.Cpp.Win32.LLVM-vs2012_xp.props
22 IF EXIST %D%\LLVM-vs2012_xp del %D%\LLVM-vs2012_xp\Microsoft.Cpp.Win32.LLVM-vs2012_xp.targets
23 IF EXIST %D%\LLVM-vs2012_xp rmdir %D%\LLVM-vs2012_xp
2124
2225 SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\Win32\PlatformToolsets"
2326 IF EXIST %D%\LLVM-vs2012 del %D%\LLVM-vs2012\Microsoft.Cpp.Win32.LLVM-vs2012.props
2427 IF EXIST %D%\LLVM-vs2012 del %D%\LLVM-vs2012\Microsoft.Cpp.Win32.LLVM-vs2012.targets
2528 IF EXIST %D%\LLVM-vs2012 rmdir %D%\LLVM-vs2012
29 IF EXIST %D%\LLVM-vs2012_xp del %D%\LLVM-vs2012_xp\Microsoft.Cpp.Win32.LLVM-vs2012_xp.props
30 IF EXIST %D%\LLVM-vs2012_xp del %D%\LLVM-vs2012_xp\Microsoft.Cpp.Win32.LLVM-vs2012_xp.targets
31 IF EXIST %D%\LLVM-vs2012_xp rmdir %D%\LLVM-vs2012_xp
2632
2733 echo Done!