Cocoa Port:

- Update all info .plist files to v0.9.9 for future SVN builds.
- Update translation scripts to use absolute file paths from $SRCROOT instead of assuming that the path is relative to $SRCROOT.
- Add a new build script that creates an application package that merges the ppc and ppc64 binaries from an Xcode 3 universal binary build to the i386 and x86_64 binaries from an Xcode 4 Intel-only build. Basically, this makes a build that combines the best of both builds. This means that everyone can now easily make a build that is more like an official release build.
This commit is contained in:
rogerman 2012-04-18 03:21:29 +00:00
parent a775c75a69
commit 1af87a2a68
7 changed files with 110 additions and 13 deletions

View File

@ -1663,6 +1663,7 @@
8D1107290486CEB800E47090 /* Resources */,
8D11072C0486CEB800E47090 /* Sources */,
8D11072E0486CEB800E47090 /* Frameworks */,
AB067BF0153E59B000F417B1 /* ShellScript */,
);
buildRules = (
);
@ -2012,6 +2013,19 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
AB067BF0153E59B000F417B1 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "#!/bin/sh\n\n# This script creates an application package that merges the ppc and ppc64\n# binaries of an Xcode 3 universal build to the i386 and x86_64 binaries of\n# an Xcode 4 (or later) Intel-only build.\n#\n# Before you use this script, make sure that you already have an existing\n# universal binary Release build from Xcode 3 in the ${SRCROOT}/build/Release\n# directory.\n\nif test -e ${SRCROOT}/build/Release/${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME}\nthen\n\n# Create the Merged Release directory, plus a working copy of the\n# universal binary .app.\ncd ${SRCROOT}/build\nmkdir -p \"./Merged Release\"\ncd \"./Merged Release\"\ncp -a ../Release/${PRODUCT_NAME}.app ./\nrm -f ./${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME}\n\n# Create the temp binaries for PowerPC.\ncd ${SRCROOT}/build/Release\nlipo ./${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME} -thin ppc7400 -output ./${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME}_ppc7400\nlipo ./${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME} -thin ppc64 -output ./${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME}_ppc64\n\n# Create the temp binaries for Intel.\ncd ${TARGET_BUILD_DIR}\nlipo ./${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME} -thin i386 -output ./${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME}_i386\nlipo ./${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME} -thin x86_64 -output ./${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME}_x86_64\n\n# Merge the separate temp binaries into a single binary package.\ncd \"${SRCROOT}/build/Merged Release\"\nlipo ../Release/${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME}_ppc7400 ../Release/${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME}_ppc64 ${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME}_i386 ${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME}_x86_64 -create -output ./${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME}\n\n# Remove the temp binaries now that we're done with them.\nrm -f ${SRCROOT}/build/Release/${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME}_ppc7400\nrm -f ${SRCROOT}/build/Release/${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME}_ppc64\nrm -f ${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME}_i386\nrm -f ${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/Contents/MacOS/${EXECUTABLE_NAME}_x86_64\n\nfi";
};
AB75221714C79884009B97B3 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@ -2025,7 +2039,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "cd \"./translations\"\nibtool --generate-strings-file \"./English.lproj/MainMenu.strings\" \"./English.lproj/MainMenu.xib\"";
shellScript = "cd ${SRCROOT}/translations\nibtool --generate-strings-file \"./English.lproj/MainMenu.strings\" \"./English.lproj/MainMenu.xib\"";
};
AB75222C14C799C1009B97B3 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
@ -2040,7 +2054,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "cd \"./translations\"\nibtool --generate-strings-file \"./English.lproj/MainMenu.strings\" \"./English.lproj/MainMenu.xib\"";
shellScript = "cd ${SRCROOT}/translations\nibtool --generate-strings-file \"./English.lproj/MainMenu.strings\" \"./English.lproj/MainMenu.xib\"";
};
ABB7154014E386740027FE88 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
@ -2055,7 +2069,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "cd \"./translations\"\nibtool --generate-strings-file \"./English.lproj/MainMenu.strings\" \"./English.lproj/MainMenu.xib\"";
shellScript = "cd ${SRCROOT}/translations\nibtool --generate-strings-file \"./English.lproj/MainMenu.strings\" \"./English.lproj/MainMenu.xib\"";
};
/* End PBXShellScriptBuildPhase section */

View File

