Skip to content

Commit

Permalink
Add target to build universal framework.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperblues committed May 8, 2012
1 parent 5adf36c commit 3dd7348
Showing 1 changed file with 100 additions and 0 deletions.
100 changes: 100 additions & 0 deletions RaptureXML.xcodeproj/project.pbxproj
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@
objectVersion = 46; objectVersion = 46;
objects = { objects = {


/* Begin PBXAggregateTarget section */
6BD1BD9D1558B7FA00F1D055 /* RaptureXMLFramework */ = {
isa = PBXAggregateTarget;
buildConfigurationList = 6BD1BD9E1558B7FA00F1D055 /* Build configuration list for PBXAggregateTarget "RaptureXMLFramework" */;
buildPhases = (
6BD1BDA61558B82400F1D055 /* Build static lib */,
6BD1BDA71558B85A00F1D055 /* Assemble Framework */,
6BD1BDA81558B90300F1D055 /* Copy Headers */,
);
dependencies = (
);
name = RaptureXMLFramework;
productName = RaptureXMLKit;
};
/* End PBXAggregateTarget section */

/* Begin PBXBuildFile section */ /* Begin PBXBuildFile section */
02041DB81526A71200D1F36A /* libxml2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 02041DB71526A71200D1F36A /* libxml2.dylib */; }; 02041DB81526A71200D1F36A /* libxml2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 02041DB71526A71200D1F36A /* libxml2.dylib */; };
02041DBA1526B0DE00D1F36A /* libxml2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 02041DB71526A71200D1F36A /* libxml2.dylib */; }; 02041DBA1526B0DE00D1F36A /* libxml2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 02041DB71526A71200D1F36A /* libxml2.dylib */; };
Expand All @@ -27,8 +43,23 @@
0DEB8EB51467EC9B00024989 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0252B2C5142ADFC60018B75D /* Foundation.framework */; }; 0DEB8EB51467EC9B00024989 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0252B2C5142ADFC60018B75D /* Foundation.framework */; };
0DEB8ECD1467ED9C00024989 /* BoundaryTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 0DEB8EC61467ED9C00024989 /* BoundaryTests.m */; }; 0DEB8ECD1467ED9C00024989 /* BoundaryTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 0DEB8EC61467ED9C00024989 /* BoundaryTests.m */; };
0DEB8F2C14681A9400024989 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 0252B305142AE3FF0018B75D /* libz.dylib */; }; 0DEB8F2C14681A9400024989 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 0252B305142AE3FF0018B75D /* libz.dylib */; };
6BD1BDA91558B91400F1D055 /* RXMLElement.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 027DAC2E14FBF443001BA563 /* RXMLElement.h */; };
/* End PBXBuildFile section */ /* End PBXBuildFile section */


/* Begin PBXCopyFilesBuildPhase section */
6BD1BDA81558B90300F1D055 /* Copy Headers */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "${BUILD_DIR}/${CONFIGURATION}-iphoneuniversal/${PRODUCT_NAME}.framework/Versions/A/Headers/";
dstSubfolderSpec = 0;
files = (
6BD1BDA91558B91400F1D055 /* RXMLElement.h in Copy Headers */,
);
name = "Copy Headers";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
02041DB71526A71200D1F36A /* libxml2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxml2.dylib; path = usr/lib/libxml2.dylib; sourceTree = SDKROOT; }; 02041DB71526A71200D1F36A /* libxml2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxml2.dylib; path = usr/lib/libxml2.dylib; sourceTree = SDKROOT; };
02041DC21526D03A00D1F36A /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; }; 02041DC21526D03A00D1F36A /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; };
Expand All @@ -53,6 +84,7 @@
0DEB8ECC1467ED9C00024989 /* WildcardTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = WildcardTests.m; path = Tests/WildcardTests.m; sourceTree = SOURCE_ROOT; }; 0DEB8ECC1467ED9C00024989 /* WildcardTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = WildcardTests.m; path = Tests/WildcardTests.m; sourceTree = SOURCE_ROOT; };
0DEB8F2B14681A0800024989 /* Tests-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "Tests-Prefix.pch"; path = "Tests/Tests-Prefix.pch"; sourceTree = SOURCE_ROOT; }; 0DEB8F2B14681A0800024989 /* Tests-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "Tests-Prefix.pch"; path = "Tests/Tests-Prefix.pch"; sourceTree = SOURCE_ROOT; };
0DEB8F2D14681BD800024989 /* players.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; name = players.xml; path = Tests/players.xml; sourceTree = SOURCE_ROOT; }; 0DEB8F2D14681BD800024989 /* players.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; name = players.xml; path = Tests/players.xml; sourceTree = SOURCE_ROOT; };
6BD1BD951558B7A800F1D055 /* RaptureXML-StaticLib-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RaptureXML-StaticLib-Prefix.pch"; sourceTree = "<group>"; };
/* End PBXFileReference section */ /* End PBXFileReference section */


