diff options
| author | mclee <[email protected]> | 2019-03-06 14:43:48 +0800 |
|---|---|---|
| committer | mclee <[email protected]> | 2019-03-06 14:43:48 +0800 |
| commit | ac3801373197cde5d161bed3a002e8cfad990a86 (patch) | |
| tree | 1f5289d1c354f9c2841228f3eb4c320bf392038a | |
| parent | b2590d72ae5de165387ac8462d312c3c44900558 (diff) | |
show the description of custom build command
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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("<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) -- for *.rc files elseif sourcekind == "mrc" then |
