Updated SDL iOS project for tvOS
authorSam Lantinga <slouken@libsdl.org>
Thu, 26 Oct 2017 10:49:33 -0700
changeset 1165726ce9cdde7f4
parent 11656 c351a823c2af
child 11658 fbfdee28682d
Updated SDL iOS project for tvOS
Xcode-iOS/SDL/SDL.xcodeproj/project.pbxproj
     1.1 --- a/Xcode-iOS/SDL/SDL.xcodeproj/project.pbxproj	Thu Oct 26 10:42:14 2017 -0700
     1.2 +++ b/Xcode-iOS/SDL/SDL.xcodeproj/project.pbxproj	Thu Oct 26 10:49:33 2017 -0700
     1.3 @@ -18,6 +18,28 @@
     1.4  			name = PrepareXcodeProjectTemplate;
     1.5  			productName = PrepareXcodeProjectTemplate;
     1.6  		};
     1.7 +		C143576D1F4C4DAA000B792B /* All (iOS) */ = {
     1.8 +			isa = PBXAggregateTarget;
     1.9 +			buildConfigurationList = C143576E1F4C4DAB000B792B /* Build configuration list for PBXAggregateTarget "All (iOS)" */;
    1.10 +			buildPhases = (
    1.11 +				C14357711F4C4DB2000B792B /* ShellScript */,
    1.12 +			);
    1.13 +			dependencies = (
    1.14 +			);
    1.15 +			name = "All (iOS)";
    1.16 +			productName = "All (iOS)";
    1.17 +		};
    1.18 +		C14357721F4C4F2A000B792B /* All (tvOS) */ = {
    1.19 +			isa = PBXAggregateTarget;
    1.20 +			buildConfigurationList = C14357741F4C4F2A000B792B /* Build configuration list for PBXAggregateTarget "All (tvOS)" */;
    1.21 +			buildPhases = (
    1.22 +				C14357731F4C4F2A000B792B /* ShellScript */,
    1.23 +			);
    1.24 +			dependencies = (
    1.25 +			);
    1.26 +			name = "All (tvOS)";
    1.27 +			productName = "All (iOS)";
    1.28 +		};
    1.29  /* End PBXAggregateTarget section */
    1.30  
    1.31  /* Begin PBXBuildFile section */
    1.32 @@ -1214,9 +1236,9 @@
    1.33  /* End PBXHeadersBuildPhase section */
    1.34  
    1.35  /* Begin PBXNativeTarget section */
    1.36 -		FAB598131BB5C1B100BE72C5 /* libSDL-tv */ = {
    1.37 +		FAB598131BB5C1B100BE72C5 /* libSDL (tvOS) */ = {
    1.38  			isa = PBXNativeTarget;
    1.39 -			buildConfigurationList = FAB5981A1BB5C1B100BE72C5 /* Build configuration list for PBXNativeTarget "libSDL-tv" */;
    1.40 +			buildConfigurationList = FAB5981A1BB5C1B100BE72C5 /* Build configuration list for PBXNativeTarget "libSDL (tvOS)" */;
    1.41  			buildPhases = (
    1.42  				FAB598101BB5C1B100BE72C5 /* Sources */,
    1.43  			);
    1.44 @@ -1224,14 +1246,14 @@
    1.45  			);
    1.46  			dependencies = (
    1.47  			);
    1.48 -			name = "libSDL-tv";
    1.49 +			name = "libSDL (tvOS)";
    1.50  			productName = "libSDL-tv";
    1.51  			productReference = FAB598141BB5C1B100BE72C5 /* libSDL2.a */;
    1.52  			productType = "com.apple.product-type.library.static";
    1.53  		};
    1.54 -		FD6526620DE8FCCB002AD96B /* libSDL */ = {
    1.55 +		FD6526620DE8FCCB002AD96B /* libSDL (iOS) */ = {
    1.56  			isa = PBXNativeTarget;
    1.57 -			buildConfigurationList = FD6526990DE8FD14002AD96B /* Build configuration list for PBXNativeTarget "libSDL" */;
    1.58 +			buildConfigurationList = FD6526990DE8FD14002AD96B /* Build configuration list for PBXNativeTarget "libSDL (iOS)" */;
    1.59  			buildPhases = (
    1.60  				FD65265F0DE8FCCB002AD96B /* Headers */,
    1.61  				FD6526600DE8FCCB002AD96B /* Sources */,
    1.62 @@ -1240,7 +1262,7 @@
    1.63  			);
    1.64  			dependencies = (
    1.65  			);
    1.66 -			name = libSDL;
    1.67 +			name = "libSDL (iOS)";
    1.68  			productName = iPhoneSDLStaticLib;
    1.69  			productReference = FD6526630DE8FCCB002AD96B /* libSDL2.a */;
    1.70  			productType = "com.apple.product-type.library.static";
    1.71 @@ -1279,9 +1301,11 @@
    1.72  			projectDirPath = "";
    1.73  			projectRoot = ../..;
    1.74  			targets = (
    1.75 -				FD6526620DE8FCCB002AD96B /* libSDL */,
    1.76 -				FAB598131BB5C1B100BE72C5 /* libSDL-tv */,
    1.77 +				FD6526620DE8FCCB002AD96B /* libSDL (iOS) */,
    1.78 +				FAB598131BB5C1B100BE72C5 /* libSDL (tvOS) */,
    1.79  				00B4F48B12F6A69C0084EC00 /* PrepareXcodeProjectTemplate */,
    1.80 +				C143576D1F4C4DAA000B792B /* All (iOS) */,
    1.81 +				C14357721F4C4F2A000B792B /* All (tvOS) */,
    1.82  			);
    1.83  		};
    1.84  /* End PBXProject section */
    1.85 @@ -1301,6 +1325,36 @@
    1.86  			shellPath = /bin/sh;
    1.87  			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/$CONFIGURATION-Universal/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.88  		};
    1.89 +		C14357711F4C4DB2000B792B /* ShellScript */ = {
    1.90 +			isa = PBXShellScriptBuildPhase;
    1.91 +			buildActionMask = 2147483647;
    1.92 +			files = (
    1.93 +			);
    1.94 +			inputPaths = (
    1.95 +			);
    1.96 +			outputPaths = (
    1.97 +				"${TARGET_BUILD_DIR}/../ios/release/libSDL2.a",
    1.98 +				"${TARGET_BUILD_DIR}/../ios/debug/libSDL2.a",
    1.99 +			);
   1.100 +			runOnlyForDeploymentPostprocessing = 0;
   1.101 +			shellPath = /bin/sh;
   1.102 +			shellScript = "xcodebuild -target \"libSDL (iOS)\" ONLY_ACTIVE_ARCH=NO -configuration Release -sdk iphoneos  BUILD_DIR=\"${BUILD_DIR}\" BUILD_ROOT=\"${BUILD_ROOT}\" clean build\nxcodebuild -target \"libSDL (iOS)\" ONLY_ACTIVE_ARCH=NO -configuration Debug -sdk iphoneos  BUILD_DIR=\"${BUILD_DIR}\" BUILD_ROOT=\"${BUILD_ROOT}\" clean build\nxcodebuild -target \"libSDL (iOS)\" -configuration Release -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR=\"${BUILD_DIR}\" BUILD_ROOT=\"${BUILD_ROOT}\" clean build\nxcodebuild -target \"libSDL (iOS)\" -configuration Debug -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR=\"${BUILD_DIR}\" BUILD_ROOT=\"${BUILD_ROOT}\" clean build\n\n# make output folders\nmkdir -p ${TARGET_BUILD_DIR}/../ios/release\nmkdir -p ${TARGET_BUILD_DIR}/../ios/debug\n\n# combine lib files for various platforms into one\nlipo -create \"${TARGET_BUILD_DIR}/../Release-iphoneos/libSDL2.a\" \"${TARGET_BUILD_DIR}/../Release-iphonesimulator/libSDL2.a\" -output \"${TARGET_BUILD_DIR}/../ios/release/libSDL2.a\"\nlipo -create \"${TARGET_BUILD_DIR}/../Debug-iphoneos/libSDL2.a\" \"${TARGET_BUILD_DIR}/../Debug-iphonesimulator/libSDL2.a\" -output \"${TARGET_BUILD_DIR}/../ios/debug/libSDL2.a\"\n";
   1.103 +		};
   1.104 +		C14357731F4C4F2A000B792B /* ShellScript */ = {
   1.105 +			isa = PBXShellScriptBuildPhase;
   1.106 +			buildActionMask = 2147483647;
   1.107 +			files = (
   1.108 +			);
   1.109 +			inputPaths = (
   1.110 +			);
   1.111 +			outputPaths = (
   1.112 +				"${TARGET_BUILD_DIR}/../tvos/release/libSDL2.a",
   1.113 +				"${TARGET_BUILD_DIR}/../tvos/debug/libSDL2.a",
   1.114 +			);
   1.115 +			runOnlyForDeploymentPostprocessing = 0;
   1.116 +			shellPath = /bin/sh;
   1.117 +			shellScript = "xcodebuild -target \"libSDL (tvOS)\" ONLY_ACTIVE_ARCH=NO -configuration Release -sdk appletvos  BUILD_DIR=\"${BUILD_DIR}\" BUILD_ROOT=\"${BUILD_ROOT}\" clean build\nxcodebuild -target \"libSDL (tvOS)\" ONLY_ACTIVE_ARCH=NO -configuration Debug -sdk appletvos  BUILD_DIR=\"${BUILD_DIR}\" BUILD_ROOT=\"${BUILD_ROOT}\" clean build\nxcodebuild -target \"libSDL (tvOS)\" -configuration Release -sdk appletvsimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR=\"${BUILD_DIR}\" BUILD_ROOT=\"${BUILD_ROOT}\" clean build\nxcodebuild -target \"libSDL (tvOS)\" -configuration Debug -sdk appletvsimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR=\"${BUILD_DIR}\" BUILD_ROOT=\"${BUILD_ROOT}\" clean build\n\n# make output folders\nmkdir -p ${TARGET_BUILD_DIR}/../tvos/release\nmkdir -p ${TARGET_BUILD_DIR}/../tvos/debug\n\n# combine lib files for various platforms into one\nlipo -create \"${TARGET_BUILD_DIR}/../Release-appletvos/libSDL2.a\" \"${TARGET_BUILD_DIR}/../Release-appletvsimulator/libSDL2.a\" -output \"${TARGET_BUILD_DIR}/../tvos/release/libSDL2.a\"\nlipo -create \"${TARGET_BUILD_DIR}/../Debug-appletvos/libSDL2.a\" \"${TARGET_BUILD_DIR}/../Debug-appletvsimulator/libSDL2.a\" -output \"${TARGET_BUILD_DIR}/../tvos/debug/libSDL2.a\"\n";
   1.118 +		};
   1.119  /* End PBXShellScriptBuildPhase section */
   1.120  
   1.121  /* Begin PBXSourcesBuildPhase section */
   1.122 @@ -1612,6 +1666,36 @@
   1.123  			};
   1.124  			name = Release;
   1.125  		};
   1.126 +		C143576F1F4C4DAB000B792B /* Debug */ = {
   1.127 +			isa = XCBuildConfiguration;
   1.128 +			buildSettings = {
   1.129 +				PRODUCT_NAME = "$(TARGET_NAME)";
   1.130 +			};
   1.131 +			name = Debug;
   1.132 +		};
   1.133 +		C14357701F4C4DAB000B792B /* Release */ = {
   1.134 +			isa = XCBuildConfiguration;
   1.135 +			buildSettings = {
   1.136 +				PRODUCT_NAME = "$(TARGET_NAME)";
   1.137 +			};
   1.138 +			name = Release;
   1.139 +		};
   1.140 +		C14357751F4C4F2A000B792B /* Debug */ = {
   1.141 +			isa = XCBuildConfiguration;
   1.142 +			buildSettings = {
   1.143 +				ENABLE_BITCODE = YES;
   1.144 +				PRODUCT_NAME = "$(TARGET_NAME)";
   1.145 +			};
   1.146 +			name = Debug;
   1.147 +		};
   1.148 +		C14357761F4C4F2A000B792B /* Release */ = {
   1.149 +			isa = XCBuildConfiguration;
   1.150 +			buildSettings = {
   1.151 +				ENABLE_BITCODE = YES;
   1.152 +				PRODUCT_NAME = "$(TARGET_NAME)";
   1.153 +			};
   1.154 +			name = Release;
   1.155 +		};
   1.156  		FAB5981B1BB5C1B100BE72C5 /* Debug */ = {
   1.157  			isa = XCBuildConfiguration;
   1.158  			buildSettings = {
   1.159 @@ -1707,6 +1791,7 @@
   1.160  				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
   1.161  				CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES;
   1.162  				COPY_PHASE_STRIP = NO;
   1.163 +				ENABLE_BITCODE = NO;
   1.164  				GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = YES;
   1.165  				GCC_WARN_STRICT_SELECTOR_MATCH = YES;
   1.166  				GCC_WARN_UNDECLARED_SELECTOR = YES;
   1.167 @@ -1723,6 +1808,7 @@
   1.168  				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
   1.169  				CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES;
   1.170  				COPY_PHASE_STRIP = YES;
   1.171 +				ENABLE_BITCODE = NO;
   1.172  				GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = YES;
   1.173  				GCC_WARN_STRICT_SELECTOR_MATCH = YES;
   1.174  				GCC_WARN_UNDECLARED_SELECTOR = YES;
   1.175 @@ -1753,7 +1839,25 @@
   1.176  			defaultConfigurationIsVisible = 0;
   1.177  			defaultConfigurationName = Release;
   1.178  		};
   1.179 -		FAB5981A1BB5C1B100BE72C5 /* Build configuration list for PBXNativeTarget "libSDL-tv" */ = {
   1.180 +		C143576E1F4C4DAB000B792B /* Build configuration list for PBXAggregateTarget "All (iOS)" */ = {
   1.181 +			isa = XCConfigurationList;
   1.182 +			buildConfigurations = (
   1.183 +				C143576F1F4C4DAB000B792B /* Debug */,
   1.184 +				C14357701F4C4DAB000B792B /* Release */,
   1.185 +			);
   1.186 +			defaultConfigurationIsVisible = 0;
   1.187 +			defaultConfigurationName = Release;
   1.188 +		};
   1.189 +		C14357741F4C4F2A000B792B /* Build configuration list for PBXAggregateTarget "All (tvOS)" */ = {
   1.190 +			isa = XCConfigurationList;
   1.191 +			buildConfigurations = (
   1.192 +				C14357751F4C4F2A000B792B /* Debug */,
   1.193 +				C14357761F4C4F2A000B792B /* Release */,
   1.194 +			);
   1.195 +			defaultConfigurationIsVisible = 0;
   1.196 +			defaultConfigurationName = Release;
   1.197 +		};
   1.198 +		FAB5981A1BB5C1B100BE72C5 /* Build configuration list for PBXNativeTarget "libSDL (tvOS)" */ = {
   1.199  			isa = XCConfigurationList;
   1.200  			buildConfigurations = (
   1.201  				FAB5981B1BB5C1B100BE72C5 /* Debug */,
   1.202 @@ -1762,7 +1866,7 @@
   1.203  			defaultConfigurationIsVisible = 0;
   1.204  			defaultConfigurationName = Release;
   1.205  		};
   1.206 -		FD6526990DE8FD14002AD96B /* Build configuration list for PBXNativeTarget "libSDL" */ = {
   1.207 +		FD6526990DE8FD14002AD96B /* Build configuration list for PBXNativeTarget "libSDL (iOS)" */ = {
   1.208  			isa = XCConfigurationList;
   1.209  			buildConfigurations = (
   1.210  				FD6526640DE8FCCB002AD96B /* Debug */,