Run a custom command before build
I would like to insert a custom build step (e.g. running a batch file) before the compilation begins. How would I go about adding a custom build step to the build process.
asked Sep 15 '14 at 01:11 PM in Packaging & Deployment
Inspired by Shadowriver's comment I have come up with a very hacky solution and would very much like to see the proper way of doing it.
I realised that the constructor from the projects ModuleRules must be executed so I just bunged a
There are a few caveats:
Firstly, this is called twice in a build, so if your operation is time consuming this could be a problem.
Secondly, if you launch a batch file the working directory will be [Unreal Engine Location]\Engine\Source. To get the path, I came up with another awful hack of a solution:
answered Sep 17 '14 at 03:09 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here