Renamed Xcode build targets so it's easier to copy files out of build directories on the command line
authorSam Lantinga <slouken@libsdl.org>
Tue, 12 Dec 2017 12:14:55 -0800
changeset 11765d489f9072467
parent 11764 9db3967460f1
child 11766 4b2b8bf6ef1e
Renamed Xcode build targets so it's easier to copy files out of build directories on the command line
Also enabled bitcode, which is needed for App Store builds
Xcode-iOS/SDL/SDL.xcodeproj/project.pbxproj
     1.1 --- a/Xcode-iOS/SDL/SDL.xcodeproj/project.pbxproj	Tue Dec 12 11:29:00 2017 -0800
     1.2 +++ b/Xcode-iOS/SDL/SDL.xcodeproj/project.pbxproj	Tue Dec 12 12:14:55 2017 -0800
     1.3 @@ -18,26 +18,26 @@
     1.4  			name = PrepareXcodeProjectTemplate;
     1.5  			productName = PrepareXcodeProjectTemplate;
     1.6  		};
     1.7 -		C143576D1F4C4DAA000B792B /* All (iOS) */ = {
     1.8 +		C143576D1F4C4DAA000B792B /* All-iOS */ = {
     1.9  			isa = PBXAggregateTarget;
    1.10 -			buildConfigurationList = C143576E1F4C4DAB000B792B /* Build configuration list for PBXAggregateTarget "All (iOS)" */;
    1.11 +			buildConfigurationList = C143576E1F4C4DAB000B792B /* Build configuration list for PBXAggregateTarget "All-iOS" */;
    1.12  			buildPhases = (
    1.13  				C14357711F4C4DB2000B792B /* ShellScript */,
    1.14  			);
    1.15  			dependencies = (
    1.16  			);
    1.17 -			name = "All (iOS)";
    1.18 +			name = "All-iOS";
    1.19  			productName = "All (iOS)";
    1.20  		};
    1.21 -		C14357721F4C4F2A000B792B /* All (tvOS) */ = {
    1.22 +		C14357721F4C4F2A000B792B /* All-tvOS */ = {
    1.23  			isa = PBXAggregateTarget;
    1.24 -			buildConfigurationList = C14357741F4C4F2A000B792B /* Build configuration list for PBXAggregateTarget "All (tvOS)" */;
    1.25 +			buildConfigurationList = C14357741F4C4F2A000B792B /* Build configuration list for PBXAggregateTarget "All-tvOS" */;
    1.26  			buildPhases = (
    1.27  				C14357731F4C4F2A000B792B /* ShellScript */,
    1.28  			);
    1.29  			dependencies = (
    1.30  			);
    1.31 -			name = "All (tvOS)";
    1.32 +			name = "All-tvOS";
    1.33  			productName = "All (iOS)";
    1.34  		};
    1.35  /* End PBXAggregateTarget section */
    1.36 @@ -1297,9 +1297,9 @@
    1.37  /* End PBXHeadersBuildPhase section */
    1.38  
    1.39  /* Begin PBXNativeTarget section */
    1.40 -		FAB598131BB5C1B100BE72C5 /* libSDL (tvOS) */ = {
    1.41 +		FAB598131BB5C1B100BE72C5 /* libSDL-tvOS */ = {
    1.42  			isa = PBXNativeTarget;
    1.43 -			buildConfigurationList = FAB5981A1BB5C1B100BE72C5 /* Build configuration list for PBXNativeTarget "libSDL (tvOS)" */;
    1.44 +			buildConfigurationList = FAB5981A1BB5C1B100BE72C5 /* Build configuration list for PBXNativeTarget "libSDL-tvOS" */;
    1.45  			buildPhases = (
    1.46  				FAB598101BB5C1B100BE72C5 /* Sources */,
    1.47  			);
    1.48 @@ -1307,14 +1307,14 @@
    1.49  			);
    1.50  			dependencies = (
    1.51  			);
    1.52 -			name = "libSDL (tvOS)";
    1.53 +			name = "libSDL-tvOS";
    1.54  			productName = "libSDL-tv";
    1.55  			productReference = FAB598141BB5C1B100BE72C5 /* libSDL2.a */;
    1.56  			productType = "com.apple.product-type.library.static";
    1.57  		};
    1.58 -		FD6526620DE8FCCB002AD96B /* libSDL (iOS) */ = {
    1.59 +		FD6526620DE8FCCB002AD96B /* libSDL-iOS */ = {
    1.60  			isa = PBXNativeTarget;
    1.61 -			buildConfigurationList = FD6526990DE8FD14002AD96B /* Build configuration list for PBXNativeTarget "libSDL (iOS)" */;
    1.62 +			buildConfigurationList = FD6526990DE8FD14002AD96B /* Build configuration list for PBXNativeTarget "libSDL-iOS" */;
    1.63  			buildPhases = (
    1.64  				FD65265F0DE8FCCB002AD96B /* Headers */,
    1.65  				FD6526600DE8FCCB002AD96B /* Sources */,
    1.66 @@ -1323,7 +1323,7 @@
    1.67  			);
    1.68  			dependencies = (
    1.69  			);
    1.70 -			name = "libSDL (iOS)";
    1.71 +			name = "libSDL-iOS";
    1.72  			productName = iPhoneSDLStaticLib;
    1.73  			productReference = FD6526630DE8FCCB002AD96B /* libSDL2.a */;
    1.74  			productType = "com.apple.product-type.library.static";
    1.75 @@ -1362,11 +1362,11 @@
    1.76  			projectDirPath = "";
    1.77  			projectRoot = ../..;
    1.78  			targets = (
    1.79 -				FD6526620DE8FCCB002AD96B /* libSDL (iOS) */,
    1.80 -				FAB598131BB5C1B100BE72C5 /* libSDL (tvOS) */,
    1.81 +				FD6526620DE8FCCB002AD96B /* libSDL-iOS */,
    1.82 +				FAB598131BB5C1B100BE72C5 /* libSDL-tvOS */,
    1.83  				00B4F48B12F6A69C0084EC00 /* PrepareXcodeProjectTemplate */,
    1.84 -				C143576D1F4C4DAA000B792B /* All (iOS) */,
    1.85 -				C14357721F4C4F2A000B792B /* All (tvOS) */,
    1.86 +				C143576D1F4C4DAA000B792B /* All-iOS */,
    1.87 +				C14357721F4C4F2A000B792B /* All-tvOS */,
    1.88  			);
    1.89  		};
    1.90  /* End PBXProject section */
    1.91 @@ -1399,7 +1399,7 @@
    1.92  			);
    1.93  			runOnlyForDeploymentPostprocessing = 0;
    1.94  			shellPath = /bin/sh;
    1.95 -			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.96 +			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.97  		};
    1.98  		C14357731F4C4F2A000B792B /* ShellScript */ = {
    1.99  			isa = PBXShellScriptBuildPhase;
   1.100 @@ -1414,7 +1414,7 @@
   1.101  			);
   1.102  			runOnlyForDeploymentPostprocessing = 0;
   1.103  			shellPath = /bin/sh;
   1.104 -			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.105 +			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.106  		};
   1.107  /* End PBXShellScriptBuildPhase section */
   1.108  
   1.109 @@ -1859,7 +1859,6 @@
   1.110  				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
   1.111  				CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES;
   1.112  				COPY_PHASE_STRIP = NO;
   1.113 -				ENABLE_BITCODE = NO;
   1.114  				GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = YES;
   1.115  				GCC_WARN_STRICT_SELECTOR_MATCH = YES;
   1.116  				GCC_WARN_UNDECLARED_SELECTOR = YES;
   1.117 @@ -1877,7 +1876,6 @@
   1.118  				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
   1.119  				CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES;
   1.120  				COPY_PHASE_STRIP = YES;
   1.121 -				ENABLE_BITCODE = NO;
   1.122  				GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = YES;
   1.123  				GCC_WARN_STRICT_SELECTOR_MATCH = YES;
   1.124  				GCC_WARN_UNDECLARED_SELECTOR = YES;
   1.125 @@ -1909,7 +1907,7 @@
   1.126  			defaultConfigurationIsVisible = 0;
   1.127  			defaultConfigurationName = Release;
   1.128  		};
   1.129 -		C143576E1F4C4DAB000B792B /* Build configuration list for PBXAggregateTarget "All (iOS)" */ = {
   1.130 +		C143576E1F4C4DAB000B792B /* Build configuration list for PBXAggregateTarget "All-iOS" */ = {
   1.131  			isa = XCConfigurationList;
   1.132  			buildConfigurations = (
   1.133  				C143576F1F4C4DAB000B792B /* Debug */,
   1.134 @@ -1918,7 +1916,7 @@
   1.135  			defaultConfigurationIsVisible = 0;
   1.136  			defaultConfigurationName = Release;
   1.137  		};
   1.138 -		C14357741F4C4F2A000B792B /* Build configuration list for PBXAggregateTarget "All (tvOS)" */ = {
   1.139 +		C14357741F4C4F2A000B792B /* Build configuration list for PBXAggregateTarget "All-tvOS" */ = {
   1.140  			isa = XCConfigurationList;
   1.141  			buildConfigurations = (
   1.142  				C14357751F4C4F2A000B792B /* Debug */,
   1.143 @@ -1927,7 +1925,7 @@
   1.144  			defaultConfigurationIsVisible = 0;
   1.145  			defaultConfigurationName = Release;
   1.146  		};
   1.147 -		FAB5981A1BB5C1B100BE72C5 /* Build configuration list for PBXNativeTarget "libSDL (tvOS)" */ = {
   1.148 +		FAB5981A1BB5C1B100BE72C5 /* Build configuration list for PBXNativeTarget "libSDL-tvOS" */ = {
   1.149  			isa = XCConfigurationList;
   1.150  			buildConfigurations = (
   1.151  				FAB5981B1BB5C1B100BE72C5 /* Debug */,
   1.152 @@ -1936,7 +1934,7 @@
   1.153  			defaultConfigurationIsVisible = 0;
   1.154  			defaultConfigurationName = Release;
   1.155  		};
   1.156 -		FD6526990DE8FD14002AD96B /* Build configuration list for PBXNativeTarget "libSDL (iOS)" */ = {
   1.157 +		FD6526990DE8FD14002AD96B /* Build configuration list for PBXNativeTarget "libSDL-iOS" */ = {
   1.158  			isa = XCConfigurationList;
   1.159  			buildConfigurations = (
   1.160  				FD6526640DE8FCCB002AD96B /* Debug */,