mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Substitute LLVM's version into the msbuild property file at config time
Requires shuffling the CPack code up before add_subdirectory(tools), but that's where the version settings are anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189615 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
if (WIN32)
|
||||
set(prop_file "Microsoft.Cpp.Win32.llvm.props")
|
||||
|
||||
# CPack will install a registry key in this format that we wish to reference.
|
||||
set(REG_KEY "${CMAKE_PROJECT_NAME} ${CPACK_PACKAGE_VERSION}")
|
||||
configure_file(${prop_file}.in ${prop_file})
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${prop_file}" DESTINATION tools/msbuild)
|
||||
|
||||
install(DIRECTORY .
|
||||
DESTINATION tools/msbuild
|
||||
FILES_MATCHING
|
||||
PATTERN "*.targets"
|
||||
PATTERN "*.props"
|
||||
PATTERN "*.bat"
|
||||
PATTERN ".svn" EXCLUDE
|
||||
)
|
||||
|
@@ -1,9 +0,0 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v100\Microsoft.Cpp.$(Platform).v100.props"/>
|
||||
|
||||
<PropertyGroup>
|
||||
<ClangInstallDir>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\LLVM\LLVM 3.4.svn)</ClangInstallDir>
|
||||
<ClangInstallDir Condition="'$(ClangInstallDir)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\LLVM\LLVM 3.4.svn)</ClangInstallDir>
|
||||
<ExecutablePath>$(ClangInstallDir)\msbuild-bin;$(ExecutablePath)</ExecutablePath>
|
||||
</PropertyGroup>
|
||||
</Project>
|
9
tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in
Normal file
9
tools/msbuild/Microsoft.Cpp.Win32.llvm.props.in
Normal file
@@ -0,0 +1,9 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(VCTargetsPath)\Platforms\$(Platform)\PlatformToolsets\v100\Microsoft.Cpp.$(Platform).v100.props"/>
|
||||
|
||||
<PropertyGroup>
|
||||
<LLVMInstallDir>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\LLVM\@REG_KEY@)</LLVMInstallDir>
|
||||
<LLVMInstallDir Condition="'$(LLVMInstallDir)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\LLVM\@REG_KEY@)</LLVMInstallDir>
|
||||
<ExecutablePath>$(LLVMInstallDir)\msbuild-bin;$(ExecutablePath)</ExecutablePath>
|
||||
</PropertyGroup>
|
||||
</Project>
|
Reference in New Issue
Block a user