display revision number in Debug builds with Xcode

currently works with svn only
This commit is contained in:
Simon Forsyth 2012-04-05 19:32:00 +00:00
parent 5704aa71c2
commit ce81a035c7

View file

@ -3472,6 +3472,7 @@
isa = PBXNativeTarget;
buildConfigurationList = C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "Wesnoth" */;
buildPhases = (
F464ECEF152D0BF2007BA40D /* ShellScript */,
8D1107290486CEB800E47090 /* Resources */,
8D11072C0486CEB800E47090 /* Sources */,
8D11072E0486CEB800E47090 /* Frameworks */,
@ -3571,6 +3572,24 @@
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
F464ECEF152D0BF2007BA40D /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
../../src/revision.hpp,
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "echo -n '#define REVISION \"' > ${SOURCE_ROOT}/../../src/revision.hpp\nsvnversion -n . >> ${SOURCE_ROOT}/../../src/revision.hpp\necho '\"' >> ${SOURCE_ROOT}/../../src/revision.hpp";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
8D11072C0486CEB800E47090 /* Sources */ = {
isa = PBXSourcesBuildPhase;
@ -4637,6 +4656,10 @@
./lib/SDL_net.framework/Headers,
);
LIBRARY_SEARCH_PATHS = ./lib;
OTHER_CPLUSPLUSFLAGS = (
"-DHAVE_REVISION",
"$(OTHER_CFLAGS)",
);
OTHER_LDFLAGS = (
"-lz",
"-lbz2",