From ac3801373197cde5d161bed3a002e8cfad990a86 Mon Sep 17 00:00:00 2001 From: mclee Date: Wed, 6 Mar 2019 14:43:48 +0800 Subject: show the description of custom build command --- xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua index 7a8f791c7..006ea4fe1 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua @@ -561,6 +561,7 @@ function _make_source_file_forall(vcxprojfile, vsinfo, target, sourcefile, sourc -- enter it local nodename = ifelse(sourcekind == "as", "CustomBuild", ifelse(sourcekind == "mrc", "ResourceCompile", "ClCompile")) sourcefile = path.relative(path.absolute(sourcefile), vcxprojdir) + sourcefilename = path.filename(sourcefile) vcxprojfile:enter("<%s Include=\"%s\">", nodename, sourcefile) -- for *.asm files @@ -573,6 +574,7 @@ function _make_source_file_forall(vcxprojfile, vsinfo, target, sourcefile, sourc vcxprojfile:print("%s", info.mode .. '|' .. info.arch, objectfile) vcxprojfile:print("%s", info.mode .. '|' .. info.arch, compcmd) end + vcxprojfile:print("%s", sourcefilename) -- for *.rc files elseif sourcekind == "mrc" then -- cgit v1.3.1 From 88b7af92f6988abb30b72095592c74a245c06507 Mon Sep 17 00:00:00 2001 From: mclee Date: Wed, 6 Mar 2019 17:25:26 +0800 Subject: show the description of custom build command --- xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua index 006ea4fe1..1c0bc1513 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua @@ -561,7 +561,6 @@ function _make_source_file_forall(vcxprojfile, vsinfo, target, sourcefile, sourc -- enter it local nodename = ifelse(sourcekind == "as", "CustomBuild", ifelse(sourcekind == "mrc", "ResourceCompile", "ClCompile")) sourcefile = path.relative(path.absolute(sourcefile), vcxprojdir) - sourcefilename = path.filename(sourcefile) vcxprojfile:enter("<%s Include=\"%s\">", nodename, sourcefile) -- for *.asm files @@ -574,7 +573,7 @@ function _make_source_file_forall(vcxprojfile, vsinfo, target, sourcefile, sourc vcxprojfile:print("%s", info.mode .. '|' .. info.arch, objectfile) vcxprojfile:print("%s", info.mode .. '|' .. info.arch, compcmd) end - vcxprojfile:print("%s", sourcefilename) + vcxprojfile:print("%s", path.filename(sourcefile)) -- for *.rc files elseif sourcekind == "mrc" then -- cgit v1.3.1