@ -47,6 +47,27 @@
<string>${OPENEMU}</string>
</dict>
</dict>
<key>0.9.9</key>
<dict>
<key>Cocoa</key>
<dict>
<key>ROM Save</key>
<string>${APPSUPPORT}</string>
<key>Cheat</key>
<string>${APPSUPPORT}</string>
<key>Firmware Configuration</key>
<string>${APPSUPPORT}</string>
<key>Save State</key>
<string>${APPSUPPORT}</string>
</dict>
<key>OpenEmu</key>
<dict>
<key>ROM Save</key>
<string>${OPENEMU}</string>
<key>Save State</key>
<string>${OPENEMU}</string>
</dict>
</dict>
</dict>
<key>DirectoryNames</key>
<dict>
@ -128,6 +149,32 @@
<string>SoundSamples</string>
</dict>
</dict>
<key>0.9.9</key>
<dict>
<key>Cocoa</key>
<dict>
<key>ROM Save</key>
<string>Battery</string>
<key>Cheat</key>
<string>Cheats</string>
<key>Firmware Configuration</key>
<string>Battery</string>
<key>Lua Script</key>
<string>Lua</string>
<key>Video</key>
<string>AviFiles</string>
<key>R4 Format</key>
<string>R4format</string>
<key>ROM</key>
<string>Roms</string>
<key>Save State</key>
<string>States</string>
<key>Screenshot</key>
<string>Screenshots</string>
<key>Sound Sample</key>
<string>SoundSamples</string>
</dict>
</dict>
</dict>
<key>FileExtensionByTypes</key>
<dict>
@ -185,6 +232,24 @@
<string>nds</string>
</dict>
</dict>
<key>0.9.9</key>
<dict>
<key>Cocoa</key>
<dict>
<key>ROM Save</key>
<string>dsv</string>
<key>Cheat</key>
<string>dct</string>
<key>Firmware Configuration</key>
<string>dfc</string>
<key>Lua Script</key>
<string>lua</string>
<key>Save State</key>
<string>dst</string>
<key>ROM</key>
<string>nds</string>
</dict>
</dict>
</dict>
<key>FileTypeByExtensions</key>
<dict>
@ -242,6 +307,24 @@
<string>ROM</string>
</dict>
</dict>
<key>0.9.9</key>
<dict>
<key>Cocoa</key>
<dict>
<key>dsv</key>
<string>ROM Save</string>
<key>dct</key>
<string>Cheat</string>
<key>dfc</key>
<string>Firmware Configuration</string>
<key>lua</key>
<string>Lua Script</string>
<key>dst</key>
<string>Save State</string>
<key>nds</key>
<string>ROM</string>
</dict>
</dict>
</dict>
</dict>
</plist>

View File

@ -240,11 +240,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>v0.9.8 (Debug)</string>
<string>v0.9.9 (Debug)</string>
<key>CFBundleSignature</key>
<string>DSmM</string>
<key>CFBundleVersion</key>
<string>0.9.8</string>
<string>0.9.9</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.entertainment</string>
<key>LSMinimumSystemVersion</key>

View File

@ -240,11 +240,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>v0.9.8 (Debug)</string>
<string>v0.9.9 (Debug)</string>
<key>CFBundleSignature</key>
<string>DSmM</string>
<key>CFBundleVersion</key>
<string>0.9.8</string>
<string>0.9.9</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.entertainment</string>
<key>LSMinimumSystemVersion</key>

View File

@ -240,11 +240,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>v0.9.8</string>
<string>v0.9.9</string>
<key>CFBundleSignature</key>
<string>DSmM</string>
<key>CFBundleVersion</key>
<string>0.9.8</string>
<string>0.9.9</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.entertainment</string>
<key>LSMinimumSystemVersion</key>

View File

@ -240,11 +240,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>v0.9.8</string>
<string>v0.9.9</string>
<key>CFBundleSignature</key>
<string>DSmM</string>
<key>CFBundleVersion</key>
<string>0.9.8</string>
<string>0.9.9</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.entertainment</string>
<key>LSMinimumSystemVersion</key>

View File

@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>v0.9.8 (OpenEmu Plug-in)</string>
<string>v0.9.9 (OpenEmu Plug-in)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>0.9.8</string>
<string>0.9.9</string>
<key>CSResourcesFileMapped</key>
<string>yes</string>
<key>NSHumanReadableCopyright</key>