
Example 14: Pre-Build Step

This example demonstrates how to set up a pre-build step using the project preferences.
This pre-build step is performed every time a hot-reload is triggered, and can be used to perform tasks such
as code generation. Every source file which is modified by the pre-build step will automatically be picked
up by Live++ during the hot-reload.

The pre-build step can call arbitrary executables with command-line arguments, or batch scripts in case you
need to perform several steps. Pre-build events that are set up in a Visual Studio solution already can be
performed by calling msbuild.exe with the correct target, e.g. "msbuild YourSolution.sln /t:CustomBuild" or
"msbuild YourSolution.sln /t:PreBuildEvent".

The pre-build step in this example calls into 14_prebuild_step.bat, which generates a single function named
"GeneratedCode" inside PreBuildGeneratedCode.cpp.

Interesting things to look at and try out have been marked with "Live++" in the source code.
