summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Spertus <mike@spertus.com>2016-03-28 17:58:38 +0000
committerMike Spertus <mike@spertus.com>2016-03-28 17:58:38 +0000
commitb2c8f180f93be6faedb85a1961b74a765f75798e (patch)
tree66084ef13f9fc6501dbaf4f2329332f340ddaeac
parent8541eae72cf1ee58459aa5829cd9e00df9ef5251 (diff)
Use VS2015 Project Support for Natvis to eliminate the need to manually install natvis files
When using Visual Studio 2015, cmake now puts the native visualizers in llvm.sln, so the developer automatically sees custom visualizations. Much thanks to ariccio who provided extensive help on this change. (manual installation still needed on VS2013) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264601 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--utils/LLVMVisualizers/CMakeLists.txt7
-rw-r--r--utils/LLVMVisualizers/llvm.natvis (renamed from utils/llvm.natvis)8
2 files changed, 12 insertions, 3 deletions
diff --git a/utils/LLVMVisualizers/CMakeLists.txt b/utils/LLVMVisualizers/CMakeLists.txt
new file mode 100644
index 00000000000..3509779eed6
--- /dev/null
+++ b/utils/LLVMVisualizers/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Do this by hand instead of using add_llvm_utilities(), which
+# tries to create a corresponding executable, which we don't want.
+if (LLVM_ADD_NATIVE_VISUALIZERS_TO_SOLUTION)
+ set(LLVM_VISUALIZERS llvm.natvis)
+ add_custom_target(LLVMVisualizers SOURCES ${LLVM_VISUALIZERS})
+ set_target_properties(LLVMVisualizers PROPERTIES FOLDER "Utils")
+endif()
diff --git a/utils/llvm.natvis b/utils/LLVMVisualizers/llvm.natvis
index 275800d3a45..0ab921c4803 100644
--- a/utils/llvm.natvis
+++ b/utils/LLVMVisualizers/llvm.natvis
@@ -1,9 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
-Visual Studio 2012 Native Debugging Visualizers for LLVM
+Visual Studio Native Debugging Visualizers for LLVM
-Put this file into "%USERPROFILE%\Documents\Visual Studio 2012\Visualizers"
-or create a symbolic link so it updates automatically.
+For Visual Studio 2013 only, put this file into
+"%USERPROFILE%\Documents\Visual Studio 2013\Visualizers" or create a symbolic link so it updates automatically.
+
+For later versions of Visual Studio, no setup is required.
-->
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">