Pre/Post build step in UBT
The question is simple: how to set up a Pre build event and a post build event properly as the Unreal devs intend to?
The current method I am using is not intended to be used like this, however pre/post/clean build steps are a very essential part of a build system, and therefore UBT must provide a way for developpers to implement them. Typically this is used to copy binaries (such as dlls) to the binary folder.
This is a follow up to my previous question : https://answers.unrealengine.com/questions/402327/alternative-to-unrealbuildtoolgetuprojectpath-in-4.html
asked Apr 26 '16 at 10:29 PM in Packaging & Deployment
This feature already exists. You can add shell commands to the end of builds by adding something like this to your .uproject file:
There's a PreBuildSteps section too. Check out WriteCustomBuildStepScripts in UEBuildTarget.cs in UBT to see all the available variables.
answered Aug 30 '16 at 01:40 PM
Ben Marsh STAFF
Yes besides move/copy files there are other useful stuff such as the ability to run certain script eg to play beep after a long build time. Just keep it open.
answered Aug 21 '16 at 12:15 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here