I am trying to add a post-build step that runs executable after this project. To do this, the compiler needs to know whether it is .exe or .dll first hand. How can I expand a project during the project phase? I am using Premake 4.3 and Visual Studio 2010. Thanks!
There is no better way in Premake4 that Configuration {"console app or window adapter"} {{thecmd --kind = exe}} {{StaticLib or SharedLib}} Configuration {/} PostBillic Order {"CCMD --kind = Lib"}
You can use tokens in Premake5.
Postbuilding order {"thecmd --kind =% {iif (Cfg.kind: ends (" app ")," exe "," lib ")}"}
No comments:
Post a Comment