File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
clang/tools/clang-format-vs Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ if (BUILD_CLANG_FORMAT_VS_PLUGIN)
6
6
"${CMAKE_CURRENT_SOURCE_DIR} /ClangFormat/clang-format.exe"
7
7
DEPENDS clang-format )
8
8
9
+ add_custom_target (clang_format_license
10
+ ${CMAKE_COMMAND} -E copy_if_different
11
+ "${CLANG_SOURCE_DIR} /LICENSE.TXT"
12
+ "${CMAKE_CURRENT_SOURCE_DIR} /ClangFormat/license.txt" )
13
+
9
14
if (NOT CLANG_FORMAT_VS_VERSION )
10
15
set (CLANG_FORMAT_VS_VERSION "${LLVM_VERSION_MAJOR} .${LLVM_VERSION_MINOR} .${LLVM_VERSION_PATCH} " )
11
16
endif ()
@@ -19,5 +24,5 @@ if (BUILD_CLANG_FORMAT_VS_PLUGIN)
19
24
COMMAND ${CMAKE_COMMAND} -E copy_if_different
20
25
"${CMAKE_CURRENT_SOURCE_DIR} /ClangFormat/bin/Release/ClangFormat.vsix"
21
26
"${LLVM_TOOLS_BINARY_DIR} /${CMAKE_CFG_INTDIR} /ClangFormat.vsix"
22
- DEPENDS clang_format_exe_for_vsix )
27
+ DEPENDS clang_format_exe_for_vsix clang_format_license )
23
28
endif ()
Original file line number Diff line number Diff line change 181
181
<Content Include =" clang-format.exe" >
182
182
<IncludeInVSIX >true</IncludeInVSIX >
183
183
</Content >
184
+ <Content Include =" license.txt" >
185
+ <IncludeInVSIX >true</IncludeInVSIX >
186
+ </Content >
184
187
<Content Include =" Resources\Package.ico" />
185
188
</ItemGroup >
186
189
<ItemGroup >
227
230
<Target Name="AfterBuild">
228
231
</Target>
229
232
-->
230
- </Project >
233
+ </Project >
Original file line number Diff line number Diff line change 6
6
<Version >@CLANG_FORMAT_VS_VERSION@</Version >
7
7
<Description xml : space =" preserve" >A tool to format C/C++/Obj-C code.</Description >
8
8
<Locale >1033</Locale >
9
+ <MoreInfoUrl >http://clang.llvm.org/docs/ClangFormat.html</MoreInfoUrl >
10
+ <License >license.txt</License >
9
11
<InstalledByMsi >false</InstalledByMsi >
10
12
<SupportedProducts >
11
13
<VisualStudio Version =" 10.0" >
You can’t perform that action at this time.
0 commit comments