/* Begin PBXFrameworksBuildPhase section */ /* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -87,6 +119,7 @@
027DAC3814FBF4B5001BA563 /* Library-Prefix.pch */, 027DAC3814FBF4B5001BA563 /* Library-Prefix.pch */,
027DAC2B14FBF443001BA563 /* RaptureXML */, 027DAC2B14FBF443001BA563 /* RaptureXML */,
0252B2E5142ADFC60018B75D /* Tests */, 0252B2E5142ADFC60018B75D /* Tests */,
6BD1BD931558B7A800F1D055 /* RaptureXML-StaticLib */,
0252B2C2142ADFC60018B75D /* Frameworks */, 0252B2C2142ADFC60018B75D /* Frameworks */,
0252B2C0142ADFC60018B75D /* Products */, 0252B2C0142ADFC60018B75D /* Products */,
); );
Expand Down Expand Up @@ -143,6 +176,22 @@
path = RaptureXML; path = RaptureXML;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
6BD1BD931558B7A800F1D055 /* RaptureXML-StaticLib */ = {
isa = PBXGroup;
children = (
6BD1BD941558B7A800F1D055 /* Supporting Files */,
);
path = "RaptureXML-StaticLib";
sourceTree = "<group>";
};
6BD1BD941558B7A800F1D055 /* Supporting Files */ = {
isa = PBXGroup;
children = (
6BD1BD951558B7A800F1D055 /* RaptureXML-StaticLib-Prefix.pch */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
/* End PBXGroup section */ /* End PBXGroup section */


/* Begin PBXHeadersBuildPhase section */ /* Begin PBXHeadersBuildPhase section */
Expand Down Expand Up @@ -221,6 +270,7 @@
targets = ( targets = (
0DEB8EB31467EC9B00024989 /* RaptureXML */, 0DEB8EB31467EC9B00024989 /* RaptureXML */,
0252B2DC142ADFC60018B75D /* RaptureXMLTests */, 0252B2DC142ADFC60018B75D /* RaptureXMLTests */,
6BD1BD9D1558B7FA00F1D055 /* RaptureXMLFramework */,
); );
}; };
/* End PBXProject section */ /* End PBXProject section */
Expand Down Expand Up @@ -250,6 +300,34 @@
shellPath = /bin/sh; shellPath = /bin/sh;
shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n"; shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n";
}; };
6BD1BDA61558B82400F1D055 /* Build static lib */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Build static lib";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/usr/bin/xcodebuild -project ${PROJECT_NAME}.xcodeproj -sdk iphonesimulator -target ${PROJECT_NAME} -configuration ${CONFIGURATION} clean build\n/usr/bin/xcodebuild -project ${PROJECT_NAME}.xcodeproj -sdk iphoneos -target ${PROJECT_NAME} -configuration ${CONFIGURATION} clean build\n";
};
6BD1BDA71558B85A00F1D055 /* Assemble Framework */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Assemble Framework";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin\nSIMULATOR_LIBRARY_PATH=\"${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/lib${PROJECT_NAME}.a\" &&\nDEVICE_LIBRARY_PATH=\"${BUILD_DIR}/${CONFIGURATION}-iphoneos/lib${PROJECT_NAME}.a\" &&\nUNIVERSAL_LIBRARY_DIR=\"${BUILD_DIR}/${CONFIGURATION}-iphoneuniversal\" &&\nUNIVERSAL_LIBRARY_PATH=\"${UNIVERSAL_LIBRARY_DIR}/${PRODUCT_NAME}\" &&\nFRAMEWORK=\"${UNIVERSAL_LIBRARY_DIR}/${PRODUCT_NAME}.framework\" &&\n\n# Create framework directory structure.\nrm -rf \"${FRAMEWORK}\" &&\nmkdir -p \"${UNIVERSAL_LIBRARY_DIR}\" &&\nmkdir -p \"${FRAMEWORK}/Versions/A/Headers\" &&\nmkdir -p \"${FRAMEWORK}/Versions/A/Resources\" &&\n\n# Generate universal binary from desktop, device, and simulator builds.\nlipo \"${SIMULATOR_LIBRARY_PATH}\" \"${DEVICE_LIBRARY_PATH}\" -create -output \"${UNIVERSAL_LIBRARY_PATH}\" &&\n\n# Move files to appropriate locations in framework paths.\ncp \"${UNIVERSAL_LIBRARY_PATH}\" \"${FRAMEWORK}/Versions/A\" &&\nln -s \"A\" \"${FRAMEWORK}/Versions/Current\" &&\nln -s \"Versions/Current/Headers\" \"${FRAMEWORK}/Headers\" &&\nln -s \"Versions/Current/Resources\" \"${FRAMEWORK}/Resources\" &&\nln -s \"Versions/Current/${PRODUCT_NAME}\" \"${FRAMEWORK}/${PRODUCT_NAME}\"\n#cp \"${SRCROOT}/Resources/Info.plist\" \"${FRAMEWORK}/Resources/Info.plist\"";
};
/* End PBXShellScriptBuildPhase section */ /* End PBXShellScriptBuildPhase section */


/* Begin PBXSourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */
Expand Down Expand Up @@ -420,6 +498,20 @@
}; };
name = Release; name = Release;
}; };
6BD1BD9F1558B7FA00F1D055 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
PRODUCT_NAME = RaptureXML;
};
name = Debug;
};
6BD1BDA01558B7FA00F1D055 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
PRODUCT_NAME = RaptureXML;
};
name = Release;
};
/* End XCBuildConfiguration section */ /* End XCBuildConfiguration section */


/* Begin XCConfigurationList section */ /* Begin XCConfigurationList section */
Expand Down Expand Up @@ -450,6 +542,14 @@
defaultConfigurationIsVisible = 0; defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release; defaultConfigurationName = Release;
}; };
6BD1BD9E1558B7FA00F1D055 /* Build configuration list for PBXAggregateTarget "RaptureXMLFramework" */ = {
isa = XCConfigurationList;
buildConfigurations = (
6BD1BD9F1558B7FA00F1D055 /* Debug */,
6BD1BDA01558B7FA00F1D055 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */ /* End XCConfigurationList section */
}; };
rootObject = 0252B2B6142ADFC60018B75D /* Project object */; rootObject = 0252B2B6142ADFC60018B75D /* Project object */;
Expand Down

0 comments on commit 3dd7348

Please sign in to comment.