Author: alarantalara
Date: Thu Apr 5 21:32:00 2012
New Revision: 53788
URL: http://svn.gna.org/viewcvs/wesnoth?rev=53788&view=rev
Log:
display revision number in Debug builds with Xcode - currently works with svn
only
Modified:
trunk/projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj
Modified: trunk/projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj?rev=53788&r1=53787&r2=53788&view=diff
==============================================================================
--- trunk/projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj (original)
+++ trunk/projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj Thu Apr 5
21:32:00 2012
@@ -3472,6 +3472,7 @@
isa = PBXNativeTarget;
buildConfigurationList = C01FCF4A08A954540054247B /*
Build configuration list for PBXNativeTarget "Wesnoth" */;
buildPhases = (
+ F464ECEF152D0BF2007BA40D /* ShellScript */,
8D1107290486CEB800E47090 /* Resources */,
8D11072C0486CEB800E47090 /* Sources */,
8D11072E0486CEB800E47090 /* Frameworks */,
@@ -3570,6 +3571,24 @@
runOnlyForDeploymentPostprocessing = 0;
};
/* 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 */ = {
@@ -4637,6 +4656,10 @@
./lib/SDL_net.framework/Headers,
);
LIBRARY_SEARCH_PATHS = ./lib;
+ OTHER_CPLUSPLUSFLAGS = (
+ "-DHAVE_REVISION",
+ "$(OTHER_CFLAGS)",
+ );
OTHER_LDFLAGS = (
"-lz",
"-lbz2",
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits