CREATE_PROJECT: Change build events to also be run in release builds

Unofficial builds using MSVC in release mode will benefit from having a revision number available
This commit is contained in:
Littleboy 2011-04-22 14:10:14 -04:00
parent 8f1a26ea3e
commit 1f660237a4
2 changed files with 23 additions and 22 deletions

View file

@ -267,13 +267,10 @@ void MSBuildProvider::outputProjectSettings(std::ofstream &project, const std::s
"\t\t</Link>\n";
if (setup.runBuildEvents) {
// Only generate revision number in debug builds
if (!isRelease) {
project << "\t\t<PreBuildEvent>\n"
"\t\t\t<Message>Generate internal_version.h</Message>\n"
"\t\t\t<Command>" << getPreBuildEvent() << "</Command>\n"
"\t\t</PreBuildEvent>\n";
}
project << "\t\t<PreBuildEvent>\n"
"\t\t\t<Message>Generate internal_version_build.h</Message>\n"
"\t\t\t<Command>" << getPreBuildEvent() << "</Command>\n"
"\t\t</PreBuildEvent>\n";
// Copy data files to the build folder
project << "\t\t<PostBuildEvent>\n"