summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormclee <[email protected]>2019-03-06 17:25:26 +0800
committermclee <[email protected]>2019-03-06 17:25:26 +0800
commit88b7af92f6988abb30b72095592c74a245c06507 (patch)
treec4fe450b716212c950891f79358dd539e193a9b9
parentac3801373197cde5d161bed3a002e8cfad990a86 (diff)
show the description of custom build command
-rw-r--r--xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua3
1 files changed, 1 insertions, 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("<Outputs Condition=\"\'%$(Configuration)|%$(Platform)\'==\'%s\'\">%s</Outputs>", info.mode .. '|' .. info.arch, objectfile)
vcxprojfile:print("<Command Condition=\"\'%$(Configuration)|%$(Platform)\'==\'%s\'\">%s</Command>", info.mode .. '|' .. info.arch, compcmd)
end
- vcxprojfile:print("<Message>%s</Message>", sourcefilename)
+ vcxprojfile:print("<Message>%s</Message>", path.filename(sourcefile))
-- for *.rc files
elseif sourcekind == "mrc" then