1.1 --- a/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj Sun Feb 06 20:56:21 2011 -0800
1.2 +++ b/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj Sun Feb 06 21:23:32 2011 -0800
1.3 @@ -3,7 +3,7 @@
1.4 archiveVersion = 1;
1.5 classes = {
1.6 };
1.7 - objectVersion = 45;
1.8 + objectVersion = 46;
1.9 objects = {
1.10
1.11 /* Begin PBXAggregateTarget section */
1.12 @@ -19,17 +19,29 @@
1.13 name = "Generate Header Files";
1.14 productName = "Generate Header Files";
1.15 };
1.16 - FDB043B30E2689CC00F5B3F9 /* Template */ = {
1.17 + 00B4F47112F696830084EC00 /* BuildUniversalSimulatorDevicelibSDL */ = {
1.18 isa = PBXAggregateTarget;
1.19 - buildConfigurationList = FDB043C20E268A0D00F5B3F9 /* Build configuration list for PBXAggregateTarget "Template" */;
1.20 + buildConfigurationList = 00B4F47412F696B30084EC00 /* Build configuration list for PBXAggregateTarget "BuildUniversalSimulatorDevicelibSDL" */;
1.21 buildPhases = (
1.22 - FDB043B20E2689CC00F5B3F9 /* ShellScript */,
1.23 + 00B4F47012F696830084EC00 /* ShellScript */,
1.24 );
1.25 dependencies = (
1.26 - FDB043BA0E2689E000F5B3F9 /* PBXTargetDependency */,
1.27 );
1.28 - name = Template;
1.29 - productName = package;
1.30 + name = BuildUniversalSimulatorDevicelibSDL;
1.31 + productName = "Build Universal Simulator/Device libSDL";
1.32 + };
1.33 + 00B4F48B12F6A69C0084EC00 /* PrepareXcodeProjectTemplate */ = {
1.34 + isa = PBXAggregateTarget;
1.35 + buildConfigurationList = 00B4F48E12F6A6BA0084EC00 /* Build configuration list for PBXAggregateTarget "PrepareXcodeProjectTemplate" */;
1.36 + buildPhases = (
1.37 + 00B4F48A12F6A69C0084EC00 /* ShellScript */,
1.38 + );
1.39 + dependencies = (
1.40 + 00B4F4B112F6A9F00084EC00 /* PBXTargetDependency */,
1.41 + 00B4F49712F6A7B00084EC00 /* PBXTargetDependency */,
1.42 + );
1.43 + name = PrepareXcodeProjectTemplate;
1.44 + productName = PrepareXcodeProjectTemplate;
1.45 };
1.46 /* End PBXAggregateTarget section */
1.47
1.48 @@ -55,7 +67,7 @@
1.49 006E98701195513D001DE610 /* utf8.txt in Resources */ = {isa = PBXBuildFile; fileRef = 006E98691195513D001DE610 /* utf8.txt */; };
1.50 006E9888119552DD001DE610 /* SDL_rwopsbundlesupport.h in Headers */ = {isa = PBXBuildFile; fileRef = 006E9886119552DD001DE610 /* SDL_rwopsbundlesupport.h */; };
1.51 006E9889119552DD001DE610 /* SDL_rwopsbundlesupport.m in Sources */ = {isa = PBXBuildFile; fileRef = 006E9887119552DD001DE610 /* SDL_rwopsbundlesupport.m */; };
1.52 - 006E988C119552FC001DE610 /* libSDLiPhoneOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FD6526630DE8FCCB002AD96B /* libSDLiPhoneOS.a */; };
1.53 + 006E988C119552FC001DE610 /* libSDL.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FD6526630DE8FCCB002AD96B /* libSDL.a */; };
1.54 0098A55B1195B4D900343137 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0098A55A1195B4D900343137 /* AudioToolbox.framework */; };
1.55 0098A55F1195B4D900343137 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0098A55E1195B4D900343137 /* CoreAudio.framework */; };
1.56 0098A5611195B4D900343137 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0098A5601195B4D900343137 /* CoreGraphics.framework */; };
1.57 @@ -258,12 +270,19 @@
1.58 remoteGlobalIDString = FD6526620DE8FCCB002AD96B;
1.59 remoteInfo = StaticLibiPhoneOS;
1.60 };
1.61 - FDB043B90E2689E000F5B3F9 /* PBXContainerItemProxy */ = {
1.62 + 00B4F49612F6A7B00084EC00 /* PBXContainerItemProxy */ = {
1.63 isa = PBXContainerItemProxy;
1.64 containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */;
1.65 proxyType = 1;
1.66 - remoteGlobalIDString = FD6526620DE8FCCB002AD96B;
1.67 - remoteInfo = StaticLibiPhoneOS;
1.68 + remoteGlobalIDString = 00B4F47112F696830084EC00;
1.69 + remoteInfo = BuildUniversalSimulatorDevicelibSDL;
1.70 + };
1.71 + 00B4F4B012F6A9F00084EC00 /* PBXContainerItemProxy */ = {
1.72 + isa = PBXContainerItemProxy;
1.73 + containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */;
1.74 + proxyType = 1;
1.75 + remoteGlobalIDString = 0064653F107E3D7400183915;
1.76 + remoteInfo = "Generate Header Files";
1.77 };
1.78 /* End PBXContainerItemProxy section */
1.79
1.80 @@ -397,7 +416,7 @@
1.81 FD5F9D1E0E0E08B3008E885B /* SDL_joystick.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_joystick.c; sourceTree = "<group>"; };
1.82 FD5F9D1F0E0E08B3008E885B /* SDL_joystick_c.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_joystick_c.h; sourceTree = "<group>"; };
1.83 FD5F9D200E0E08B3008E885B /* SDL_sysjoystick.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_sysjoystick.h; sourceTree = "<group>"; };
1.84 - FD6526630DE8FCCB002AD96B /* libSDLiPhoneOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSDLiPhoneOS.a; sourceTree = BUILT_PRODUCTS_DIR; };
1.85 + FD6526630DE8FCCB002AD96B /* libSDL.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSDL.a; sourceTree = BUILT_PRODUCTS_DIR; };
1.86 FD689EF90E26E57800F90B21 /* SDL_coreaudio_iphone.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_coreaudio_iphone.c; sourceTree = "<group>"; };
1.87 FD689EFA0E26E57800F90B21 /* SDL_coreaudio_iphone.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_coreaudio_iphone.h; sourceTree = "<group>"; };
1.88 FD689F000E26E5B600F90B21 /* SDL_sysjoystick.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDL_sysjoystick.m; sourceTree = "<group>"; };
1.89 @@ -540,7 +559,7 @@
1.90 isa = PBXFrameworksBuildPhase;
1.91 buildActionMask = 2147483647;
1.92 files = (
1.93 - 006E988C119552FC001DE610 /* libSDLiPhoneOS.a in Frameworks */,
1.94 + 006E988C119552FC001DE610 /* libSDL.a in Frameworks */,
1.95 0098A55B1195B4D900343137 /* AudioToolbox.framework in Frameworks */,
1.96 0098A55F1195B4D900343137 /* CoreAudio.framework in Frameworks */,
1.97 0098A5611195B4D900343137 /* CoreGraphics.framework in Frameworks */,
1.98 @@ -768,7 +787,7 @@
1.99 19C28FACFE9D520D11CA2CBB /* Products */ = {
1.100 isa = PBXGroup;
1.101 children = (
1.102 - FD6526630DE8FCCB002AD96B /* libSDLiPhoneOS.a */,
1.103 + FD6526630DE8FCCB002AD96B /* libSDL.a */,
1.104 006E982211955059001DE610 /* testsdl.app */,
1.105 );
1.106 name = Products;
1.107 @@ -1288,9 +1307,9 @@
1.108 productReference = 006E982211955059001DE610 /* testsdl.app */;
1.109 productType = "com.apple.product-type.application";
1.110 };
1.111 - FD6526620DE8FCCB002AD96B /* StaticLibiPhoneOS */ = {
1.112 + FD6526620DE8FCCB002AD96B /* libSDL */ = {
1.113 isa = PBXNativeTarget;
1.114 - buildConfigurationList = FD6526990DE8FD14002AD96B /* Build configuration list for PBXNativeTarget "StaticLibiPhoneOS" */;
1.115 + buildConfigurationList = FD6526990DE8FD14002AD96B /* Build configuration list for PBXNativeTarget "libSDL" */;
1.116 buildPhases = (
1.117 FD65265F0DE8FCCB002AD96B /* Headers */,
1.118 FD6526600DE8FCCB002AD96B /* Sources */,
1.119 @@ -1300,9 +1319,9 @@
1.120 dependencies = (
1.121 00646548107E3DE800183915 /* PBXTargetDependency */,
1.122 );
1.123 - name = StaticLibiPhoneOS;
1.124 + name = libSDL;
1.125 productName = iPhoneSDLStaticLib;
1.126 - productReference = FD6526630DE8FCCB002AD96B /* libSDLiPhoneOS.a */;
1.127 + productReference = FD6526630DE8FCCB002AD96B /* libSDL.a */;
1.128 productType = "com.apple.product-type.library.static";
1.129 };
1.130 /* End PBXNativeTarget section */
1.131 @@ -1311,7 +1330,7 @@
1.132 29B97313FDCFA39411CA2CEA /* Project object */ = {
1.133 isa = PBXProject;
1.134 buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "SDLiPhoneOS" */;
1.135 - compatibilityVersion = "Xcode 3.1";
1.136 + compatibilityVersion = "Xcode 3.2";
1.137 developmentRegion = English;
1.138 hasScannedForEncodings = 1;
1.139 knownRegions = (
1.140 @@ -1324,10 +1343,11 @@
1.141 projectDirPath = "";
1.142 projectRoot = ../..;
1.143 targets = (
1.144 - FD6526620DE8FCCB002AD96B /* StaticLibiPhoneOS */,
1.145 + FD6526620DE8FCCB002AD96B /* libSDL */,
1.146 0064653F107E3D7400183915 /* Generate Header Files */,
1.147 - FDB043B30E2689CC00F5B3F9 /* Template */,
1.148 006E982111955059001DE610 /* testsdl */,
1.149 + 00B4F47112F696830084EC00 /* BuildUniversalSimulatorDevicelibSDL */,
1.150 + 00B4F48B12F6A69C0084EC00 /* PrepareXcodeProjectTemplate */,
1.151 );
1.152 };
1.153 /* End PBXProject section */
1.154 @@ -1384,9 +1404,25 @@
1.155 shellPath = /bin/sh;
1.156 shellScript = "if test -f ~/.bash_profile; then source ~/.bash_profile; fi\nif test -f ~/.bashrc; then source ~/.bashrc; fi\nsh ../../build-scripts/updaterev.sh";
1.157 };
1.158 - FDB043B20E2689CC00F5B3F9 /* ShellScript */ = {
1.159 + 00B4F47012F696830084EC00 /* ShellScript */ = {
1.160 isa = PBXShellScriptBuildPhase;
1.161 - buildActionMask = 12;
1.162 + buildActionMask = 2147483647;
1.163 + files = (
1.164 + );
1.165 + inputPaths = (
1.166 + "$(SYMROOT)/$(CONFIGURATION)-iphonesimulator/libSDL.a",
1.167 + "$(SYMROOT)/$(CONFIGURATION)-iphoneos/libSDL.a",
1.168 + );
1.169 + outputPaths = (
1.170 + "$(SYMROOT)/libSDL.a",
1.171 + );
1.172 + runOnlyForDeploymentPostprocessing = 0;
1.173 + shellPath = /bin/sh;
1.174 + shellScript = "# Build the simulator binary\n# xcodebuild -project SDLiPhoneOS.xcodeproj -target libSDL -configuration Release -sdk iphonesimulator\nxcodebuild -project SDLiPhoneOS.xcodeproj -target libSDL -configuration $CONFIGURATION -sdk iphonesimulator\n\n# Build the device binary\n# xcodebuild -project SDLiPhoneOS.xcodeproj -target libSDL -configuration Release -sdk iphoneos\nxcodebuild -project SDLiPhoneOS.xcodeproj -target libSDL -configuration $CONFIGURATION -sdk iphoneos\n\n# create a simulator/device fat binary from the 2 separate builds\nlipo $SYMROOT/$CONFIGURATION-iphonesimulator/libSDL.a $SYMROOT/$CONFIGURATION-iphoneos/libSDL.a -output $SYMROOT/libSDL.a -create\n\necho \"Created Universal Simulator/Device binary at $SYMROOT/libSDL.a\"\n\n\nexit 0\n";
1.175 + };
1.176 + 00B4F48A12F6A69C0084EC00 /* ShellScript */ = {
1.177 + isa = PBXShellScriptBuildPhase;
1.178 + buildActionMask = 2147483647;
1.179 files = (
1.180 );
1.181 inputPaths = (
1.182 @@ -1395,7 +1431,7 @@
1.183 );
1.184 runOnlyForDeploymentPostprocessing = 0;
1.185 shellPath = /bin/sh;
1.186 - shellScript = "# clean up the framework, remove headers, extra files\n\ntemp=$BUILD_DIR/$BUILD_STYLE-template\ndest=\"/Developer/Platforms/iPhoneOS.platform/Developer/Library/XCode/Project Templates/SDL\"\ntemplate_dir_name=\"SDL Application\"\n\nrsync_flags=\"--exclude *.svn --links -r\"\n\n# mkdir -p $dest\nmkdir -p $temp\nmkdir -p \"$temp/$template_dir_name/lib/\"\nmkdir -p \"$temp/$template_dir_name/include\"\n\n#copy template\nrsync $rsync_flags \"../template/$template_dir_name\" $temp/\n\n#copy iPhone OS library\nrsync $rsync_flags -r $BUILD_DIR/$BUILD_STYLE-iphoneos/libSDLiPhoneOS.a \"$temp/$template_dir_name/lib/\"\n\n#copy iPhone Simulator Lib. Can't use the same name.\nrsync $rsync_flags -r $BUILD_DIR/$BUILD_STYLE-iphonesimulator/libSDLiPhoneOS.a \"$temp/$template_dir_name/lib/libSDLSimulator.a\"\n\n#copy headers\nrsync $rsync_flags ../../include/. \"$temp/$template_dir_name/include\"\n\n#install (nah, don't install)\n# cp -fr \"$temp/$template_dir_name\" \"$dest\"";
1.187 + shellScript = "# clean up the framework, remove headers, extra files\n\ntemp=$BUILD_DIR/$BUILD_STYLE-template\n# Wrong! 1. Can't assume location of Xcode directory (use xcode-select)\n# 2. Project templates should go in Application Support directories anyway.\ntemplate_dir_name=\"SDL iOS Application\"\n# dest=\"$(HOME)/Library/Application Support/Developer/Shared/Xcode/Project Templates/SDL/SDL iOS Application\"\nrsync_flags=\"--exclude *.svn --links -r\"\n\n# mkdir -p $dest\nmkdir -p $temp\nmkdir -p \"$temp/$template_dir_name/SDL/lib/\"\nmkdir -p \"$temp/$template_dir_name/SDL/include\"\n\n# copy template\nrsync $rsync_flags \"../template/$template_dir_name\" $temp/\n\n# copy Universal libSDL.a\nrsync $rsync_flags -r $SYMROOT/libSDL.a \"$temp/$template_dir_name/SDL/lib/\"\n\n# copy headers\nrsync $rsync_flags ../../include/ \"$temp/$template_dir_name/SDL/include\"\n\n#install (nah, don't install)\n# cp -fr \"$temp/$template_dir_name\" \"$dest\"";
1.188 };
1.189 /* End PBXShellScriptBuildPhase section */
1.190
1.191 @@ -1526,13 +1562,18 @@
1.192 };
1.193 006E982B11955065001DE610 /* PBXTargetDependency */ = {
1.194 isa = PBXTargetDependency;
1.195 - target = FD6526620DE8FCCB002AD96B /* StaticLibiPhoneOS */;
1.196 + target = FD6526620DE8FCCB002AD96B /* libSDL */;
1.197 targetProxy = 006E982A11955065001DE610 /* PBXContainerItemProxy */;
1.198 };
1.199 - FDB043BA0E2689E000F5B3F9 /* PBXTargetDependency */ = {
1.200 + 00B4F49712F6A7B00084EC00 /* PBXTargetDependency */ = {
1.201 isa = PBXTargetDependency;
1.202 - target = FD6526620DE8FCCB002AD96B /* StaticLibiPhoneOS */;
1.203 - targetProxy = FDB043B90E2689E000F5B3F9 /* PBXContainerItemProxy */;
1.204 + target = 00B4F47112F696830084EC00 /* BuildUniversalSimulatorDevicelibSDL */;
1.205 + targetProxy = 00B4F49612F6A7B00084EC00 /* PBXContainerItemProxy */;
1.206 + };
1.207 + 00B4F4B112F6A9F00084EC00 /* PBXTargetDependency */ = {
1.208 + isa = PBXTargetDependency;
1.209 + target = 0064653F107E3D7400183915 /* Generate Header Files */;
1.210 + targetProxy = 00B4F4B012F6A9F00084EC00 /* PBXContainerItemProxy */;
1.211 };
1.212 /* End PBXTargetDependency section */
1.213
1.214 @@ -1603,10 +1644,53 @@
1.215 };
1.216 name = Release;
1.217 };
1.218 + 00B4F47212F696830084EC00 /* Debug */ = {
1.219 + isa = XCBuildConfiguration;
1.220 + buildSettings = {
1.221 + COPY_PHASE_STRIP = NO;
1.222 + GCC_DYNAMIC_NO_PIC = NO;
1.223 + GCC_OPTIMIZATION_LEVEL = 0;
1.224 + PRODUCT_NAME = BuildUniversalSimulatorDevicelibSDL;
1.225 + };
1.226 + name = Debug;
1.227 + };
1.228 + 00B4F47312F696830084EC00 /* Release */ = {
1.229 + isa = XCBuildConfiguration;
1.230 + buildSettings = {
1.231 + COPY_PHASE_STRIP = YES;
1.232 + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1.233 + GCC_ENABLE_FIX_AND_CONTINUE = NO;
1.234 + PRODUCT_NAME = BuildUniversalSimulatorDevicelibSDL;
1.235 + ZERO_LINK = NO;
1.236 + };
1.237 + name = Release;
1.238 + };
1.239 + 00B4F48C12F6A69C0084EC00 /* Debug */ = {
1.240 + isa = XCBuildConfiguration;
1.241 + buildSettings = {
1.242 + COPY_PHASE_STRIP = NO;
1.243 + GCC_DYNAMIC_NO_PIC = NO;
1.244 + GCC_OPTIMIZATION_LEVEL = 0;
1.245 + PRODUCT_NAME = PrepareXcodeProjectTemplate;
1.246 + };
1.247 + name = Debug;
1.248 + };
1.249 + 00B4F48D12F6A69C0084EC00 /* Release */ = {
1.250 + isa = XCBuildConfiguration;
1.251 + buildSettings = {
1.252 + COPY_PHASE_STRIP = YES;
1.253 + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1.254 + GCC_ENABLE_FIX_AND_CONTINUE = NO;
1.255 + PRODUCT_NAME = PrepareXcodeProjectTemplate;
1.256 + ZERO_LINK = NO;
1.257 + };
1.258 + name = Release;
1.259 + };
1.260 C01FCF4F08A954540054247B /* Debug */ = {
1.261 isa = XCBuildConfiguration;
1.262 buildSettings = {
1.263 ALWAYS_SEARCH_USER_PATHS = NO;
1.264 + ARCHS = "$(ARCHS_STANDARD_32_BIT)";
1.265 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1.266 GCC_C_LANGUAGE_STANDARD = c99;
1.267 GCC_DEBUGGING_SYMBOLS = full;
1.268 @@ -1624,7 +1708,7 @@
1.269 isa = XCBuildConfiguration;
1.270 buildSettings = {
1.271 ALWAYS_SEARCH_USER_PATHS = NO;
1.272 - ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
1.273 + ARCHS = "$(ARCHS_STANDARD_32_BIT)";
1.274 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1.275 GCC_C_LANGUAGE_STANDARD = c99;
1.276 GCC_WARN_ABOUT_RETURN_TYPE = YES;
1.277 @@ -1640,13 +1724,12 @@
1.278 isa = XCBuildConfiguration;
1.279 buildSettings = {
1.280 ALWAYS_SEARCH_USER_PATHS = NO;
1.281 - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
1.282 COPY_PHASE_STRIP = NO;
1.283 DEPLOYMENT_LOCATION = NO;
1.284 GCC_DYNAMIC_NO_PIC = NO;
1.285 GCC_OPTIMIZATION_LEVEL = 0;
1.286 PREBINDING = NO;
1.287 - PRODUCT_NAME = SDLiPhoneOS;
1.288 + PRODUCT_NAME = SDL;
1.289 SKIP_INSTALL = YES;
1.290 };
1.291 name = Debug;
1.292 @@ -1655,34 +1738,17 @@
1.293 isa = XCBuildConfiguration;
1.294 buildSettings = {
1.295 ALWAYS_SEARCH_USER_PATHS = NO;
1.296 - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
1.297 COPY_PHASE_STRIP = YES;
1.298 DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1.299 DEPLOYMENT_LOCATION = NO;
1.300 GCC_ENABLE_FIX_AND_CONTINUE = NO;
1.301 PREBINDING = NO;
1.302 - PRODUCT_NAME = SDLiPhoneOS;
1.303 + PRODUCT_NAME = SDL;
1.304 SKIP_INSTALL = YES;
1.305 ZERO_LINK = NO;
1.306 };
1.307 name = Release;
1.308 };
1.309 - FDB043B40E2689CC00F5B3F9 /* Debug */ = {
1.310 - isa = XCBuildConfiguration;
1.311 - buildSettings = {
1.312 - ARCHS = "";
1.313 - PRODUCT_NAME = Template;
1.314 - };
1.315 - name = Debug;
1.316 - };
1.317 - FDB043B50E2689CC00F5B3F9 /* Release */ = {
1.318 - isa = XCBuildConfiguration;
1.319 - buildSettings = {
1.320 - ARCHS = "";
1.321 - PRODUCT_NAME = Template;
1.322 - };
1.323 - name = Release;
1.324 - };
1.325 /* End XCBuildConfiguration section */
1.326
1.327 /* Begin XCConfigurationList section */
1.328 @@ -1704,6 +1770,24 @@
1.329 defaultConfigurationIsVisible = 0;
1.330 defaultConfigurationName = Release;
1.331 };
1.332 + 00B4F47412F696B30084EC00 /* Build configuration list for PBXAggregateTarget "BuildUniversalSimulatorDevicelibSDL" */ = {
1.333 + isa = XCConfigurationList;
1.334 + buildConfigurations = (
1.335 + 00B4F47212F696830084EC00 /* Debug */,
1.336 + 00B4F47312F696830084EC00 /* Release */,
1.337 + );
1.338 + defaultConfigurationIsVisible = 0;
1.339 + defaultConfigurationName = Release;
1.340 + };
1.341 + 00B4F48E12F6A6BA0084EC00 /* Build configuration list for PBXAggregateTarget "PrepareXcodeProjectTemplate" */ = {
1.342 + isa = XCConfigurationList;
1.343 + buildConfigurations = (
1.344 + 00B4F48C12F6A69C0084EC00 /* Debug */,
1.345 + 00B4F48D12F6A69C0084EC00 /* Release */,
1.346 + );
1.347 + defaultConfigurationIsVisible = 0;
1.348 + defaultConfigurationName = Release;
1.349 + };
1.350 C01FCF4E08A954540054247B /* Build configuration list for PBXProject "SDLiPhoneOS" */ = {
1.351 isa = XCConfigurationList;
1.352 buildConfigurations = (
1.353 @@ -1713,7 +1797,7 @@
1.354 defaultConfigurationIsVisible = 0;
1.355 defaultConfigurationName = Release;
1.356 };
1.357 - FD6526990DE8FD14002AD96B /* Build configuration list for PBXNativeTarget "StaticLibiPhoneOS" */ = {
1.358 + FD6526990DE8FD14002AD96B /* Build configuration list for PBXNativeTarget "libSDL" */ = {
1.359 isa = XCConfigurationList;
1.360 buildConfigurations = (
1.361 FD6526640DE8FCCB002AD96B /* Debug */,
1.362 @@ -1722,15 +1806,6 @@
1.363 defaultConfigurationIsVisible = 0;
1.364 defaultConfigurationName = Release;
1.365 };
1.366 - FDB043C20E268A0D00F5B3F9 /* Build configuration list for PBXAggregateTarget "Template" */ = {
1.367 - isa = XCConfigurationList;
1.368 - buildConfigurations = (
1.369 - FDB043B40E2689CC00F5B3F9 /* Debug */,
1.370 - FDB043B50E2689CC00F5B3F9 /* Release */,
1.371 - );
1.372 - defaultConfigurationIsVisible = 0;
1.373 - defaultConfigurationName = Release;
1.374 - };
1.375 /* End XCConfigurationList section */
1.376 };
1.377 rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
2.1 Binary file Xcode-iPhoneOS/Template/SDL Application/Default.png has changed
3.1 Binary file Xcode-iPhoneOS/Template/SDL Application/Icon.png has changed
4.1 --- a/Xcode-iPhoneOS/Template/SDL Application/Info.plist Sun Feb 06 20:56:21 2011 -0800
4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
4.3 @@ -1,28 +0,0 @@
4.4 -<?xml version="1.0" encoding="UTF-8"?>
4.5 -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
4.6 -<plist version="1.0">
4.7 -<dict>
4.8 - <key>CFBundleDevelopmentRegion</key>
4.9 - <string>en</string>
4.10 - <key>CFBundleDisplayName</key>
4.11 - <string>${PRODUCT_NAME}</string>
4.12 - <key>CFBundleExecutable</key>
4.13 - <string>${EXECUTABLE_NAME}</string>
4.14 - <key>CFBundleIconFile</key>
4.15 - <string>Icon</string>
4.16 - <key>CFBundleIdentifier</key>
4.17 - <string>com.yourcompany.${PRODUCT_NAME:identifier}</string>
4.18 - <key>CFBundleInfoDictionaryVersion</key>
4.19 - <string>6.0</string>
4.20 - <key>CFBundleName</key>
4.21 - <string>${PRODUCT_NAME}</string>
4.22 - <key>CFBundlePackageType</key>
4.23 - <string>APPL</string>
4.24 - <key>CFBundleSignature</key>
4.25 - <string>????</string>
4.26 - <key>CFBundleVersion</key>
4.27 - <string>1.0</string>
4.28 - <key>LSRequiresIPhoneOS</key>
4.29 - <false/>
4.30 -</dict>
4.31 -</plist>
5.1 Binary file Xcode-iPhoneOS/Template/SDL Application/___PROJECTNAME___.xcodeproj/TemplateIcon.icns has changed
6.1 --- a/Xcode-iPhoneOS/Template/SDL Application/___PROJECTNAME___.xcodeproj/TemplateInfo.plist Sun Feb 06 20:56:21 2011 -0800
6.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
6.3 @@ -1,10 +0,0 @@
6.4 -<?xml version="1.0" encoding="UTF-8"?>
6.5 -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
6.6 -<plist version="1.0">
6.7 -<dict>
6.8 - <key>Description</key>
6.9 - <string>This project builds an SDL based project for iPhone OS using C or Objective-C. It includes everything you need to get up and running with SDL on iPhone.</string>
6.10 - <key>CFBundleIconFile</key>
6.11 - <string>Icon.png</string>
6.12 -</dict>
6.13 -</plist>
7.1 --- a/Xcode-iPhoneOS/Template/SDL Application/___PROJECTNAME___.xcodeproj/project.pbxproj Sun Feb 06 20:56:21 2011 -0800
7.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
7.3 @@ -1,274 +0,0 @@
7.4 -// !$*UTF8*$!
7.5 -{
7.6 - archiveVersion = 1;
7.7 - classes = {
7.8 - };
7.9 - objectVersion = 45;
7.10 - objects = {
7.11 -
7.12 -/* Begin PBXBuildFile section */
7.13 - 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
7.14 - 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
7.15 - 28FD15000DC6FC520079059D /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 28FD14FF0DC6FC520079059D /* OpenGLES.framework */; };
7.16 - 28FD15080DC6FC5B0079059D /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 28FD15070DC6FC5B0079059D /* QuartzCore.framework */; };
7.17 - FD779ED20E26B9B000F39101 /* libSDLSimulator.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FD779ED00E26B9B000F39101 /* libSDLSimulator.a */; };
7.18 - FD779ED30E26B9B000F39101 /* libSDLiPhoneOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FD779ED10E26B9B000F39101 /* libSDLiPhoneOS.a */; };
7.19 - FD779EDE0E26BA1200F39101 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FD779EDD0E26BA1200F39101 /* CoreAudio.framework */; };
7.20 - FD77A07D0E26BD8C00F39101 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = FD77A07C0E26BD8C00F39101 /* Icon.png */; };
7.21 - FD77A07F0E26BDA900F39101 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = FD77A07E0E26BDA900F39101 /* Default.png */; };
7.22 - FD77A0850E26BDB800F39101 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FD77A0840E26BDB800F39101 /* AudioToolbox.framework */; };
7.23 - FD77A09D0E26BDE500F39101 /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = FD77A09C0E26BDE500F39101 /* main.c */; };
7.24 - FDB8BFC60E5A0F6A00980157 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDB8BFC50E5A0F6A00980157 /* CoreGraphics.framework */; };
7.25 -/* End PBXBuildFile section */
7.26 -
7.27 -/* Begin PBXFileReference section */
7.28 - 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
7.29 - 1D6058910D05DD3D006BFB54 /* ___PROJECTNAME___.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "___PROJECTNAME___.app"; sourceTree = BUILT_PRODUCTS_DIR; };
7.30 - 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
7.31 - 28FD14FF0DC6FC520079059D /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
7.32 - 28FD15070DC6FC5B0079059D /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
7.33 - 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
7.34 - FD779ED00E26B9B000F39101 /* libSDLSimulator.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libSDLSimulator.a; path = lib/libSDLSimulator.a; sourceTree = "<group>"; };
7.35 - FD779ED10E26B9B000F39101 /* libSDLiPhoneOS.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libSDLiPhoneOS.a; path = lib/libSDLiPhoneOS.a; sourceTree = "<group>"; };
7.36 - FD779EDD0E26BA1200F39101 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = System/Library/Frameworks/CoreAudio.framework; sourceTree = SDKROOT; };
7.37 - FD77A07C0E26BD8C00F39101 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = "<group>"; };
7.38 - FD77A07E0E26BDA900F39101 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
7.39 - FD77A0840E26BDB800F39101 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
7.40 - FD77A09C0E26BDE500F39101 /* main.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = main.c; sourceTree = "<group>"; };
7.41 - FDB8BFC50E5A0F6A00980157 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
7.42 -/* End PBXFileReference section */
7.43 -
7.44 -/* Begin PBXFrameworksBuildPhase section */
7.45 - 1D60588F0D05DD3D006BFB54 /* Frameworks */ = {
7.46 - isa = PBXFrameworksBuildPhase;
7.47 - buildActionMask = 2147483647;
7.48 - files = (
7.49 - FD779ED20E26B9B000F39101 /* libSDLSimulator.a in Frameworks */,
7.50 - FD779ED30E26B9B000F39101 /* libSDLiPhoneOS.a in Frameworks */,
7.51 - 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */,
7.52 - 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */,
7.53 - 28FD15000DC6FC520079059D /* OpenGLES.framework in Frameworks */,
7.54 - 28FD15080DC6FC5B0079059D /* QuartzCore.framework in Frameworks */,
7.55 - FD779EDE0E26BA1200F39101 /* CoreAudio.framework in Frameworks */,
7.56 - FD77A0850E26BDB800F39101 /* AudioToolbox.framework in Frameworks */,
7.57 - FDB8BFC60E5A0F6A00980157 /* CoreGraphics.framework in Frameworks */,
7.58 - );
7.59 - runOnlyForDeploymentPostprocessing = 0;
7.60 - };
7.61 -/* End PBXFrameworksBuildPhase section */
7.62 -
7.63 -/* Begin PBXGroup section */
7.64 - 19C28FACFE9D520D11CA2CBB /* Products */ = {
7.65 - isa = PBXGroup;
7.66 - children = (
7.67 - 1D6058910D05DD3D006BFB54 /* ___PROJECTNAME___.app */,
7.68 - );
7.69 - name = Products;
7.70 - sourceTree = "<group>";
7.71 - };
7.72 - 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
7.73 - isa = PBXGroup;
7.74 - children = (
7.75 - 29B97315FDCFA39411CA2CEA /* Sources */,
7.76 - 29B97317FDCFA39411CA2CEA /* Resources */,
7.77 - FD779EC50E26B99E00F39101 /* Libraries */,
7.78 - 29B97323FDCFA39411CA2CEA /* Frameworks */,
7.79 - 19C28FACFE9D520D11CA2CBB /* Products */,
7.80 - );
7.81 - name = CustomTemplate;
7.82 - sourceTree = "<group>";
7.83 - };
7.84 - 29B97315FDCFA39411CA2CEA /* Sources */ = {
7.85 - isa = PBXGroup;
7.86 - children = (
7.87 - FD77A09C0E26BDE500F39101 /* main.c */,
7.88 - );
7.89 - name = Sources;
7.90 - sourceTree = "<group>";
7.91 - };
7.92 - 29B97317FDCFA39411CA2CEA /* Resources */ = {
7.93 - isa = PBXGroup;
7.94 - children = (
7.95 - FD77A07E0E26BDA900F39101 /* Default.png */,
7.96 - FD77A07C0E26BD8C00F39101 /* Icon.png */,
7.97 - 8D1107310486CEB800E47090 /* Info.plist */,
7.98 - );
7.99 - name = Resources;
7.100 - sourceTree = "<group>";
7.101 - };
7.102 - 29B97323FDCFA39411CA2CEA /* Frameworks */ = {
7.103 - isa = PBXGroup;
7.104 - children = (
7.105 - FDB8BFC50E5A0F6A00980157 /* CoreGraphics.framework */,
7.106 - FD77A0840E26BDB800F39101 /* AudioToolbox.framework */,
7.107 - FD779EDD0E26BA1200F39101 /* CoreAudio.framework */,
7.108 - 28FD15070DC6FC5B0079059D /* QuartzCore.framework */,
7.109 - 28FD14FF0DC6FC520079059D /* OpenGLES.framework */,
7.110 - 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */,
7.111 - 1D30AB110D05D00D00671497 /* Foundation.framework */,
7.112 - );
7.113 - name = Frameworks;
7.114 - sourceTree = "<group>";
7.115 - };
7.116 - FD779EC50E26B99E00F39101 /* Libraries */ = {
7.117 - isa = PBXGroup;
7.118 - children = (
7.119 - FD779ED00E26B9B000F39101 /* libSDLSimulator.a */,
7.120 - FD779ED10E26B9B000F39101 /* libSDLiPhoneOS.a */,
7.121 - );
7.122 - name = Libraries;
7.123 - sourceTree = "<group>";
7.124 - };
7.125 -/* End PBXGroup section */
7.126 -
7.127 -/* Begin PBXNativeTarget section */
7.128 - 1D6058900D05DD3D006BFB54 /* ___PROJECTNAME___ */ = {
7.129 - isa = PBXNativeTarget;
7.130 - buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "___PROJECTNAME___" */;
7.131 - buildPhases = (
7.132 - 1D60588D0D05DD3D006BFB54 /* Resources */,
7.133 - 1D60588E0D05DD3D006BFB54 /* Sources */,
7.134 - 1D60588F0D05DD3D006BFB54 /* Frameworks */,
7.135 - );
7.136 - buildRules = (
7.137 - );
7.138 - dependencies = (
7.139 - );
7.140 - name = "___PROJECTNAME___";
7.141 - productName = "___PROJECTNAME___";
7.142 - productReference = 1D6058910D05DD3D006BFB54 /* ___PROJECTNAME___.app */;
7.143 - productType = "com.apple.product-type.application";
7.144 - };
7.145 -/* End PBXNativeTarget section */
7.146 -
7.147 -/* Begin PBXProject section */
7.148 - 29B97313FDCFA39411CA2CEA /* Project object */ = {
7.149 - isa = PBXProject;
7.150 - buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "___PROJECTNAME___" */;
7.151 - compatibilityVersion = "Xcode 3.1";
7.152 - hasScannedForEncodings = 1;
7.153 - mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
7.154 - projectDirPath = "";
7.155 - projectRoot = "";
7.156 - targets = (
7.157 - 1D6058900D05DD3D006BFB54 /* ___PROJECTNAME___ */,
7.158 - );
7.159 - };
7.160 -/* End PBXProject section */
7.161 -
7.162 -/* Begin PBXResourcesBuildPhase section */
7.163 - 1D60588D0D05DD3D006BFB54 /* Resources */ = {
7.164 - isa = PBXResourcesBuildPhase;
7.165 - buildActionMask = 2147483647;
7.166 - files = (
7.167 - FD77A07D0E26BD8C00F39101 /* Icon.png in Resources */,
7.168 - FD77A07F0E26BDA900F39101 /* Default.png in Resources */,
7.169 - );
7.170 - runOnlyForDeploymentPostprocessing = 0;
7.171 - };
7.172 -/* End PBXResourcesBuildPhase section */
7.173 -
7.174 -/* Begin PBXSourcesBuildPhase section */
7.175 - 1D60588E0D05DD3D006BFB54 /* Sources */ = {
7.176 - isa = PBXSourcesBuildPhase;
7.177 - buildActionMask = 2147483647;
7.178 - files = (
7.179 - FD77A09D0E26BDE500F39101 /* main.c in Sources */,
7.180 - );
7.181 - runOnlyForDeploymentPostprocessing = 0;
7.182 - };
7.183 -/* End PBXSourcesBuildPhase section */
7.184 -
7.185 -/* Begin XCBuildConfiguration section */
7.186 - 1D6058940D05DD3E006BFB54 /* Debug */ = {
7.187 - isa = XCBuildConfiguration;
7.188 - buildSettings = {
7.189 - ALWAYS_SEARCH_USER_PATHS = NO;
7.190 - COPY_PHASE_STRIP = NO;
7.191 - GCC_DYNAMIC_NO_PIC = NO;
7.192 - GCC_OPTIMIZATION_LEVEL = 0;
7.193 - GCC_PRECOMPILE_PREFIX_HEADER = YES;
7.194 - GCC_PREFIX_HEADER = "";
7.195 - INFOPLIST_FILE = Info.plist;
7.196 - LIBRARY_SEARCH_PATHS = (
7.197 - "$(inherited)",
7.198 - "\"$(SRCROOT)/lib\"",
7.199 - );
7.200 - PRODUCT_NAME = "___PROJECTNAME___";
7.201 - };
7.202 - name = Debug;
7.203 - };
7.204 - 1D6058950D05DD3E006BFB54 /* Release */ = {
7.205 - isa = XCBuildConfiguration;
7.206 - buildSettings = {
7.207 - ALWAYS_SEARCH_USER_PATHS = NO;
7.208 - COPY_PHASE_STRIP = YES;
7.209 - GCC_PRECOMPILE_PREFIX_HEADER = YES;
7.210 - GCC_PREFIX_HEADER = "";
7.211 - INFOPLIST_FILE = Info.plist;
7.212 - LIBRARY_SEARCH_PATHS = (
7.213 - "$(inherited)",
7.214 - "\"$(SRCROOT)/lib\"",
7.215 - );
7.216 - PRODUCT_NAME = "___PROJECTNAME___";
7.217 - };
7.218 - name = Release;
7.219 - };
7.220 - C01FCF4F08A954540054247B /* Debug */ = {
7.221 - isa = XCBuildConfiguration;
7.222 - buildSettings = {
7.223 - ARCHS = "$(ARCHS_STANDARD_32_BIT)";
7.224 - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
7.225 - GCC_C_LANGUAGE_STANDARD = c99;
7.226 - GCC_WARN_ABOUT_RETURN_TYPE = YES;
7.227 - GCC_WARN_UNUSED_VARIABLE = YES;
7.228 - HEADER_SEARCH_PATHS = ./include;
7.229 - LIBRARY_SEARCH_PATHS = ./lib;
7.230 - ONLY_ACTIVE_ARCH = YES;
7.231 - OTHER_CFLAGS = "";
7.232 - PREBINDING = NO;
7.233 - SDKROOT = iphoneos2.0;
7.234 - };
7.235 - name = Debug;
7.236 - };
7.237 - C01FCF5008A954540054247B /* Release */ = {
7.238 - isa = XCBuildConfiguration;
7.239 - buildSettings = {
7.240 - ARCHS = "$(ARCHS_STANDARD_32_BIT)";
7.241 - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
7.242 - GCC_C_LANGUAGE_STANDARD = c99;
7.243 - GCC_WARN_ABOUT_RETURN_TYPE = YES;
7.244 - GCC_WARN_UNUSED_VARIABLE = YES;
7.245 - HEADER_SEARCH_PATHS = ./include;
7.246 - LIBRARY_SEARCH_PATHS = ./lib;
7.247 - OTHER_CFLAGS = "";
7.248 - PREBINDING = NO;
7.249 - SDKROOT = iphoneos2.0;
7.250 - };
7.251 - name = Release;
7.252 - };
7.253 -/* End XCBuildConfiguration section */
7.254 -
7.255 -/* Begin XCConfigurationList section */
7.256 - 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "___PROJECTNAME___" */ = {
7.257 - isa = XCConfigurationList;
7.258 - buildConfigurations = (
7.259 - 1D6058940D05DD3E006BFB54 /* Debug */,
7.260 - 1D6058950D05DD3E006BFB54 /* Release */,
7.261 - );
7.262 - defaultConfigurationIsVisible = 0;
7.263 - defaultConfigurationName = Release;
7.264 - };
7.265 - C01FCF4E08A954540054247B /* Build configuration list for PBXProject "___PROJECTNAME___" */ = {
7.266 - isa = XCConfigurationList;
7.267 - buildConfigurations = (
7.268 - C01FCF4F08A954540054247B /* Debug */,
7.269 - C01FCF5008A954540054247B /* Release */,
7.270 - );
7.271 - defaultConfigurationIsVisible = 0;
7.272 - defaultConfigurationName = Release;
7.273 - };
7.274 -/* End XCConfigurationList section */
7.275 - };
7.276 - rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
7.277 -}
8.1 --- a/Xcode-iPhoneOS/Template/SDL Application/build/Debug-iphonesimulator/___PROJECTNAME___.app.dSYM/Contents/Info.plist Sun Feb 06 20:56:21 2011 -0800
8.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
8.3 @@ -1,23 +0,0 @@
8.4 -<?xml version="1.0" encoding="UTF-8"?>
8.5 -<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
8.6 -<plist version="1.0">
8.7 - <dict>
8.8 - <key>CFBundleDevelopmentRegion</key>
8.9 - <string>English</string>
8.10 - <key>CFBundleIdentifier</key>
8.11 - <string>com.apple.xcode.dsym.com.yourcompany.___PROJECTNAME___</string>
8.12 - <key>CFBundleInfoDictionaryVersion</key>
8.13 - <string>6.0</string>
8.14 - <key>CFBundlePackageType</key>
8.15 - <string>dSYM</string>
8.16 - <key>CFBundleSignature</key>
8.17 - <string>????</string>
8.18 - <key>CFBundleVersion</key>
8.19 - <string>1.0</string>
8.20 - <key>dSYM_UUID</key>
8.21 - <dict>
8.22 - <key>i386</key>
8.23 - <string>13FECEAC-A920-B1BB-2724-8872CDC3ADA0</string>
8.24 - </dict>
8.25 - </dict>
8.26 -</plist>
9.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/Debug-iphonesimulator/___PROJECTNAME___.app.dSYM/Contents/Resources/DWARF/___PROJECTNAME___ has changed
10.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/Debug-iphonesimulator/___PROJECTNAME___.app/Default.png has changed
11.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/Debug-iphonesimulator/___PROJECTNAME___.app/Icon.png has changed
12.1 --- a/Xcode-iPhoneOS/Template/SDL Application/build/Debug-iphonesimulator/___PROJECTNAME___.app/Info.plist Sun Feb 06 20:56:21 2011 -0800
12.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
12.3 @@ -1,34 +0,0 @@
12.4 -<?xml version="1.0" encoding="UTF-8"?>
12.5 -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
12.6 -<plist version="1.0">
12.7 -<dict>
12.8 - <key>CFBundleDevelopmentRegion</key>
12.9 - <string>en</string>
12.10 - <key>CFBundleDisplayName</key>
12.11 - <string>___PROJECTNAME___</string>
12.12 - <key>CFBundleExecutable</key>
12.13 - <string>___PROJECTNAME___</string>
12.14 - <key>CFBundleIconFile</key>
12.15 - <string>Icon</string>
12.16 - <key>CFBundleIdentifier</key>
12.17 - <string>com.yourcompany.___PROJECTNAME___</string>
12.18 - <key>CFBundleInfoDictionaryVersion</key>
12.19 - <string>6.0</string>
12.20 - <key>CFBundleName</key>
12.21 - <string>___PROJECTNAME___</string>
12.22 - <key>CFBundlePackageType</key>
12.23 - <string>APPL</string>
12.24 - <key>CFBundleSignature</key>
12.25 - <string>????</string>
12.26 - <key>CFBundleVersion</key>
12.27 - <string>1.0</string>
12.28 - <key>DTPlatformName</key>
12.29 - <string>iphonesimulator</string>
12.30 - <key>DTSDKName</key>
12.31 - <string>iphonesimulator2.0</string>
12.32 - <key>LSRequiresIPhoneOS</key>
12.33 - <true/>
12.34 - <key>NSMainNibFile</key>
12.35 - <string>MainWindow</string>
12.36 -</dict>
12.37 -</plist>
13.1 --- a/Xcode-iPhoneOS/Template/SDL Application/build/Debug-iphonesimulator/___PROJECTNAME___.app/PkgInfo Sun Feb 06 20:56:21 2011 -0800
13.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
13.3 @@ -1,1 +0,0 @@
13.4 -APPL????
13.5 \ No newline at end of file
14.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/Debug-iphonesimulator/___PROJECTNAME___.app/___PROJECTNAME___ has changed
15.1 --- a/Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/Debug-iphonesimulator/___PROJECTNAME___.build/Objects-normal/i386/___PROJECTNAME___.LinkFileList Sun Feb 06 20:56:21 2011 -0800
15.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
15.3 @@ -1,1 +0,0 @@
15.4 -/Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/___PROJECTNAME___.build/Debug-iphonesimulator/___PROJECTNAME___.build/Objects-normal/i386/main.o
16.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/Debug-iphonesimulator/___PROJECTNAME___.build/___PROJECTNAME___-all-target-headers.hmap has changed
17.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/Debug-iphonesimulator/___PROJECTNAME___.build/___PROJECTNAME___-generated-files.hmap has changed
18.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/Debug-iphonesimulator/___PROJECTNAME___.build/___PROJECTNAME___-own-target-headers.hmap has changed
19.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/Debug-iphonesimulator/___PROJECTNAME___.build/___PROJECTNAME___-project-headers.hmap has changed
20.1 --- a/Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/Debug-iphonesimulator/___PROJECTNAME___.build/___PROJECTNAME___.dep Sun Feb 06 20:56:21 2011 -0800
20.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
20.3 @@ -1,16 +0,0 @@
20.4 -ffffffffffffffffffffffffffffffff 11cd877137f9eed324e782d588e84bc5 ffffffffffffffffffffffffffffffff 14640 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/___PROJECTNAME___.build/Debug-iphonesimulator/___PROJECTNAME___.build/Objects-normal/i386/main.o
20.5 -ffffffffffffffffffffffffffffffff 3ec28360e78eae6a493a0ff3bc6cb17c ffffffffffffffffffffffffffffffff 102 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/Debug-iphonesimulator/___PROJECTNAME___.app.dSYM
20.6 -ffffffffffffffffffffffffffffffff 151e90fb5889edbdd1ed207b3cc0ba0f ffffffffffffffffffffffffffffffff 238 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/Debug-iphonesimulator/___PROJECTNAME___.app
20.7 -ffffffffffffffffffffffffffffffff d94c112c37991e822c2d60f8753ab166 ffffffffffffffffffffffffffffffff 388096 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/Debug-iphonesimulator/___PROJECTNAME___.app/___PROJECTNAME___
20.8 -00000000000000000000000000000000 9c5835cfbec618ea047d82500496eb4e ffffffffffffffffffffffffffffffff 18383 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/Debug-iphonesimulator/___PROJECTNAME___.app/Default.png
20.9 -00000000000000000000000000000000 a8332d261f5c1a7151ce1ec088c26f91 ffffffffffffffffffffffffffffffff 2409 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/Debug-iphonesimulator/___PROJECTNAME___.app/Icon.png
20.10 -00000000000000000000000000000000 88ad0f6737f993b4b854d8dba66ce9b4 ffffffffffffffffffffffffffffffff 8 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/Debug-iphonesimulator/___PROJECTNAME___.app/PkgInfo
20.11 -00000000000000000000000000000000 88ad0f6737f993b4b854d8dba66ce9b4 ffffffffffffffffffffffffffffffff 1015 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/Debug-iphonesimulator/___PROJECTNAME___.app/Info.plist
20.12 -00000000000000000000000000000000 c8b0b76ee5e241ec6f7dbf84b5c85f28 ffffffffffffffffffffffffffffffff 0 /var/folders/zW/zWR2gF8XEAuqN0aTXFk5d++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/___PROJECTNAMEASIDENTIFIER____Prefix-bpynybvfiwqzxectdzwvdroszlym/___PROJECTNAMEASIDENTIFIER____Prefix.pch.gch
20.13 -0000000048767f0000000000000023da 74f867b0bb5fe890d8d7d5b98c4d397c ffffffffffffffffffffffffffffffff 1569 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/Debug-iphonesimulator/___PROJECTNAME___.app/MainWindow.nib
20.14 -69b1745c36275003a4f22b4511a443df a4e0e24a8f482188b4dbad70f4c0e55f ffffffffffffffffffffffffffffffff 25936 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/___PROJECTNAME___.build/Debug-iphonesimulator/___PROJECTNAME___.build/Objects-normal/i386/EAGLView.o
20.15 -69b1745c3623a7d2a4f22b4511a4ee85 d87cc36129a82d84fb817ff1d7e9f9b6 ffffffffffffffffffffffffffffffff 22640 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/___PROJECTNAME___.build/Debug-iphonesimulator/___PROJECTNAME___.build/Objects-normal/i386/___PROJECTNAMEASIDENTIFIER___AppDelegate.o
20.16 -00000000002f120a0000000000001daa 69b1745c714dec1fa4f22b4511a4b476 ffffffffffffffffffffffffffffffff 22662292 /var/folders/zW/zWR2gF8XEAuqN0aTXFk5d++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/___PROJECTNAMEASIDENTIFIER____Prefix-fajjndbnyormigaxufwepgtdykpq/___PROJECTNAMEASIDENTIFIER____Prefix.pch.gch
20.17 -00000000002f120a0000000000001daa 206fe62d4911b4b42ccc1cf37d3a1334 ffffffffffffffffffffffffffffffff 22662292 /var/folders/zW/zWR2gF8XEAuqN0aTXFk5d++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/___PROJECTNAMEASIDENTIFIER____Prefix-bxaflywrxupegvakgkrektprcnev/___PROJECTNAMEASIDENTIFIER____Prefix.pch.gch
20.18 -00000000002f120a0000000000001daa a3dd45bcb64de9c36af81cda0e565bfd ffffffffffffffffffffffffffffffff 22662292 /var/folders/zW/zWR2gF8XEAuqN0aTXFk5d++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/___PROJECTNAMEASIDENTIFIER____Prefix-ctstxtdqcljwpafcbczzbhokmwgz/___PROJECTNAMEASIDENTIFIER____Prefix.pch.gch
20.19 -00000000002f120a0000000000001daa 607c65cab4cd06b31262fa968678ba71 ffffffffffffffffffffffffffffffff 22662292 /var/folders/zW/zWR2gF8XEAuqN0aTXFk5d++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/___PROJECTNAMEASIDENTIFIER____Prefix-flevhlcgutpnytdmlzaybwhfijyq/___PROJECTNAMEASIDENTIFIER____Prefix.pch.gch
21.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/Debug-iphonesimulator/___PROJECTNAME___.build/___PROJECTNAME___.hmap has changed
22.1 --- a/Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/Debug-iphonesimulator/___PROJECTNAME___.build/___PROJECTNAME___~.dep Sun Feb 06 20:56:21 2011 -0800
22.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
22.3 @@ -1,14 +0,0 @@
22.4 -ffffffffffffffffffffffffffffffff 3ec28360e78eae6a493a0ff3bc6cb17c ffffffffffffffffffffffffffffffff 0 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/Debug-iphonesimulator/___PROJECTNAME___.app.dSYM
22.5 -ffffffffffffffffffffffffffffffff 151e90fb5889edbdd1ed207b3cc0ba0f ffffffffffffffffffffffffffffffff 136 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/Debug-iphonesimulator/___PROJECTNAME___.app
22.6 -bf152f6a7e5e7cd84f037b7ffa51fab1 477f017c7be9afce6f6345477d142156 ffffffffffffffffffffffffffffffff 0 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/Debug-iphonesimulator/___PROJECTNAME___.app/___PROJECTNAME___
22.7 -000000004763b96a000000000000636a bf152f6a3639307f4f037b7ffa2936d5 ffffffffffffffffffffffffffffffff 16076 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/___PROJECTNAME___.build/Debug-iphonesimulator/___PROJECTNAME___.build/Objects-normal/i386/main.o
22.8 -00000000000000000000000000000000 88ad0f6737f993b4b854d8dba66ce9b4 ffffffffffffffffffffffffffffffff 8 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/Debug-iphonesimulator/___PROJECTNAME___.app/PkgInfo
22.9 -00000000000000000000000000000000 88ad0f6737f993b4b854d8dba66ce9b4 ffffffffffffffffffffffffffffffff 1015 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/Debug-iphonesimulator/___PROJECTNAME___.app/Info.plist
22.10 -00000000000000000000000000000000 c8b0b76ee5e241ec6f7dbf84b5c85f28 ffffffffffffffffffffffffffffffff 0 /var/folders/zW/zWR2gF8XEAuqN0aTXFk5d++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/___PROJECTNAMEASIDENTIFIER____Prefix-bpynybvfiwqzxectdzwvdroszlym/___PROJECTNAMEASIDENTIFIER____Prefix.pch.gch
22.11 -0000000048767f0000000000000023da 74f867b0bb5fe890d8d7d5b98c4d397c ffffffffffffffffffffffffffffffff 1569 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/Debug-iphonesimulator/___PROJECTNAME___.app/MainWindow.nib
22.12 -69b1745c36275003a4f22b4511a443df a4e0e24a8f482188b4dbad70f4c0e55f ffffffffffffffffffffffffffffffff 25936 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/___PROJECTNAME___.build/Debug-iphonesimulator/___PROJECTNAME___.build/Objects-normal/i386/EAGLView.o
22.13 -69b1745c3623a7d2a4f22b4511a4ee85 d87cc36129a82d84fb817ff1d7e9f9b6 ffffffffffffffffffffffffffffffff 22640 /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/build/___PROJECTNAME___.build/Debug-iphonesimulator/___PROJECTNAME___.build/Objects-normal/i386/___PROJECTNAMEASIDENTIFIER___AppDelegate.o
22.14 -00000000002f120a0000000000001daa 69b1745c714dec1fa4f22b4511a4b476 ffffffffffffffffffffffffffffffff 22662292 /var/folders/zW/zWR2gF8XEAuqN0aTXFk5d++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/___PROJECTNAMEASIDENTIFIER____Prefix-fajjndbnyormigaxufwepgtdykpq/___PROJECTNAMEASIDENTIFIER____Prefix.pch.gch
22.15 -00000000002f120a0000000000001daa 206fe62d4911b4b42ccc1cf37d3a1334 ffffffffffffffffffffffffffffffff 22662292 /var/folders/zW/zWR2gF8XEAuqN0aTXFk5d++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/___PROJECTNAMEASIDENTIFIER____Prefix-bxaflywrxupegvakgkrektprcnev/___PROJECTNAMEASIDENTIFIER____Prefix.pch.gch
22.16 -00000000002f120a0000000000001daa a3dd45bcb64de9c36af81cda0e565bfd ffffffffffffffffffffffffffffffff 22662292 /var/folders/zW/zWR2gF8XEAuqN0aTXFk5d++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/___PROJECTNAMEASIDENTIFIER____Prefix-ctstxtdqcljwpafcbczzbhokmwgz/___PROJECTNAMEASIDENTIFIER____Prefix.pch.gch
22.17 -00000000002f120a0000000000001daa 607c65cab4cd06b31262fa968678ba71 ffffffffffffffffffffffffffffffff 22662292 /var/folders/zW/zWR2gF8XEAuqN0aTXFk5d++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/___PROJECTNAMEASIDENTIFIER____Prefix-flevhlcgutpnytdmlzaybwhfijyq/___PROJECTNAMEASIDENTIFIER____Prefix.pch.gch
23.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/___PROJECTNAME___.pbxindex/categories.pbxbtree has changed
24.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/___PROJECTNAME___.pbxindex/cdecls.pbxbtree has changed
25.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/___PROJECTNAME___.pbxindex/decls.pbxbtree has changed
26.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/___PROJECTNAME___.pbxindex/files.pbxbtree has changed
27.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/___PROJECTNAME___.pbxindex/imports.pbxbtree has changed
28.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/___PROJECTNAME___.pbxindex/pbxindex.header has changed
29.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/___PROJECTNAME___.pbxindex/protocols.pbxbtree has changed
30.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/___PROJECTNAME___.pbxindex/refs.pbxbtree has changed
31.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/___PROJECTNAME___.pbxindex/strings.pbxstrings/control has changed
32.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/___PROJECTNAME___.pbxindex/strings.pbxstrings/strings has changed
33.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/___PROJECTNAME___.pbxindex/subclasses.pbxbtree has changed
34.1 Binary file Xcode-iPhoneOS/Template/SDL Application/build/___PROJECTNAME___.build/___PROJECTNAME___.pbxindex/symbols0.pbxsymbols has changed
35.1 --- a/Xcode-iPhoneOS/Template/SDL Application/main.c Sun Feb 06 20:56:21 2011 -0800
35.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
35.3 @@ -1,91 +0,0 @@
35.4 -/*
35.5 - * rectangles.c
35.6 - * written by Holmes Futrell
35.7 - * use however you want
35.8 - */
35.9 -
35.10 -#include "SDL.h"
35.11 -#include <time.h>
35.12 -
35.13 -#define SCREEN_WIDTH 320
35.14 -#define SCREEN_HEIGHT 480
35.15 -
35.16 -int
35.17 -randomInt(int min, int max)
35.18 -{
35.19 - return min + rand() % (max - min + 1);
35.20 -}
35.21 -
35.22 -void
35.23 -render(void)
35.24 -{
35.25 -
35.26 - Uint8 r, g, b;
35.27 - /* Come up with a random rectangle */
35.28 - SDL_Rect rect;
35.29 - rect.w = randomInt(64, 128);
35.30 - rect.h = randomInt(64, 128);
35.31 - rect.x = randomInt(0, SCREEN_WIDTH);
35.32 - rect.y = randomInt(0, SCREEN_HEIGHT);
35.33 -
35.34 - /* Come up with a random color */
35.35 - r = randomInt(50, 255);
35.36 - g = randomInt(50, 255);
35.37 - b = randomInt(50, 255);
35.38 - SDL_SetRenderDrawColor(r, g, b, 255);
35.39 -
35.40 - /* Fill the rectangle in the color */
35.41 - SDL_RenderFillRect(&rect);
35.42 -
35.43 - /* update screen */
35.44 - SDL_RenderPresent();
35.45 -
35.46 -}
35.47 -
35.48 -int
35.49 -main(int argc, char *argv[])
35.50 -{
35.51 -
35.52 - SDL_WindowID windowID;
35.53 - int done;
35.54 - SDL_Event event;
35.55 -
35.56 - /* initialize SDL */
35.57 - if (SDL_Init(SDL_INIT_VIDEO) < 0) {
35.58 - printf("Could not initialize SDL\n");
35.59 - }
35.60 -
35.61 - /* seed random number generator */
35.62 - srand(time(NULL));
35.63 -
35.64 - /* create window and renderer */
35.65 - windowID =
35.66 - SDL_CreateWindow(NULL, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,
35.67 - SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN);
35.68 - if (windowID == 0) {
35.69 - printf("Could not initialize Window\n");
35.70 - }
35.71 - if (SDL_CreateRenderer(windowID, -1, 0) != 0) {
35.72 - printf("Could not create renderer\n");
35.73 - }
35.74 -
35.75 - /* Fill screen with black */
35.76 - SDL_RenderClear();
35.77 -
35.78 - /* Enter render loop, waiting for user to quit */
35.79 - done = 0;
35.80 - while (!done) {
35.81 - while (SDL_PollEvent(&event)) {
35.82 - if (event.type == SDL_QUIT) {
35.83 - done = 1;
35.84 - }
35.85 - }
35.86 - render();
35.87 - SDL_Delay(1);
35.88 - }
35.89 -
35.90 - /* shutdown SDL */
35.91 - SDL_Quit();
35.92 -
35.93 - return 0;
35.94 -}
36.1 Binary file Xcode-iPhoneOS/Template/SDL iOS Application/Default.png has changed
37.1 Binary file Xcode-iPhoneOS/Template/SDL iOS Application/Icon.png has changed
38.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
38.2 +++ b/Xcode-iPhoneOS/Template/SDL iOS Application/Info.plist Sun Feb 06 21:23:32 2011 -0800
38.3 @@ -0,0 +1,28 @@
38.4 +<?xml version="1.0" encoding="UTF-8"?>
38.5 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
38.6 +<plist version="1.0">
38.7 +<dict>
38.8 + <key>CFBundleDevelopmentRegion</key>
38.9 + <string>en</string>
38.10 + <key>CFBundleDisplayName</key>
38.11 + <string>${PRODUCT_NAME}</string>
38.12 + <key>CFBundleExecutable</key>
38.13 + <string>${EXECUTABLE_NAME}</string>
38.14 + <key>CFBundleIconFile</key>
38.15 + <string>Icon</string>
38.16 + <key>CFBundleIdentifier</key>
38.17 + <string>com.yourcompany.${PRODUCT_NAME:identifier}</string>
38.18 + <key>CFBundleInfoDictionaryVersion</key>
38.19 + <string>6.0</string>
38.20 + <key>CFBundleName</key>
38.21 + <string>${PRODUCT_NAME}</string>
38.22 + <key>CFBundlePackageType</key>
38.23 + <string>APPL</string>
38.24 + <key>CFBundleSignature</key>
38.25 + <string>????</string>
38.26 + <key>CFBundleVersion</key>
38.27 + <string>1.0</string>
38.28 + <key>LSRequiresIPhoneOS</key>
38.29 + <false/>
38.30 +</dict>
38.31 +</plist>
39.1 Binary file Xcode-iPhoneOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateIcon.icns has changed
40.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
40.2 +++ b/Xcode-iPhoneOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateInfo.plist Sun Feb 06 21:23:32 2011 -0800
40.3 @@ -0,0 +1,10 @@
40.4 +<?xml version="1.0" encoding="UTF-8"?>
40.5 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
40.6 +<plist version="1.0">
40.7 +<dict>
40.8 + <key>Description</key>
40.9 + <string>This project builds an SDL based project for iPhone OS using C or Objective-C. It includes everything you need to get up and running with SDL on iPhone.</string>
40.10 + <key>CFBundleIconFile</key>
40.11 + <string>Icon.png</string>
40.12 +</dict>
40.13 +</plist>
41.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
41.2 +++ b/Xcode-iPhoneOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/project.pbxproj Sun Feb 06 21:23:32 2011 -0800
41.3 @@ -0,0 +1,405 @@
41.4 +// !$*UTF8*$!
41.5 +{
41.6 + archiveVersion = 1;
41.7 + classes = {
41.8 + };
41.9 + objectVersion = 45;
41.10 + objects = {
41.11 +
41.12 +/* Begin PBXBuildFile section */
41.13 + 0097E2D912F70C4E00724AC5 /* libSDL.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0097E2D512F70C4D00724AC5 /* libSDL.a */; };
41.14 + 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
41.15 + 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
41.16 + 28FD15000DC6FC520079059D /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 28FD14FF0DC6FC520079059D /* OpenGLES.framework */; };
41.17 + 28FD15080DC6FC5B0079059D /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 28FD15070DC6FC5B0079059D /* QuartzCore.framework */; };
41.18 + FD779EDE0E26BA1200F39101 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FD779EDD0E26BA1200F39101 /* CoreAudio.framework */; };
41.19 + FD77A07D0E26BD8C00F39101 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = FD77A07C0E26BD8C00F39101 /* Icon.png */; };
41.20 + FD77A07F0E26BDA900F39101 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = FD77A07E0E26BDA900F39101 /* Default.png */; };
41.21 + FD77A0850E26BDB800F39101 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FD77A0840E26BDB800F39101 /* AudioToolbox.framework */; };
41.22 + FD77A09D0E26BDE500F39101 /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = FD77A09C0E26BDE500F39101 /* main.c */; };
41.23 + FDB8BFC60E5A0F6A00980157 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDB8BFC50E5A0F6A00980157 /* CoreGraphics.framework */; };
41.24 +/* End PBXBuildFile section */
41.25 +
41.26 +/* Begin PBXFileReference section */
41.27 + 0097E29A12F70C4D00724AC5 /* begin_code.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = begin_code.h; sourceTree = "<group>"; };
41.28 + 0097E29B12F70C4D00724AC5 /* close_code.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = close_code.h; sourceTree = "<group>"; };
41.29 + 0097E29C12F70C4D00724AC5 /* doxyfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = doxyfile; sourceTree = "<group>"; };
41.30 + 0097E29D12F70C4D00724AC5 /* SDL.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL.h; sourceTree = "<group>"; };
41.31 + 0097E29E12F70C4D00724AC5 /* SDL_assert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_assert.h; sourceTree = "<group>"; };
41.32 + 0097E29F12F70C4D00724AC5 /* SDL_atomic.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_atomic.h; sourceTree = "<group>"; };
41.33 + 0097E2A012F70C4D00724AC5 /* SDL_audio.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_audio.h; sourceTree = "<group>"; };
41.34 + 0097E2A112F70C4D00724AC5 /* SDL_blendmode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_blendmode.h; sourceTree = "<group>"; };
41.35 + 0097E2A212F70C4D00724AC5 /* SDL_clipboard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_clipboard.h; sourceTree = "<group>"; };
41.36 + 0097E2A312F70C4D00724AC5 /* SDL_compat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_compat.h; sourceTree = "<group>"; };
41.37 + 0097E2A412F70C4D00724AC5 /* SDL_config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_config.h; sourceTree = "<group>"; };
41.38 + 0097E2A512F70C4D00724AC5 /* SDL_config.h.default */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SDL_config.h.default; sourceTree = "<group>"; };
41.39 + 0097E2A612F70C4D00724AC5 /* SDL_config.h.in */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SDL_config.h.in; sourceTree = "<group>"; };
41.40 + 0097E2A712F70C4D00724AC5 /* SDL_config_android.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_config_android.h; sourceTree = "<group>"; };
41.41 + 0097E2A812F70C4D00724AC5 /* SDL_config_iphoneos.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_config_iphoneos.h; sourceTree = "<group>"; };
41.42 + 0097E2A912F70C4D00724AC5 /* SDL_config_macosx.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_config_macosx.h; sourceTree = "<group>"; };
41.43 + 0097E2AA12F70C4D00724AC5 /* SDL_config_minimal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_config_minimal.h; sourceTree = "<group>"; };
41.44 + 0097E2AB12F70C4D00724AC5 /* SDL_config_nintendods.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_config_nintendods.h; sourceTree = "<group>"; };
41.45 + 0097E2AC12F70C4D00724AC5 /* SDL_config_pandora.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_config_pandora.h; sourceTree = "<group>"; };
41.46 + 0097E2AD12F70C4D00724AC5 /* SDL_config_windows.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_config_windows.h; sourceTree = "<group>"; };
41.47 + 0097E2AE12F70C4D00724AC5 /* SDL_config_wiz.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_config_wiz.h; sourceTree = "<group>"; };
41.48 + 0097E2AF12F70C4D00724AC5 /* SDL_copying.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_copying.h; sourceTree = "<group>"; };
41.49 + 0097E2B012F70C4D00724AC5 /* SDL_cpuinfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_cpuinfo.h; sourceTree = "<group>"; };
41.50 + 0097E2B112F70C4D00724AC5 /* SDL_endian.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_endian.h; sourceTree = "<group>"; };
41.51 + 0097E2B212F70C4D00724AC5 /* SDL_error.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_error.h; sourceTree = "<group>"; };
41.52 + 0097E2B312F70C4D00724AC5 /* SDL_events.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_events.h; sourceTree = "<group>"; };
41.53 + 0097E2B412F70C4D00724AC5 /* SDL_gesture.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_gesture.h; sourceTree = "<group>"; };
41.54 + 0097E2B512F70C4D00724AC5 /* SDL_haptic.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_haptic.h; sourceTree = "<group>"; };
41.55 + 0097E2B612F70C4D00724AC5 /* SDL_input.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_input.h; sourceTree = "<group>"; };
41.56 + 0097E2B712F70C4D00724AC5 /* SDL_joystick.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_joystick.h; sourceTree = "<group>"; };
41.57 + 0097E2B812F70C4D00724AC5 /* SDL_keyboard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_keyboard.h; sourceTree = "<group>"; };
41.58 + 0097E2B912F70C4D00724AC5 /* SDL_keysym.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_keysym.h; sourceTree = "<group>"; };
41.59 + 0097E2BA12F70C4D00724AC5 /* SDL_loadso.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_loadso.h; sourceTree = "<group>"; };
41.60 + 0097E2BB12F70C4D00724AC5 /* SDL_main.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_main.h; sourceTree = "<group>"; };
41.61 + 0097E2BC12F70C4D00724AC5 /* SDL_mouse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_mouse.h; sourceTree = "<group>"; };
41.62 + 0097E2BD12F70C4D00724AC5 /* SDL_mutex.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_mutex.h; sourceTree = "<group>"; };
41.63 + 0097E2BE12F70C4D00724AC5 /* SDL_name.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_name.h; sourceTree = "<group>"; };
41.64 + 0097E2BF12F70C4D00724AC5 /* SDL_opengl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_opengl.h; sourceTree = "<group>"; };
41.65 + 0097E2C012F70C4D00724AC5 /* SDL_opengles.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_opengles.h; sourceTree = "<group>"; };
41.66 + 0097E2C112F70C4D00724AC5 /* SDL_pixels.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_pixels.h; sourceTree = "<group>"; };
41.67 + 0097E2C212F70C4D00724AC5 /* SDL_platform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_platform.h; sourceTree = "<group>"; };
41.68 + 0097E2C312F70C4D00724AC5 /* SDL_power.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_power.h; sourceTree = "<group>"; };
41.69 + 0097E2C412F70C4D00724AC5 /* SDL_quit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_quit.h; sourceTree = "<group>"; };
41.70 + 0097E2C512F70C4D00724AC5 /* SDL_rect.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_rect.h; sourceTree = "<group>"; };
41.71 + 0097E2C612F70C4D00724AC5 /* SDL_revision.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_revision.h; sourceTree = "<group>"; };
41.72 + 0097E2C712F70C4D00724AC5 /* SDL_rwops.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_rwops.h; sourceTree = "<group>"; };
41.73 + 0097E2C812F70C4D00724AC5 /* SDL_scalemode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_scalemode.h; sourceTree = "<group>"; };
41.74 + 0097E2C912F70C4D00724AC5 /* SDL_scancode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_scancode.h; sourceTree = "<group>"; };
41.75 + 0097E2CA12F70C4D00724AC5 /* SDL_shape.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_shape.h; sourceTree = "<group>"; };
41.76 + 0097E2CB12F70C4D00724AC5 /* SDL_stdinc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_stdinc.h; sourceTree = "<group>"; };
41.77 + 0097E2CC12F70C4D00724AC5 /* SDL_surface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_surface.h; sourceTree = "<group>"; };
41.78 + 0097E2CD12F70C4D00724AC5 /* SDL_syswm.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_syswm.h; sourceTree = "<group>"; };
41.79 + 0097E2CE12F70C4D00724AC5 /* SDL_thread.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_thread.h; sourceTree = "<group>"; };
41.80 + 0097E2CF12F70C4D00724AC5 /* SDL_timer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_timer.h; sourceTree = "<group>"; };
41.81 + 0097E2D012F70C4D00724AC5 /* SDL_touch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_touch.h; sourceTree = "<group>"; };
41.82 + 0097E2D112F70C4D00724AC5 /* SDL_types.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_types.h; sourceTree = "<group>"; };
41.83 + 0097E2D212F70C4D00724AC5 /* SDL_version.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_version.h; sourceTree = "<group>"; };
41.84 + 0097E2D312F70C4D00724AC5 /* SDL_video.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_video.h; sourceTree = "<group>"; };
41.85 + 0097E2D512F70C4D00724AC5 /* libSDL.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libSDL.a; sourceTree = "<group>"; };
41.86 + 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
41.87 + 1D6058910D05DD3D006BFB54 /* ___PROJECTNAME___.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "___PROJECTNAME___.app"; sourceTree = BUILT_PRODUCTS_DIR; };
41.88 + 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
41.89 + 28FD14FF0DC6FC520079059D /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
41.90 + 28FD15070DC6FC5B0079059D /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
41.91 + 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
41.92 + FD779EDD0E26BA1200F39101 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = System/Library/Frameworks/CoreAudio.framework; sourceTree = SDKROOT; };
41.93 + FD77A07C0E26BD8C00F39101 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = "<group>"; };
41.94 + FD77A07E0E26BDA900F39101 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
41.95 + FD77A0840E26BDB800F39101 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
41.96 + FD77A09C0E26BDE500F39101 /* main.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = main.c; sourceTree = "<group>"; };
41.97 + FDB8BFC50E5A0F6A00980157 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
41.98 +/* End PBXFileReference section */
41.99 +
41.100 +/* Begin PBXFrameworksBuildPhase section */
41.101 + 1D60588F0D05DD3D006BFB54 /* Frameworks */ = {
41.102 + isa = PBXFrameworksBuildPhase;
41.103 + buildActionMask = 2147483647;
41.104 + files = (
41.105 + 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */,
41.106 + 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */,
41.107 + 28FD15000DC6FC520079059D /* OpenGLES.framework in Frameworks */,
41.108 + 28FD15080DC6FC5B0079059D /* QuartzCore.framework in Frameworks */,
41.109 + FD779EDE0E26BA1200F39101 /* CoreAudio.framework in Frameworks */,
41.110 + FD77A0850E26BDB800F39101 /* AudioToolbox.framework in Frameworks */,
41.111 + FDB8BFC60E5A0F6A00980157 /* CoreGraphics.framework in Frameworks */,
41.112 + 0097E2D912F70C4E00724AC5 /* libSDL.a in Frameworks */,
41.113 + );
41.114 + runOnlyForDeploymentPostprocessing = 0;
41.115 + };
41.116 +/* End PBXFrameworksBuildPhase section */
41.117 +
41.118 +/* Begin PBXGroup section */
41.119 + 0097E29812F70C4D00724AC5 /* SDL */ = {
41.120 + isa = PBXGroup;
41.121 + children = (
41.122 + 0097E29912F70C4D00724AC5 /* include */,
41.123 + 0097E2D412F70C4D00724AC5 /* lib */,
41.124 + );
41.125 + path = SDL;
41.126 + sourceTree = "<group>";
41.127 + };
41.128 + 0097E29912F70C4D00724AC5 /* include */ = {
41.129 + isa = PBXGroup;
41.130 + children = (
41.131 + 0097E29A12F70C4D00724AC5 /* begin_code.h */,
41.132 + 0097E29B12F70C4D00724AC5 /* close_code.h */,
41.133 + 0097E29C12F70C4D00724AC5 /* doxyfile */,
41.134 + 0097E29D12F70C4D00724AC5 /* SDL.h */,
41.135 + 0097E29E12F70C4D00724AC5 /* SDL_assert.h */,
41.136 + 0097E29F12F70C4D00724AC5 /* SDL_atomic.h */,
41.137 + 0097E2A012F70C4D00724AC5 /* SDL_audio.h */,
41.138 + 0097E2A112F70C4D00724AC5 /* SDL_blendmode.h */,
41.139 + 0097E2A212F70C4D00724AC5 /* SDL_clipboard.h */,
41.140 + 0097E2A312F70C4D00724AC5 /* SDL_compat.h */,
41.141 + 0097E2A412F70C4D00724AC5 /* SDL_config.h */,
41.142 + 0097E2A512F70C4D00724AC5 /* SDL_config.h.default */,
41.143 + 0097E2A612F70C4D00724AC5 /* SDL_config.h.in */,
41.144 + 0097E2A712F70C4D00724AC5 /* SDL_config_android.h */,
41.145 + 0097E2A812F70C4D00724AC5 /* SDL_config_iphoneos.h */,
41.146 + 0097E2A912F70C4D00724AC5 /* SDL_config_macosx.h */,
41.147 + 0097E2AA12F70C4D00724AC5 /* SDL_config_minimal.h */,
41.148 + 0097E2AB12F70C4D00724AC5 /* SDL_config_nintendods.h */,
41.149 + 0097E2AC12F70C4D00724AC5 /* SDL_config_pandora.h */,
41.150 + 0097E2AD12F70C4D00724AC5 /* SDL_config_windows.h */,
41.151 + 0097E2AE12F70C4D00724AC5 /* SDL_config_wiz.h */,
41.152 + 0097E2AF12F70C4D00724AC5 /* SDL_copying.h */,
41.153 + 0097E2B012F70C4D00724AC5 /* SDL_cpuinfo.h */,
41.154 + 0097E2B112F70C4D00724AC5 /* SDL_endian.h */,
41.155 + 0097E2B212F70C4D00724AC5 /* SDL_error.h */,
41.156 + 0097E2B312F70C4D00724AC5 /* SDL_events.h */,
41.157 + 0097E2B412F70C4D00724AC5 /* SDL_gesture.h */,
41.158 + 0097E2B512F70C4D00724AC5 /* SDL_haptic.h */,
41.159 + 0097E2B612F70C4D00724AC5 /* SDL_input.h */,
41.160 + 0097E2B712F70C4D00724AC5 /* SDL_joystick.h */,
41.161 + 0097E2B812F70C4D00724AC5 /* SDL_keyboard.h */,
41.162 + 0097E2B912F70C4D00724AC5 /* SDL_keysym.h */,
41.163 + 0097E2BA12F70C4D00724AC5 /* SDL_loadso.h */,
41.164 + 0097E2BB12F70C4D00724AC5 /* SDL_main.h */,
41.165 + 0097E2BC12F70C4D00724AC5 /* SDL_mouse.h */,
41.166 + 0097E2BD12F70C4D00724AC5 /* SDL_mutex.h */,
41.167 + 0097E2BE12F70C4D00724AC5 /* SDL_name.h */,
41.168 + 0097E2BF12F70C4D00724AC5 /* SDL_opengl.h */,
41.169 + 0097E2C012F70C4D00724AC5 /* SDL_opengles.h */,
41.170 + 0097E2C112F70C4D00724AC5 /* SDL_pixels.h */,
41.171 + 0097E2C212F70C4D00724AC5 /* SDL_platform.h */,
41.172 + 0097E2C312F70C4D00724AC5 /* SDL_power.h */,
41.173 + 0097E2C412F70C4D00724AC5 /* SDL_quit.h */,
41.174 + 0097E2C512F70C4D00724AC5 /* SDL_rect.h */,
41.175 + 0097E2C612F70C4D00724AC5 /* SDL_revision.h */,
41.176 + 0097E2C712F70C4D00724AC5 /* SDL_rwops.h */,
41.177 + 0097E2C812F70C4D00724AC5 /* SDL_scalemode.h */,
41.178 + 0097E2C912F70C4D00724AC5 /* SDL_scancode.h */,
41.179 + 0097E2CA12F70C4D00724AC5 /* SDL_shape.h */,
41.180 + 0097E2CB12F70C4D00724AC5 /* SDL_stdinc.h */,
41.181 + 0097E2CC12F70C4D00724AC5 /* SDL_surface.h */,
41.182 + 0097E2CD12F70C4D00724AC5 /* SDL_syswm.h */,
41.183 + 0097E2CE12F70C4D00724AC5 /* SDL_thread.h */,
41.184 + 0097E2CF12F70C4D00724AC5 /* SDL_timer.h */,
41.185 + 0097E2D012F70C4D00724AC5 /* SDL_touch.h */,
41.186 + 0097E2D112F70C4D00724AC5 /* SDL_types.h */,
41.187 + 0097E2D212F70C4D00724AC5 /* SDL_version.h */,
41.188 + 0097E2D312F70C4D00724AC5 /* SDL_video.h */,
41.189 + );
41.190 + path = include;
41.191 + sourceTree = "<group>";
41.192 + };
41.193 + 0097E2D412F70C4D00724AC5 /* lib */ = {
41.194 + isa = PBXGroup;
41.195 + children = (
41.196 + 0097E2D512F70C4D00724AC5 /* libSDL.a */,
41.197 + );
41.198 + path = lib;
41.199 + sourceTree = "<group>";
41.200 + };
41.201 + 19C28FACFE9D520D11CA2CBB /* Products */ = {
41.202 + isa = PBXGroup;
41.203 + children = (
41.204 + 1D6058910D05DD3D006BFB54 /* ___PROJECTNAME___.app */,
41.205 + );
41.206 + name = Products;
41.207 + sourceTree = "<group>";
41.208 + };
41.209 + 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
41.210 + isa = PBXGroup;
41.211 + children = (
41.212 + 29B97315FDCFA39411CA2CEA /* Sources */,
41.213 + 29B97317FDCFA39411CA2CEA /* Resources */,
41.214 + 0097E29812F70C4D00724AC5 /* SDL */,
41.215 + 29B97323FDCFA39411CA2CEA /* Frameworks */,
41.216 + 19C28FACFE9D520D11CA2CBB /* Products */,
41.217 + );
41.218 + name = CustomTemplate;
41.219 + sourceTree = "<group>";
41.220 + };
41.221 + 29B97315FDCFA39411CA2CEA /* Sources */ = {
41.222 + isa = PBXGroup;
41.223 + children = (
41.224 + FD77A09C0E26BDE500F39101 /* main.c */,
41.225 + );
41.226 + name = Sources;
41.227 + sourceTree = "<group>";
41.228 + };
41.229 + 29B97317FDCFA39411CA2CEA /* Resources */ = {
41.230 + isa = PBXGroup;
41.231 + children = (
41.232 + FD77A07E0E26BDA900F39101 /* Default.png */,
41.233 + FD77A07C0E26BD8C00F39101 /* Icon.png */,
41.234 + 8D1107310486CEB800E47090 /* Info.plist */,
41.235 + );
41.236 + name = Resources;
41.237 + sourceTree = "<group>";
41.238 + };
41.239 + 29B97323FDCFA39411CA2CEA /* Frameworks */ = {
41.240 + isa = PBXGroup;
41.241 + children = (
41.242 + FDB8BFC50E5A0F6A00980157 /* CoreGraphics.framework */,
41.243 + FD77A0840E26BDB800F39101 /* AudioToolbox.framework */,
41.244 + FD779EDD0E26BA1200F39101 /* CoreAudio.framework */,
41.245 + 28FD15070DC6FC5B0079059D /* QuartzCore.framework */,
41.246 + 28FD14FF0DC6FC520079059D /* OpenGLES.framework */,
41.247 + 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */,
41.248 + 1D30AB110D05D00D00671497 /* Foundation.framework */,
41.249 + );
41.250 + name = Frameworks;
41.251 + sourceTree = "<group>";
41.252 + };
41.253 +/* End PBXGroup section */
41.254 +
41.255 +/* Begin PBXNativeTarget section */
41.256 + 1D6058900D05DD3D006BFB54 /* ___PROJECTNAME___ */ = {
41.257 + isa = PBXNativeTarget;
41.258 + buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "___PROJECTNAME___" */;
41.259 + buildPhases = (
41.260 + 1D60588D0D05DD3D006BFB54 /* Resources */,
41.261 + 1D60588E0D05DD3D006BFB54 /* Sources */,
41.262 + 1D60588F0D05DD3D006BFB54 /* Frameworks */,
41.263 + );
41.264 + buildRules = (
41.265 + );
41.266 + dependencies = (
41.267 + );
41.268 + name = "___PROJECTNAME___";
41.269 + productName = "___PROJECTNAME___";
41.270 + productReference = 1D6058910D05DD3D006BFB54 /* ___PROJECTNAME___.app */;
41.271 + productType = "com.apple.product-type.application";
41.272 + };
41.273 +/* End PBXNativeTarget section */
41.274 +
41.275 +/* Begin PBXProject section */
41.276 + 29B97313FDCFA39411CA2CEA /* Project object */ = {
41.277 + isa = PBXProject;
41.278 + buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "___PROJECTNAME___" */;
41.279 + compatibilityVersion = "Xcode 3.1";
41.280 + developmentRegion = English;
41.281 + hasScannedForEncodings = 1;
41.282 + knownRegions = (
41.283 + English,
41.284 + Japanese,
41.285 + French,
41.286 + German,
41.287 + );
41.288 + mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
41.289 + projectDirPath = "";
41.290 + projectRoot = "";
41.291 + targets = (
41.292 + 1D6058900D05DD3D006BFB54 /* ___PROJECTNAME___ */,
41.293 + );
41.294 + };
41.295 +/* End PBXProject section */
41.296 +
41.297 +/* Begin PBXResourcesBuildPhase section */
41.298 + 1D60588D0D05DD3D006BFB54 /* Resources */ = {
41.299 + isa = PBXResourcesBuildPhase;
41.300 + buildActionMask = 2147483647;
41.301 + files = (
41.302 + FD77A07D0E26BD8C00F39101 /* Icon.png in Resources */,
41.303 + FD77A07F0E26BDA900F39101 /* Default.png in Resources */,
41.304 + );
41.305 + runOnlyForDeploymentPostprocessing = 0;
41.306 + };
41.307 +/* End PBXResourcesBuildPhase section */
41.308 +
41.309 +/* Begin PBXSourcesBuildPhase section */
41.310 + 1D60588E0D05DD3D006BFB54 /* Sources */ = {
41.311 + isa = PBXSourcesBuildPhase;
41.312 + buildActionMask = 2147483647;
41.313 + files = (
41.314 + FD77A09D0E26BDE500F39101 /* main.c in Sources */,
41.315 + );
41.316 + runOnlyForDeploymentPostprocessing = 0;
41.317 + };
41.318 +/* End PBXSourcesBuildPhase section */
41.319 +
41.320 +/* Begin XCBuildConfiguration section */
41.321 + 1D6058940D05DD3E006BFB54 /* Debug */ = {
41.322 + isa = XCBuildConfiguration;
41.323 + buildSettings = {
41.324 + ALWAYS_SEARCH_USER_PATHS = NO;
41.325 + COPY_PHASE_STRIP = NO;
41.326 + GCC_DYNAMIC_NO_PIC = NO;
41.327 + GCC_OPTIMIZATION_LEVEL = 0;
41.328 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
41.329 + GCC_PREFIX_HEADER = "";
41.330 + INFOPLIST_FILE = Info.plist;
41.331 + LIBRARY_SEARCH_PATHS = (
41.332 + "$(inherited)",
41.333 + "\"$(SRCROOT)/SDL/lib\"",
41.334 + );
41.335 + PRODUCT_NAME = "___PROJECTNAME___";
41.336 + };
41.337 + name = Debug;
41.338 + };
41.339 + 1D6058950D05DD3E006BFB54 /* Release */ = {
41.340 + isa = XCBuildConfiguration;
41.341 + buildSettings = {
41.342 + ALWAYS_SEARCH_USER_PATHS = NO;
41.343 + COPY_PHASE_STRIP = YES;
41.344 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
41.345 + GCC_PREFIX_HEADER = "";
41.346 + INFOPLIST_FILE = Info.plist;
41.347 + LIBRARY_SEARCH_PATHS = (
41.348 + "$(inherited)",
41.349 + "\"$(SRCROOT)/SDL/lib\"",
41.350 + );
41.351 + PRODUCT_NAME = "___PROJECTNAME___";
41.352 + };
41.353 + name = Release;
41.354 + };
41.355 + C01FCF4F08A954540054247B /* Debug */ = {
41.356 + isa = XCBuildConfiguration;
41.357 + buildSettings = {
41.358 + ARCHS = "$(ARCHS_STANDARD_32_BIT)";
41.359 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
41.360 + GCC_C_LANGUAGE_STANDARD = c99;
41.361 + GCC_WARN_ABOUT_RETURN_TYPE = YES;
41.362 + GCC_WARN_UNUSED_VARIABLE = YES;
41.363 + ONLY_ACTIVE_ARCH = YES;
41.364 + OTHER_CFLAGS = "";
41.365 + PREBINDING = NO;
41.366 + SDKROOT = iphoneos;
41.367 + };
41.368 + name = Debug;
41.369 + };
41.370 + C01FCF5008A954540054247B /* Release */ = {
41.371 + isa = XCBuildConfiguration;
41.372 + buildSettings = {
41.373 + ARCHS = "$(ARCHS_STANDARD_32_BIT)";
41.374 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
41.375 + GCC_C_LANGUAGE_STANDARD = c99;
41.376 + GCC_WARN_ABOUT_RETURN_TYPE = YES;
41.377 + GCC_WARN_UNUSED_VARIABLE = YES;
41.378 + OTHER_CFLAGS = "";
41.379 + PREBINDING = NO;
41.380 + SDKROOT = iphoneos;
41.381 + };
41.382 + name = Release;
41.383 + };
41.384 +/* End XCBuildConfiguration section */
41.385 +
41.386 +/* Begin XCConfigurationList section */
41.387 + 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "___PROJECTNAME___" */ = {
41.388 + isa = XCConfigurationList;
41.389 + buildConfigurations = (
41.390 + 1D6058940D05DD3E006BFB54 /* Debug */,
41.391 + 1D6058950D05DD3E006BFB54 /* Release */,
41.392 + );
41.393 + defaultConfigurationIsVisible = 0;
41.394 + defaultConfigurationName = Release;
41.395 + };
41.396 + C01FCF4E08A954540054247B /* Build configuration list for PBXProject "___PROJECTNAME___" */ = {
41.397 + isa = XCConfigurationList;
41.398 + buildConfigurations = (
41.399 + C01FCF4F08A954540054247B /* Debug */,
41.400 + C01FCF5008A954540054247B /* Release */,
41.401 + );
41.402 + defaultConfigurationIsVisible = 0;
41.403 + defaultConfigurationName = Release;
41.404 + };
41.405 +/* End XCConfigurationList section */
41.406 + };
41.407 + rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
41.408 +}
42.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
42.2 +++ b/Xcode-iPhoneOS/Template/SDL iOS Application/main.c Sun Feb 06 21:23:32 2011 -0800
42.3 @@ -0,0 +1,91 @@
42.4 +/*
42.5 + * rectangles.c
42.6 + * written by Holmes Futrell
42.7 + * use however you want
42.8 + */
42.9 +
42.10 +#include "SDL.h"
42.11 +#include <time.h>
42.12 +
42.13 +#define SCREEN_WIDTH 320
42.14 +#define SCREEN_HEIGHT 480
42.15 +
42.16 +int
42.17 +randomInt(int min, int max)
42.18 +{
42.19 + return min + rand() % (max - min + 1);
42.20 +}
42.21 +
42.22 +void
42.23 +render(void)
42.24 +{
42.25 +
42.26 + Uint8 r, g, b;
42.27 + /* Come up with a random rectangle */
42.28 + SDL_Rect rect;
42.29 + rect.w = randomInt(64, 128);
42.30 + rect.h = randomInt(64, 128);
42.31 + rect.x = randomInt(0, SCREEN_WIDTH);
42.32 + rect.y = randomInt(0, SCREEN_HEIGHT);
42.33 +
42.34 + /* Come up with a random color */
42.35 + r = randomInt(50, 255);
42.36 + g = randomInt(50, 255);
42.37 + b = randomInt(50, 255);
42.38 + SDL_SetRenderDrawColor(r, g, b, 255);
42.39 +
42.40 + /* Fill the rectangle in the color */
42.41 + SDL_RenderFillRect(&rect);
42.42 +
42.43 + /* update screen */
42.44 + SDL_RenderPresent();
42.45 +
42.46 +}
42.47 +
42.48 +int
42.49 +main(int argc, char *argv[])
42.50 +{
42.51 +
42.52 + SDL_WindowID windowID;
42.53 + int done;
42.54 + SDL_Event event;
42.55 +
42.56 + /* initialize SDL */
42.57 + if (SDL_Init(SDL_INIT_VIDEO) < 0) {
42.58 + printf("Could not initialize SDL\n");
42.59 + }
42.60 +
42.61 + /* seed random number generator */
42.62 + srand(time(NULL));
42.63 +
42.64 + /* create window and renderer */
42.65 + windowID =
42.66 + SDL_CreateWindow(NULL, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,
42.67 + SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN);
42.68 + if (windowID == 0) {
42.69 + printf("Could not initialize Window\n");
42.70 + }
42.71 + if (SDL_CreateRenderer(windowID, -1, 0) != 0) {
42.72 + printf("Could not create renderer\n");
42.73 + }
42.74 +
42.75 + /* Fill screen with black */
42.76 + SDL_RenderClear();
42.77 +
42.78 + /* Enter render loop, waiting for user to quit */
42.79 + done = 0;
42.80 + while (!done) {
42.81 + while (SDL_PollEvent(&event)) {
42.82 + if (event.type == SDL_QUIT) {
42.83 + done = 1;
42.84 + }
42.85 + }
42.86 + render();
42.87 + SDL_Delay(1);
42.88 + }
42.89 +
42.90 + /* shutdown SDL */
42.91 + SDL_Quit();
42.92 +
42.93 + return 0;
42.94 +}