sgl

diff sgl.xcodeproj/project.pbxproj @ 40:f7de32814f34

sortof made the ios backend to compile and run ... sortof
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 28 Jun 2012 03:42:26 +0300
parents b3374e30361c
children
line diff
     1.1 --- a/sgl.xcodeproj/project.pbxproj	Wed Jun 27 05:54:57 2012 +0300
     1.2 +++ b/sgl.xcodeproj/project.pbxproj	Thu Jun 28 03:42:26 2012 +0300
     1.3 @@ -7,12 +7,20 @@
     1.4  	objects = {
     1.5  
     1.6  /* Begin PBXBuildFile section */
     1.7 -		06C7522B159AA36B006C47C6 /* ios_init.h in Headers */ = {isa = PBXBuildFile; fileRef = 06C75229159AA36A006C47C6 /* ios_init.h */; };
     1.8 -		06C7522C159AA36B006C47C6 /* ios_init.m in Sources */ = {isa = PBXBuildFile; fileRef = 06C7522A159AA36A006C47C6 /* ios_init.m */; };
     1.9 +		06C75232159BA81F006C47C6 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06C75231159BA81F006C47C6 /* OpenGLES.framework */; };
    1.10 +		06C75234159BA849006C47C6 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06C75233159BA849006C47C6 /* UIKit.framework */; };
    1.11 +		06E2EF2A159BDA5300E169B6 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06C75233159BA849006C47C6 /* UIKit.framework */; };
    1.12 +		06E2EF2B159BDA5300E169B6 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06F9D62414F7332500246CD7 /* Foundation.framework */; };
    1.13 +		06E2EF2D159BDA5300E169B6 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06E2EF2C159BDA5300E169B6 /* CoreGraphics.framework */; };
    1.14 +		06E2EF2F159BDA5300E169B6 /* GLKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06E2EF2E159BDA5300E169B6 /* GLKit.framework */; };
    1.15 +		06E2EF30159BDA5300E169B6 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06C75231159BA81F006C47C6 /* OpenGLES.framework */; };
    1.16 +		06E2EF36159BDA5300E169B6 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 06E2EF34159BDA5300E169B6 /* InfoPlist.strings */; };
    1.17 +		06E2EF4E159BDAAE00E169B6 /* isimple.c in Sources */ = {isa = PBXBuildFile; fileRef = 06E2EF4D159BDAAE00E169B6 /* isimple.c */; };
    1.18 +		06E2EF4F159BDAFC00E169B6 /* libsgl.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 06F9D62114F7332500246CD7 /* libsgl.a */; };
    1.19 +		06E2EF52159BDF2D00E169B6 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06E2EF51159BDF2D00E169B6 /* QuartzCore.framework */; };
    1.20  		06F9D62514F7332500246CD7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06F9D62414F7332500246CD7 /* Foundation.framework */; };
    1.21  		06F9D63514F7453B00246CD7 /* sgl.h in Headers */ = {isa = PBXBuildFile; fileRef = 06F9D63414F7453B00246CD7 /* sgl.h */; };
    1.22  		06F9D65714F7456100246CD7 /* cb.c in Sources */ = {isa = PBXBuildFile; fileRef = 06F9D63714F7456100246CD7 /* cb.c */; };
    1.23 -		06F9D65A14F7456100246CD7 /* config.h in Headers */ = {isa = PBXBuildFile; fileRef = 06F9D63A14F7456100246CD7 /* config.h */; };
    1.24  		06F9D65B14F7456100246CD7 /* log.c in Sources */ = {isa = PBXBuildFile; fileRef = 06F9D63B14F7456100246CD7 /* log.c */; };
    1.25  		06F9D65D14F7456100246CD7 /* log.h in Headers */ = {isa = PBXBuildFile; fileRef = 06F9D63D14F7456100246CD7 /* log.h */; };
    1.26  		06F9D66214F7456100246CD7 /* sgl.c in Sources */ = {isa = PBXBuildFile; fileRef = 06F9D64214F7456100246CD7 /* sgl.c */; };
    1.27 @@ -22,13 +30,19 @@
    1.28  /* End PBXBuildFile section */
    1.29  
    1.30  /* Begin PBXFileReference section */
    1.31 -		06C75229159AA36A006C47C6 /* ios_init.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ios_init.h; sourceTree = "<group>"; };
    1.32 -		06C7522A159AA36A006C47C6 /* ios_init.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ios_init.m; sourceTree = "<group>"; };
    1.33 +		06C75231159BA81F006C47C6 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
    1.34 +		06C75233159BA849006C47C6 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
    1.35 +		06E2EF28159BDA5300E169B6 /* isimple.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = isimple.app; sourceTree = BUILT_PRODUCTS_DIR; };
    1.36 +		06E2EF2C159BDA5300E169B6 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
    1.37 +		06E2EF2E159BDA5300E169B6 /* GLKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GLKit.framework; path = System/Library/Frameworks/GLKit.framework; sourceTree = SDKROOT; };
    1.38 +		06E2EF33159BDA5300E169B6 /* isimple-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "isimple-Info.plist"; sourceTree = "<group>"; };
    1.39 +		06E2EF35159BDA5300E169B6 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
    1.40 +		06E2EF4D159BDAAE00E169B6 /* isimple.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = isimple.c; sourceTree = "<group>"; };
    1.41 +		06E2EF51159BDF2D00E169B6 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
    1.42  		06F9D62114F7332500246CD7 /* libsgl.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libsgl.a; sourceTree = BUILT_PRODUCTS_DIR; };
    1.43  		06F9D62414F7332500246CD7 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
    1.44  		06F9D63414F7453B00246CD7 /* sgl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sgl.h; sourceTree = "<group>"; };
    1.45  		06F9D63714F7456100246CD7 /* cb.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = cb.c; sourceTree = "<group>"; };
    1.46 -		06F9D63A14F7456100246CD7 /* config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = config.h; sourceTree = "<group>"; };
    1.47  		06F9D63B14F7456100246CD7 /* log.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = log.c; sourceTree = "<group>"; };
    1.48  		06F9D63D14F7456100246CD7 /* log.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = log.h; sourceTree = "<group>"; };
    1.49  		06F9D64214F7456100246CD7 /* sgl.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sgl.c; sourceTree = "<group>"; };
    1.50 @@ -38,10 +52,26 @@
    1.51  /* End PBXFileReference section */
    1.52  
    1.53  /* Begin PBXFrameworksBuildPhase section */
    1.54 +		06E2EF25159BDA5300E169B6 /* Frameworks */ = {
    1.55 +			isa = PBXFrameworksBuildPhase;
    1.56 +			buildActionMask = 2147483647;
    1.57 +			files = (
    1.58 +				06E2EF52159BDF2D00E169B6 /* QuartzCore.framework in Frameworks */,
    1.59 +				06E2EF4F159BDAFC00E169B6 /* libsgl.a in Frameworks */,
    1.60 +				06E2EF2A159BDA5300E169B6 /* UIKit.framework in Frameworks */,
    1.61 +				06E2EF2B159BDA5300E169B6 /* Foundation.framework in Frameworks */,
    1.62 +				06E2EF2D159BDA5300E169B6 /* CoreGraphics.framework in Frameworks */,
    1.63 +				06E2EF2F159BDA5300E169B6 /* GLKit.framework in Frameworks */,
    1.64 +				06E2EF30159BDA5300E169B6 /* OpenGLES.framework in Frameworks */,
    1.65 +			);
    1.66 +			runOnlyForDeploymentPostprocessing = 0;
    1.67 +		};
    1.68  		06F9D61E14F7332500246CD7 /* Frameworks */ = {
    1.69  			isa = PBXFrameworksBuildPhase;
    1.70  			buildActionMask = 2147483647;
    1.71  			files = (
    1.72 +				06C75234159BA849006C47C6 /* UIKit.framework in Frameworks */,
    1.73 +				06C75232159BA81F006C47C6 /* OpenGLES.framework in Frameworks */,
    1.74  				06F9D62514F7332500246CD7 /* Foundation.framework in Frameworks */,
    1.75  			);
    1.76  			runOnlyForDeploymentPostprocessing = 0;
    1.77 @@ -49,11 +79,30 @@
    1.78  /* End PBXFrameworksBuildPhase section */
    1.79  
    1.80  /* Begin PBXGroup section */
    1.81 +		06E2EF31159BDA5300E169B6 /* isimple */ = {
    1.82 +			isa = PBXGroup;
    1.83 +			children = (
    1.84 +				06E2EF32159BDA5300E169B6 /* Supporting Files */,
    1.85 +				06E2EF4D159BDAAE00E169B6 /* isimple.c */,
    1.86 +			);
    1.87 +			path = isimple;
    1.88 +			sourceTree = "<group>";
    1.89 +		};
    1.90 +		06E2EF32159BDA5300E169B6 /* Supporting Files */ = {
    1.91 +			isa = PBXGroup;
    1.92 +			children = (
    1.93 +				06E2EF33159BDA5300E169B6 /* isimple-Info.plist */,
    1.94 +				06E2EF34159BDA5300E169B6 /* InfoPlist.strings */,
    1.95 +			);
    1.96 +			name = "Supporting Files";
    1.97 +			sourceTree = "<group>";
    1.98 +		};
    1.99  		06F9D61614F7332500246CD7 = {
   1.100  			isa = PBXGroup;
   1.101  			children = (
   1.102  				06F9D63614F7456100246CD7 /* src */,
   1.103  				06F9D63314F7453B00246CD7 /* include */,
   1.104 +				06E2EF31159BDA5300E169B6 /* isimple */,
   1.105  				06F9D62314F7332500246CD7 /* Frameworks */,
   1.106  				06F9D62214F7332500246CD7 /* Products */,
   1.107  			);
   1.108 @@ -63,6 +112,7 @@
   1.109  			isa = PBXGroup;
   1.110  			children = (
   1.111  				06F9D62114F7332500246CD7 /* libsgl.a */,
   1.112 +				06E2EF28159BDA5300E169B6 /* isimple.app */,
   1.113  			);
   1.114  			name = Products;
   1.115  			sourceTree = "<group>";
   1.116 @@ -70,7 +120,12 @@
   1.117  		06F9D62314F7332500246CD7 /* Frameworks */ = {
   1.118  			isa = PBXGroup;
   1.119  			children = (
   1.120 +				06E2EF51159BDF2D00E169B6 /* QuartzCore.framework */,
   1.121 +				06C75233159BA849006C47C6 /* UIKit.framework */,
   1.122 +				06C75231159BA81F006C47C6 /* OpenGLES.framework */,
   1.123  				06F9D62414F7332500246CD7 /* Foundation.framework */,
   1.124 +				06E2EF2C159BDA5300E169B6 /* CoreGraphics.framework */,
   1.125 +				06E2EF2E159BDA5300E169B6 /* GLKit.framework */,
   1.126  			);
   1.127  			name = Frameworks;
   1.128  			sourceTree = "<group>";
   1.129 @@ -86,11 +141,8 @@
   1.130  		06F9D63614F7456100246CD7 /* src */ = {
   1.131  			isa = PBXGroup;
   1.132  			children = (
   1.133 -				06C75229159AA36A006C47C6 /* ios_init.h */,
   1.134 -				06C7522A159AA36A006C47C6 /* ios_init.m */,
   1.135  				06F9D67714F88B1300246CD7 /* wsys_ios.m */,
   1.136  				06F9D63714F7456100246CD7 /* cb.c */,
   1.137 -				06F9D63A14F7456100246CD7 /* config.h */,
   1.138  				06F9D63B14F7456100246CD7 /* log.c */,
   1.139  				06F9D63D14F7456100246CD7 /* log.h */,
   1.140  				06F9D64214F7456100246CD7 /* sgl.c */,
   1.141 @@ -108,16 +160,31 @@
   1.142  			buildActionMask = 2147483647;
   1.143  			files = (
   1.144  				06F9D63514F7453B00246CD7 /* sgl.h in Headers */,
   1.145 -				06F9D65A14F7456100246CD7 /* config.h in Headers */,
   1.146  				06F9D65D14F7456100246CD7 /* log.h in Headers */,
   1.147  				06F9D66714F7456100246CD7 /* wsys.h in Headers */,
   1.148 -				06C7522B159AA36B006C47C6 /* ios_init.h in Headers */,
   1.149  			);
   1.150  			runOnlyForDeploymentPostprocessing = 0;
   1.151  		};
   1.152  /* End PBXHeadersBuildPhase section */
   1.153  
   1.154  /* Begin PBXNativeTarget section */
   1.155 +		06E2EF27159BDA5300E169B6 /* isimple */ = {
   1.156 +			isa = PBXNativeTarget;
   1.157 +			buildConfigurationList = 06E2EF4A159BDA5300E169B6 /* Build configuration list for PBXNativeTarget "isimple" */;
   1.158 +			buildPhases = (
   1.159 +				06E2EF24159BDA5300E169B6 /* Sources */,
   1.160 +				06E2EF25159BDA5300E169B6 /* Frameworks */,
   1.161 +				06E2EF26159BDA5300E169B6 /* Resources */,
   1.162 +			);
   1.163 +			buildRules = (
   1.164 +			);
   1.165 +			dependencies = (
   1.166 +			);
   1.167 +			name = isimple;
   1.168 +			productName = isimple;
   1.169 +			productReference = 06E2EF28159BDA5300E169B6 /* isimple.app */;
   1.170 +			productType = "com.apple.product-type.application";
   1.171 +		};
   1.172  		06F9D62014F7332500246CD7 /* sgl */ = {
   1.173  			isa = PBXNativeTarget;
   1.174  			buildConfigurationList = 06F9D62E14F7332500246CD7 /* Build configuration list for PBXNativeTarget "sgl" */;
   1.175 @@ -156,11 +223,31 @@
   1.176  			projectRoot = "";
   1.177  			targets = (
   1.178  				06F9D62014F7332500246CD7 /* sgl */,
   1.179 +				06E2EF27159BDA5300E169B6 /* isimple */,
   1.180  			);
   1.181  		};
   1.182  /* End PBXProject section */
   1.183  
   1.184 +/* Begin PBXResourcesBuildPhase section */
   1.185 +		06E2EF26159BDA5300E169B6 /* Resources */ = {
   1.186 +			isa = PBXResourcesBuildPhase;
   1.187 +			buildActionMask = 2147483647;
   1.188 +			files = (
   1.189 +				06E2EF36159BDA5300E169B6 /* InfoPlist.strings in Resources */,
   1.190 +			);
   1.191 +			runOnlyForDeploymentPostprocessing = 0;
   1.192 +		};
   1.193 +/* End PBXResourcesBuildPhase section */
   1.194 +
   1.195  /* Begin PBXSourcesBuildPhase section */
   1.196 +		06E2EF24159BDA5300E169B6 /* Sources */ = {
   1.197 +			isa = PBXSourcesBuildPhase;
   1.198 +			buildActionMask = 2147483647;
   1.199 +			files = (
   1.200 +				06E2EF4E159BDAAE00E169B6 /* isimple.c in Sources */,
   1.201 +			);
   1.202 +			runOnlyForDeploymentPostprocessing = 0;
   1.203 +		};
   1.204  		06F9D61D14F7332500246CD7 /* Sources */ = {
   1.205  			isa = PBXSourcesBuildPhase;
   1.206  			buildActionMask = 2147483647;
   1.207 @@ -170,32 +257,77 @@
   1.208  				06F9D66214F7456100246CD7 /* sgl.c in Sources */,
   1.209  				06F9D66514F7456100246CD7 /* wsys.c in Sources */,
   1.210  				06F9D67814F88B1300246CD7 /* wsys_ios.m in Sources */,
   1.211 -				06C7522C159AA36B006C47C6 /* ios_init.m in Sources */,
   1.212  			);
   1.213  			runOnlyForDeploymentPostprocessing = 0;
   1.214  		};
   1.215  /* End PBXSourcesBuildPhase section */
   1.216  
   1.217 +/* Begin PBXVariantGroup section */
   1.218 +		06E2EF34159BDA5300E169B6 /* InfoPlist.strings */ = {
   1.219 +			isa = PBXVariantGroup;
   1.220 +			children = (
   1.221 +				06E2EF35159BDA5300E169B6 /* en */,
   1.222 +			);
   1.223 +			name = InfoPlist.strings;
   1.224 +			sourceTree = "<group>";
   1.225 +		};
   1.226 +/* End PBXVariantGroup section */
   1.227 +
   1.228  /* Begin XCBuildConfiguration section */
   1.229 +		06E2EF4B159BDA5300E169B6 /* Debug */ = {
   1.230 +			isa = XCBuildConfiguration;
   1.231 +			buildSettings = {
   1.232 +				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
   1.233 +				GCC_PRECOMPILE_PREFIX_HEADER = NO;
   1.234 +				GCC_PREFIX_HEADER = "";
   1.235 +				GCC_PREPROCESSOR_DEFINITIONS = (
   1.236 +					"DEBUG=1",
   1.237 +					"$(inherited)",
   1.238 +				);
   1.239 +				"GCC_THUMB_SUPPORT[arch=armv6]" = "";
   1.240 +				GCC_WARN_UNINITIALIZED_AUTOS = YES;
   1.241 +				INFOPLIST_FILE = "isimple/isimple-Info.plist";
   1.242 +				IPHONEOS_DEPLOYMENT_TARGET = 5.1;
   1.243 +				PRODUCT_NAME = "$(TARGET_NAME)";
   1.244 +				TARGETED_DEVICE_FAMILY = "1,2";
   1.245 +				WRAPPER_EXTENSION = app;
   1.246 +			};
   1.247 +			name = Debug;
   1.248 +		};
   1.249 +		06E2EF4C159BDA5300E169B6 /* Release */ = {
   1.250 +			isa = XCBuildConfiguration;
   1.251 +			buildSettings = {
   1.252 +				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
   1.253 +				GCC_PRECOMPILE_PREFIX_HEADER = NO;
   1.254 +				GCC_PREFIX_HEADER = "";
   1.255 +				"GCC_THUMB_SUPPORT[arch=armv6]" = "";
   1.256 +				GCC_WARN_UNINITIALIZED_AUTOS = YES;
   1.257 +				INFOPLIST_FILE = "isimple/isimple-Info.plist";
   1.258 +				IPHONEOS_DEPLOYMENT_TARGET = 5.1;
   1.259 +				OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
   1.260 +				PRODUCT_NAME = "$(TARGET_NAME)";
   1.261 +				TARGETED_DEVICE_FAMILY = "1,2";
   1.262 +				WRAPPER_EXTENSION = app;
   1.263 +			};
   1.264 +			name = Release;
   1.265 +		};
   1.266  		06F9D62C14F7332500246CD7 /* Debug */ = {
   1.267  			isa = XCBuildConfiguration;
   1.268  			buildSettings = {
   1.269  				ALWAYS_SEARCH_USER_PATHS = NO;
   1.270  				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
   1.271  				COPY_PHASE_STRIP = NO;
   1.272 -				GCC_C_LANGUAGE_STANDARD = gnu99;
   1.273 +				GCC_C_LANGUAGE_STANDARD = c89;
   1.274  				GCC_DYNAMIC_NO_PIC = NO;
   1.275  				GCC_OPTIMIZATION_LEVEL = 0;
   1.276 -				GCC_PREPROCESSOR_DEFINITIONS = (
   1.277 -					"DEBUG=1",
   1.278 -					"$(inherited)",
   1.279 -				);
   1.280 +				GCC_PREPROCESSOR_DEFINITIONS = USE_WSYS_MODULE_IOS;
   1.281 +				"GCC_PREPROCESSOR_DEFINITIONS[arch=*]" = "DEBUG=1";
   1.282  				GCC_SYMBOLS_PRIVATE_EXTERN = NO;
   1.283  				GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
   1.284  				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
   1.285  				GCC_WARN_ABOUT_RETURN_TYPE = YES;
   1.286  				GCC_WARN_UNUSED_VARIABLE = YES;
   1.287 -				IPHONEOS_DEPLOYMENT_TARGET = 5.0;
   1.288 +				IPHONEOS_DEPLOYMENT_TARGET = 4.1;
   1.289  				SDKROOT = iphoneos;
   1.290  			};
   1.291  			name = Debug;
   1.292 @@ -206,12 +338,13 @@
   1.293  				ALWAYS_SEARCH_USER_PATHS = NO;
   1.294  				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
   1.295  				COPY_PHASE_STRIP = YES;
   1.296 -				GCC_C_LANGUAGE_STANDARD = gnu99;
   1.297 +				GCC_C_LANGUAGE_STANDARD = c89;
   1.298 +				GCC_PREPROCESSOR_DEFINITIONS = USE_WSYS_MODULE_IOS;
   1.299  				GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
   1.300  				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
   1.301  				GCC_WARN_ABOUT_RETURN_TYPE = YES;
   1.302  				GCC_WARN_UNUSED_VARIABLE = YES;
   1.303 -				IPHONEOS_DEPLOYMENT_TARGET = 5.0;
   1.304 +				IPHONEOS_DEPLOYMENT_TARGET = 4.1;
   1.305  				SDKROOT = iphoneos;
   1.306  				VALIDATE_PRODUCT = YES;
   1.307  			};
   1.308 @@ -221,8 +354,13 @@
   1.309  			isa = XCBuildConfiguration;
   1.310  			buildSettings = {
   1.311  				DSTROOT = /tmp/sgl.dst;
   1.312 +				GCC_C_LANGUAGE_STANDARD = gnu99;
   1.313  				GCC_PRECOMPILE_PREFIX_HEADER = NO;
   1.314  				GCC_PREFIX_HEADER = "";
   1.315 +				GCC_PREPROCESSOR_DEFINITIONS = (
   1.316 +					USE_WSYS_MODULE_IOS,
   1.317 +					XCODE_BUILD,
   1.318 +				);
   1.319  				OTHER_LDFLAGS = "-ObjC";
   1.320  				PRODUCT_NAME = "$(TARGET_NAME)";
   1.321  				SKIP_INSTALL = YES;
   1.322 @@ -233,8 +371,13 @@
   1.323  			isa = XCBuildConfiguration;
   1.324  			buildSettings = {
   1.325  				DSTROOT = /tmp/sgl.dst;
   1.326 +				GCC_C_LANGUAGE_STANDARD = gnu99;
   1.327  				GCC_PRECOMPILE_PREFIX_HEADER = NO;
   1.328  				GCC_PREFIX_HEADER = "";
   1.329 +				GCC_PREPROCESSOR_DEFINITIONS = (
   1.330 +					USE_WSYS_MODULE_IOS,
   1.331 +					XCODE_BUILD,
   1.332 +				);
   1.333  				OTHER_LDFLAGS = "-ObjC";
   1.334  				PRODUCT_NAME = "$(TARGET_NAME)";
   1.335  				SKIP_INSTALL = YES;
   1.336 @@ -244,6 +387,14 @@
   1.337  /* End XCBuildConfiguration section */
   1.338  
   1.339  /* Begin XCConfigurationList section */
   1.340 +		06E2EF4A159BDA5300E169B6 /* Build configuration list for PBXNativeTarget "isimple" */ = {
   1.341 +			isa = XCConfigurationList;
   1.342 +			buildConfigurations = (
   1.343 +				06E2EF4B159BDA5300E169B6 /* Debug */,
   1.344 +				06E2EF4C159BDA5300E169B6 /* Release */,
   1.345 +			);
   1.346 +			defaultConfigurationIsVisible = 0;
   1.347 +		};
   1.348  		06F9D61B14F7332500246CD7 /* Build configuration list for PBXProject "sgl" */ = {
   1.349  			isa = XCConfigurationList;
   1.350  			buildConfigurations = (