Add xml files for msbuild integration
authorReid Kleckner <reid@kleckner.net>
Tue, 27 Aug 2013 23:07:17 +0000 (23:07 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 27 Aug 2013 23:07:17 +0000 (23:07 +0000)
These files are intended to live in the msbuild toolset directory, which
is somewhere like:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\
  v4.0\Platforms\Win32\PlatformToolsets\llvm

More work is needed to install them as part of the NSIS installer.

Patch by Warren Hunt!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189411 91177308-0d34-0410-b5e6-96231b3b80d8

tools/msbuild/Microsoft.Cpp.Win32.llvm.props [new file with mode: 0644]
tools/msbuild/Microsoft.Cpp.Win32.llvm.targets [new file with mode: 0644]

diff --git a/tools/msbuild/Microsoft.Cpp.Win32.llvm.props b/tools/msbuild/Microsoft.Cpp.Win32.llvm.props
new file mode 100644 (file)
index 0000000..68dfa24
--- /dev/null
@@ -0,0 +1,10 @@
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">  \r
+  <PropertyGroup>\r
+    <VCInstallDir>suppress warning</VCInstallDir>\r
+    <WindowsSdkDir>suppress warning</WindowsSdkDir>\r
+       \r
+    <ClangInstallDir>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\LLVM\LLVM 3.4.svn)</ClangInstallDir>\r
+    <ClangInstallDir Condition="'$(ClangInstallDir)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\LLVM\LLVM 3.4.svn)</ClangInstallDir>\r
+    <ExecutablePath>$(ClangInstallDir)\msbuild-bin;$(ExecutablePath)</ExecutablePath>\r
+  </PropertyGroup>\r
+</Project>\r
diff --git a/tools/msbuild/Microsoft.Cpp.Win32.llvm.targets b/tools/msbuild/Microsoft.Cpp.Win32.llvm.targets
new file mode 100644 (file)
index 0000000..df41a84
--- /dev/null
@@ -0,0 +1,2 @@
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+</Project>\r