Browse Source

Show Git revision: macOS/iOS (iOS not displaying for now )

Pal Lockheart 7 years ago
parent
commit
3e9cc7fca5
2 changed files with 38 additions and 1 deletions
  1. 17 0
      ios/SDLPal/SDLPal.xcodeproj/project.pbxproj
  2. 21 1
      macos/Pal.xcodeproj/project.pbxproj

+ 17 - 0
ios/SDLPal/SDLPal.xcodeproj/project.pbxproj

@@ -770,6 +770,7 @@
 			isa = PBXNativeTarget;
 			buildConfigurationList = 7165507A195BB372006E1227 /* Build configuration list for PBXNativeTarget "SDLPal" */;
 			buildPhases = (
+				C60CBDEB1ED1AD9500B5D156 /* ShellScript */,
 				71655059195BB372006E1227 /* Sources */,
 				7165505A195BB372006E1227 /* Frameworks */,
 				7165505B195BB372006E1227 /* Resources */,
@@ -854,6 +855,22 @@
 		};
 /* End PBXResourcesBuildPhase section */
 
+/* Begin PBXShellScriptBuildPhase section */
+		C60CBDEB1ED1AD9500B5D156 /* ShellScript */ = {
+			isa = PBXShellScriptBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			inputPaths = (
+			);
+			outputPaths = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+			shellPath = /bin/sh;
+			shellScript = "exec ../../scripts/gengitrev";
+		};
+/* End PBXShellScriptBuildPhase section */
+
 /* Begin PBXSourcesBuildPhase section */
 		71655059195BB372006E1227 /* Sources */ = {
 			isa = PBXSourcesBuildPhase;

+ 21 - 1
macos/Pal.xcodeproj/project.pbxproj

@@ -847,6 +847,7 @@
 			buildConfigurationList = C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "Pal" */;
 			buildPhases = (
 				8D1107290486CEB800E47090 /* Resources */,
+				C60CBDE91ED1ABF700B5D156 /* ShellScript */,
 				8D11072C0486CEB800E47090 /* Sources */,
 				8D11072E0486CEB800E47090 /* Frameworks */,
 				002F39FD09D0883400EBEB88 /* Copy Frameworks into .app bundle */,
@@ -973,6 +974,22 @@
 		};
 /* End PBXResourcesBuildPhase section */
 
+/* Begin PBXShellScriptBuildPhase section */
+		C60CBDE91ED1ABF700B5D156 /* ShellScript */ = {
+			isa = PBXShellScriptBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			inputPaths = (
+			);
+			outputPaths = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+			shellPath = /bin/sh;
+			shellScript = "exec ../scripts/gengitrev";
+		};
+/* End PBXShellScriptBuildPhase section */
+
 /* Begin PBXSourcesBuildPhase section */
 		8D11072C0486CEB800E47090 /* Sources */ = {
 			isa = PBXSourcesBuildPhase;
@@ -1112,7 +1129,10 @@
 				GCC_ENABLE_FIX_AND_CONTINUE = YES;
 				GCC_MODEL_TUNING = G5;
 				GCC_OPTIMIZATION_LEVEL = 0;
-				GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1";
+				GCC_PREPROCESSOR_DEFINITIONS = (
+					"DEBUG=1",
+					PAL_HAS_GIT_REVISION,
+				);
 				HEADER_SEARCH_PATHS = (
 					../3rd/SDL/include,
 					../liboggvorbis/include,