From: Hans Wennborg Date: Tue, 29 Jul 2014 22:34:53 +0000 (+0000) Subject: clang-format vs plugin: include the license X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4653b56220a5e953fd910dd9d08e102abf9d3f06;p=clang clang-format vs plugin: include the license The vsix installer will show the license when it starts, and it would print an annoying message when there was none. While we're here, add a MoreInfoUrl. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214237 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/clang-format-vs/CMakeLists.txt b/tools/clang-format-vs/CMakeLists.txt index b1101928aa..0a50a6a8c4 100644 --- a/tools/clang-format-vs/CMakeLists.txt +++ b/tools/clang-format-vs/CMakeLists.txt @@ -6,6 +6,11 @@ if (BUILD_CLANG_FORMAT_VS_PLUGIN) "${CMAKE_CURRENT_SOURCE_DIR}/ClangFormat/clang-format.exe" DEPENDS clang-format) + add_custom_target(clang_format_license + ${CMAKE_COMMAND} -E copy_if_different + "${CLANG_SOURCE_DIR}/LICENSE.TXT" + "${CMAKE_CURRENT_SOURCE_DIR}/ClangFormat/license.txt") + if (NOT CLANG_FORMAT_VS_VERSION) set(CLANG_FORMAT_VS_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}") endif() @@ -19,5 +24,5 @@ if (BUILD_CLANG_FORMAT_VS_PLUGIN) COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/ClangFormat/bin/Release/ClangFormat.vsix" "${LLVM_TOOLS_BINARY_DIR}/${CMAKE_CFG_INTDIR}/ClangFormat.vsix" - DEPENDS clang_format_exe_for_vsix) + DEPENDS clang_format_exe_for_vsix clang_format_license) endif() diff --git a/tools/clang-format-vs/ClangFormat/ClangFormat.csproj b/tools/clang-format-vs/ClangFormat/ClangFormat.csproj index 2f49221d14..709b33d6fa 100644 --- a/tools/clang-format-vs/ClangFormat/ClangFormat.csproj +++ b/tools/clang-format-vs/ClangFormat/ClangFormat.csproj @@ -181,6 +181,9 @@ true + + true + @@ -227,4 +230,4 @@ --> - \ No newline at end of file + diff --git a/tools/clang-format-vs/source.extension.vsixmanifest.in b/tools/clang-format-vs/source.extension.vsixmanifest.in index ed0e72e355..a28bb3c99c 100644 --- a/tools/clang-format-vs/source.extension.vsixmanifest.in +++ b/tools/clang-format-vs/source.extension.vsixmanifest.in @@ -6,6 +6,8 @@ @CLANG_FORMAT_VS_VERSION@ A tool to format C/C++/Obj-C code. 1033 + http://clang.llvm.org/docs/ClangFormat.html + license.txt false