From f6b1a4866e1c73aafe6decdc6bfc1d99653f2b64 Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Wed, 21 Aug 2019 13:37:22 +0800 Subject: make xmake clean --all cofigurable --- xmake/plugins/project/vsxmake/vsproj/Xmake.props | 1 + xmake/plugins/project/vsxmake/vsproj/Xmake.targets | 5 +++-- xmake/plugins/project/vsxmake/vsproj/Xmake.xml | 6 ++++++ xmake/plugins/project/vsxmake/vsproj/templates/Xmake.Custom.props | 3 +++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/xmake/plugins/project/vsxmake/vsproj/Xmake.props b/xmake/plugins/project/vsxmake/vsproj/Xmake.props index 3b4ae268e..ddec0f57d 100644 --- a/xmake/plugins/project/vsxmake/vsproj/Xmake.props +++ b/xmake/plugins/project/vsxmake/vsproj/Xmake.props @@ -40,6 +40,7 @@ + true true false false diff --git a/xmake/plugins/project/vsxmake/vsproj/Xmake.targets b/xmake/plugins/project/vsxmake/vsproj/Xmake.targets index 99583bf74..81efe2b9b 100644 --- a/xmake/plugins/project/vsxmake/vsproj/Xmake.targets +++ b/xmake/plugins/project/vsxmake/vsproj/Xmake.targets @@ -58,6 +58,7 @@ <_XmakeBuildFileFlags Condition="$(XmakeRebuildFile)">$(_XmakeBuildFileFlags.Trim()) -r <_XmakeCleanFlags>$(XmakeCleanFlags.Trim()) + <_XmakeCleanFlags Condition="$(XmakeCleanAll)">-a $(_XmakeCleanFlags.Trim()) <_XmakeBuildFlags>$(_XmakeBuildFlags.Trim()) <_XmakeBuildFileFlags>$(_XmakeBuildFileFlags.Trim()) @@ -109,9 +110,9 @@ $(_XmakeExecutable) build $(_XmakeCommonFlags) $(_XmakeBuildFileFlags) $(FileFlag) $(XmakeTarget)" EchoOff="true" /> - + + $(_XmakeExecutable) clean $(_XmakeCommonFlags) $(_XmakeCleanFlags) $(XmakeTarget)" EchoOff="true" /> diff --git a/xmake/plugins/project/vsxmake/vsproj/Xmake.xml b/xmake/plugins/project/vsxmake/vsproj/Xmake.xml index 5e35da3ff..e1bd4b5ec 100644 --- a/xmake/plugins/project/vsxmake/vsproj/Xmake.xml +++ b/xmake/plugins/project/vsxmake/vsproj/Xmake.xml @@ -31,6 +31,12 @@ Category="Common" Description="Enable the warnings output for build tasks." Switch="warning" /> + , and is more convenient. --> + + + -- cgit v1.3.1