display revision number in Debug builds with Xcode
currently works with svn only
This commit is contained in:
parent
5704aa71c2
commit
ce81a035c7
1 changed files with 23 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue