summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-11-16 09:48:53 +0800
committerruki <[email protected]>2021-11-16 09:48:53 +0800
commit26ccb97f322fd3414001979d2d325522e7378868 (patch)
tree06f6e72014871414646b9bebd25794412a9bdd33 /xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
parent8c67fe903098afed989fb9ba64881fb7267bca49 (diff)
add linkcmd for vs generator
Diffstat (limited to 'xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua')
-rw-r--r--xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
index 93e8633d9..6e77caf9b 100644
--- a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
+++ b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
@@ -374,10 +374,12 @@ end
-- make custom commands item
function _make_custom_commands_item(vcxprojfile, commands, suffix)
- if suffix == "after" then
+ if suffix == "after" or suffix == "after_link" then
vcxprojfile:print("<PostBuildEvent>")
elseif suffix == "before" then
vcxprojfile:print("<PreBuildEvent>")
+ elseif suffix == "before_link" then
+ vcxprojfile:print("<PreLinkEvent>")
end
vcxprojfile:print("<Message></Message>")
vcxprojfile:print("<Command>setlocal")
@@ -392,10 +394,12 @@ exit /b %1
:xmDone
if %errorlevel% neq 0 goto :VCEnd</Command>
]])
- if suffix == "after" then
+ if suffix == "after" or suffix == "after_link" then
vcxprojfile:print("</PostBuildEvent>")
elseif suffix == "before" then
vcxprojfile:print("</PreBuildEvent>")
+ elseif suffix == "before_link" then
+ vcxprojfile:print("</PreLinkEvent>")
end
end