From eddc769c19f130c96c2f4cd10200d388383d5bdb Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 17 Feb 2022 23:10:28 +0800 Subject: fix vxmake with spaces --- xmake/plugins/project/vsxmake/vsproj/Xmake.targets | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'xmake/plugins') diff --git a/xmake/plugins/project/vsxmake/vsproj/Xmake.targets b/xmake/plugins/project/vsxmake/vsproj/Xmake.targets index ce78b88e9..e89a40260 100644 --- a/xmake/plugins/project/vsxmake/vsproj/Xmake.targets +++ b/xmake/plugins/project/vsxmake/vsproj/Xmake.targets @@ -62,6 +62,7 @@ <_XmakeCleanFlags>$(_XmakeCleanFlags.Trim()) <_XmakeConfigFlags>$(_XmakeConfigFlags.Trim()) <_XmakeCommonFlags>$(_XmakeCommonFlags.Trim()) + <_XmakeTarget>"$(XmakeTarget.Trim())" <_XmakeExecutable>"$([System.IO.Path]::GetFullPath('$(XmakeProgramDirResolved)xmake.exe'))" <_XmakeEnv> @@ -97,14 +98,14 @@ $(_XmakeExecutable) config $(_XmakeCommonFlags) $(_XmakeConfigFlags)" EchoOff="true" Condition="'$(XmakeDefault)' != 'false'" /> - + + $(_XmakeExecutable) build $(_XmakeCommonFlags) $(_XmakeBuildFlags) $(_XmakeTarget)" EchoOff="true" Condition="'$(XmakeDefault)' != 'false'" /> - + + $(_XmakeExecutable) build -r $(_XmakeCommonFlags) $(_XmakeBuildFlags) $(_XmakeTarget)" EchoOff="true" Condition="'$(XmakeDefault)' != 'false'" /> @@ -114,14 +115,14 @@ --files="@(File)" - + + $(_XmakeExecutable) build $(_XmakeCommonFlags) $(_XmakeBuildFileFlags) $(FileFlag) $(_XmakeTarget)" EchoOff="true" /> - + + $(_XmakeExecutable) clean $(_XmakeCommonFlags) $(_XmakeCleanFlags) $(_XmakeTarget)" EchoOff="true" Condition="'$(XmakeDefault)' != 'false'" /> -- cgit v1.3.1