Add revision info inside macOS releases. (#1858)

I added 'autorevision.sh' script inside Xcode project. Now DEBUG targets will contain revision number.
This script is used in CMAKE 'project' and I just added it also to Xcode project.
This commit is contained in:
Sofartin 2017-07-26 01:56:22 +02:00 committed by Celtic Minstrel
parent d973dbae6c
commit fd77dd8115

View file

@ -4687,6 +4687,7 @@
isa = PBXNativeTarget;
buildConfigurationList = C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "Wesnoth" */;
buildPhases = (
46B626461D635BC900863502 /* Update Revision.h */,
8D11072C0486CEB800E47090 /* Sources */,
8D11072E0486CEB800E47090 /* Frameworks */,
8D1107290486CEB800E47090 /* Resources */,
@ -4824,6 +4825,20 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
46B626461D635BC900863502 /* Update Revision.h */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Update Revision.h";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "cd \"$SOURCE_ROOT/../..\"\n./utils/autorevision.sh -t h > src/revision.h";
};
91C2A6EB1B843AA900346948 /* Copy Translations (if present) */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@ -6157,6 +6172,7 @@
"LUA_USE_MACOSX=1",
"HAVE_LIBPNG=1",
"HAVE_HISTORY=1",
"LOAD_REVISION=1",
);
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Applications";