Просмотр исходного кода

Make IDE build on OSX when 10.6 SDK isn't available

- More recent versions of Xcode no longer ship with the
  10.6 SDK so the default SDK setting of 10.6 causes an
  error. This change makes it build with whatever is
  the latest SDK on whatever Xcode is being used
  but sets the deployment target to 10.6 so that it
  will run there as well.
Nur Monson 12 лет назад
Родитель
Сommit
dc2351d3e3
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      IDE/Build/Mac OS X/Polycode.xcodeproj/project.pbxproj

+ 4 - 2
IDE/Build/Mac OS X/Polycode.xcodeproj/project.pbxproj

@@ -518,6 +518,7 @@
 					"\"$(SRCROOT)/../../../Release/Darwin/Framework/Core/Dependencies/lib\"",
 					"\"$(SRCROOT)/../../../Release/Darwin/Framework/Core/Dependencies/lib\"",
 					"\"$(SRCROOT)/../../../Release/Darwin/Framework/Modules/lib\"",
 					"\"$(SRCROOT)/../../../Release/Darwin/Framework/Modules/lib\"",
 				);
 				);
+				MACOSX_DEPLOYMENT_TARGET = 10.6;
 				PRODUCT_NAME = Polycode;
 				PRODUCT_NAME = Polycode;
 			};
 			};
 			name = Debug;
 			name = Debug;
@@ -556,6 +557,7 @@
 					"\"$(SRCROOT)/../../../Release/Darwin/Framework/Core/Dependencies/lib\"",
 					"\"$(SRCROOT)/../../../Release/Darwin/Framework/Core/Dependencies/lib\"",
 					"\"$(SRCROOT)/../../../Release/Darwin/Framework/Modules/lib\"",
 					"\"$(SRCROOT)/../../../Release/Darwin/Framework/Modules/lib\"",
 				);
 				);
+				MACOSX_DEPLOYMENT_TARGET = 10.6;
 				PRODUCT_NAME = Polycode;
 				PRODUCT_NAME = Polycode;
 			};
 			};
 			name = Release;
 			name = Release;
@@ -581,7 +583,7 @@
 				);
 				);
 				ONLY_ACTIVE_ARCH = YES;
 				ONLY_ACTIVE_ARCH = YES;
 				PREBINDING = NO;
 				PREBINDING = NO;
-				SDKROOT = macosx10.6;
+				SDKROOT = macosx;
 			};
 			};
 			name = Debug;
 			name = Debug;
 		};
 		};
@@ -605,7 +607,7 @@
 				);
 				);
 				ONLY_ACTIVE_ARCH = YES;
 				ONLY_ACTIVE_ARCH = YES;
 				PREBINDING = NO;
 				PREBINDING = NO;
-				SDKROOT = macosx10.6;
+				SDKROOT = macosx;
 			};
 			};
 			name = Release;
 			name = Release;
 		};
 		};