From b220b7d561fd363e41c92c27fcfed355a8bf9d93 Mon Sep 17 00:00:00 2001 From: iska Date: Mon, 15 Sep 2014 22:32:32 +0200 Subject: [PATCH] Add static library target for iOS build --- HTMLKit.xcodeproj/project.pbxproj | 255 +++++++++++++++++++++++++++--- HTMLKit/HTMLKit-Prefix.pch | 2 +- 2 files changed, 237 insertions(+), 20 deletions(-) diff --git a/HTMLKit.xcodeproj/project.pbxproj b/HTMLKit.xcodeproj/project.pbxproj index 1ef3077..de26adc 100644 --- a/HTMLKit.xcodeproj/project.pbxproj +++ b/HTMLKit.xcodeproj/project.pbxproj @@ -15,6 +15,14 @@ 625A14C919C7829400AD0C32 /* HTMLKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 625A14AC19C7829400AD0C32 /* HTMLKit.framework */; }; 625A14CF19C7829400AD0C32 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 625A14CD19C7829400AD0C32 /* InfoPlist.strings */; }; 625A14D119C7829400AD0C32 /* HTMLKitTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 625A14D019C7829400AD0C32 /* HTMLKitTests.m */; }; + 625A14E019C7834100AD0C32 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 625A14DF19C7834100AD0C32 /* Foundation.framework */; }; + 625A14ED19C7834100AD0C32 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 625A14C419C7829400AD0C32 /* XCTest.framework */; }; + 625A14EE19C7834100AD0C32 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 625A14DF19C7834100AD0C32 /* Foundation.framework */; }; + 625A14F319C7834100AD0C32 /* libHTMLKit.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 625A14DE19C7834000AD0C32 /* libHTMLKit.a */; }; + 625A150219C783DE00AD0C32 /* HTMLKit.m in Sources */ = {isa = PBXBuildFile; fileRef = 625A14BD19C7829400AD0C32 /* HTMLKit.m */; }; + 625A150319C783E200AD0C32 /* HTMLKit.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 625A14BC19C7829400AD0C32 /* HTMLKit.h */; }; + 625A150419C783EB00AD0C32 /* HTMLKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 625A14BC19C7829400AD0C32 /* HTMLKit.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 625A150519C783FD00AD0C32 /* HTMLKitTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 625A14D019C7829400AD0C32 /* HTMLKitTests.m */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -25,8 +33,28 @@ remoteGlobalIDString = 625A14AB19C7829400AD0C32; remoteInfo = HTMLKit; }; + 625A14F119C7834100AD0C32 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 625A14A319C7829400AD0C32 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 625A14DD19C7834000AD0C32; + remoteInfo = HTMLKit; + }; /* End PBXContainerItemProxy section */ +/* Begin PBXCopyFilesBuildPhase section */ + 625A14DC19C7834000AD0C32 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = "include/$(PRODUCT_NAME)"; + dstSubfolderSpec = 16; + files = ( + 625A150319C783E200AD0C32 /* HTMLKit.h in CopyFiles */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + /* Begin PBXFileReference section */ 625A14AC19C7829400AD0C32 /* HTMLKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = HTMLKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 625A14AF19C7829400AD0C32 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; @@ -38,11 +66,14 @@ 625A14BB19C7829400AD0C32 /* HTMLKit-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "HTMLKit-Prefix.pch"; sourceTree = ""; }; 625A14BC19C7829400AD0C32 /* HTMLKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HTMLKit.h; sourceTree = ""; }; 625A14BD19C7829400AD0C32 /* HTMLKit.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HTMLKit.m; sourceTree = ""; }; - 625A14C319C7829400AD0C32 /* HTMLKitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HTMLKitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 625A14C319C7829400AD0C32 /* HTMLKitFrameworkTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HTMLKitFrameworkTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 625A14C419C7829400AD0C32 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 625A14CC19C7829400AD0C32 /* HTMLKitTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "HTMLKitTests-Info.plist"; sourceTree = ""; }; 625A14CE19C7829400AD0C32 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 625A14D019C7829400AD0C32 /* HTMLKitTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HTMLKitTests.m; sourceTree = ""; }; + 625A14DE19C7834000AD0C32 /* libHTMLKit.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libHTMLKit.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 625A14DF19C7834100AD0C32 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 625A14EC19C7834100AD0C32 /* HTMLKitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HTMLKitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -64,14 +95,32 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 625A14DB19C7834000AD0C32 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 625A14E019C7834100AD0C32 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 625A14E919C7834100AD0C32 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 625A14ED19C7834100AD0C32 /* XCTest.framework in Frameworks */, + 625A14EE19C7834100AD0C32 /* Foundation.framework in Frameworks */, + 625A14F319C7834100AD0C32 /* libHTMLKit.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ 625A14A219C7829400AD0C32 = { isa = PBXGroup; children = ( - 625A14B519C7829400AD0C32 /* HTMLKit */, - 625A14CA19C7829400AD0C32 /* HTMLKitTests */, + 625A14B519C7829400AD0C32 /* Source Code */, + 625A14CA19C7829400AD0C32 /* Tests */, 625A14AE19C7829400AD0C32 /* Frameworks */, 625A14AD19C7829400AD0C32 /* Products */, ); @@ -81,7 +130,9 @@ isa = PBXGroup; children = ( 625A14AC19C7829400AD0C32 /* HTMLKit.framework */, - 625A14C319C7829400AD0C32 /* HTMLKitTests.xctest */, + 625A14C319C7829400AD0C32 /* HTMLKitFrameworkTests.xctest */, + 625A14DE19C7834000AD0C32 /* libHTMLKit.a */, + 625A14EC19C7834100AD0C32 /* HTMLKitTests.xctest */, ); name = Products; sourceTree = ""; @@ -91,6 +142,7 @@ children = ( 625A14AF19C7829400AD0C32 /* Cocoa.framework */, 625A14C419C7829400AD0C32 /* XCTest.framework */, + 625A14DF19C7834100AD0C32 /* Foundation.framework */, 625A14B119C7829400AD0C32 /* Other Frameworks */, ); name = Frameworks; @@ -106,13 +158,14 @@ name = "Other Frameworks"; sourceTree = ""; }; - 625A14B519C7829400AD0C32 /* HTMLKit */ = { + 625A14B519C7829400AD0C32 /* Source Code */ = { isa = PBXGroup; children = ( 625A14BC19C7829400AD0C32 /* HTMLKit.h */, 625A14BD19C7829400AD0C32 /* HTMLKit.m */, 625A14B619C7829400AD0C32 /* Supporting Files */, ); + name = "Source Code"; path = HTMLKit; sourceTree = ""; }; @@ -126,12 +179,13 @@ name = "Supporting Files"; sourceTree = ""; }; - 625A14CA19C7829400AD0C32 /* HTMLKitTests */ = { + 625A14CA19C7829400AD0C32 /* Tests */ = { isa = PBXGroup; children = ( 625A14D019C7829400AD0C32 /* HTMLKitTests.m */, 625A14CB19C7829400AD0C32 /* Supporting Files */, ); + name = Tests; path = HTMLKitTests; sourceTree = ""; }; @@ -151,15 +205,16 @@ isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( + 625A150419C783EB00AD0C32 /* HTMLKit.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ - 625A14AB19C7829400AD0C32 /* HTMLKit */ = { + 625A14AB19C7829400AD0C32 /* HTMLKitFramework */ = { isa = PBXNativeTarget; - buildConfigurationList = 625A14D419C7829400AD0C32 /* Build configuration list for PBXNativeTarget "HTMLKit" */; + buildConfigurationList = 625A14D419C7829400AD0C32 /* Build configuration list for PBXNativeTarget "HTMLKitFramework" */; buildPhases = ( 625A14A719C7829400AD0C32 /* Sources */, 625A14A819C7829400AD0C32 /* Frameworks */, @@ -170,14 +225,14 @@ ); dependencies = ( ); - name = HTMLKit; + name = HTMLKitFramework; productName = HTMLKit; productReference = 625A14AC19C7829400AD0C32 /* HTMLKit.framework */; productType = "com.apple.product-type.framework"; }; - 625A14C219C7829400AD0C32 /* HTMLKitTests */ = { + 625A14C219C7829400AD0C32 /* HTMLKitFrameworkTests */ = { isa = PBXNativeTarget; - buildConfigurationList = 625A14D719C7829400AD0C32 /* Build configuration list for PBXNativeTarget "HTMLKitTests" */; + buildConfigurationList = 625A14D719C7829400AD0C32 /* Build configuration list for PBXNativeTarget "HTMLKitFrameworkTests" */; buildPhases = ( 625A14BF19C7829400AD0C32 /* Sources */, 625A14C019C7829400AD0C32 /* Frameworks */, @@ -188,9 +243,44 @@ dependencies = ( 625A14C819C7829400AD0C32 /* PBXTargetDependency */, ); + name = HTMLKitFrameworkTests; + productName = HTMLKitTests; + productReference = 625A14C319C7829400AD0C32 /* HTMLKitFrameworkTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 625A14DD19C7834000AD0C32 /* HTMLKit */ = { + isa = PBXNativeTarget; + buildConfigurationList = 625A14FC19C7834100AD0C32 /* Build configuration list for PBXNativeTarget "HTMLKit" */; + buildPhases = ( + 625A14DA19C7834000AD0C32 /* Sources */, + 625A14DB19C7834000AD0C32 /* Frameworks */, + 625A14DC19C7834000AD0C32 /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = HTMLKit; + productName = HTMLKit; + productReference = 625A14DE19C7834000AD0C32 /* libHTMLKit.a */; + productType = "com.apple.product-type.library.static"; + }; + 625A14EB19C7834100AD0C32 /* HTMLKitTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 625A14FF19C7834100AD0C32 /* Build configuration list for PBXNativeTarget "HTMLKitTests" */; + buildPhases = ( + 625A14E819C7834100AD0C32 /* Sources */, + 625A14E919C7834100AD0C32 /* Frameworks */, + 625A14EA19C7834100AD0C32 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 625A14F219C7834100AD0C32 /* PBXTargetDependency */, + ); name = HTMLKitTests; productName = HTMLKitTests; - productReference = 625A14C319C7829400AD0C32 /* HTMLKitTests.xctest */; + productReference = 625A14EC19C7834100AD0C32 /* HTMLKitTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; /* End PBXNativeTarget section */ @@ -205,6 +295,9 @@ 625A14C219C7829400AD0C32 = { TestTargetID = 625A14AB19C7829400AD0C32; }; + 625A14EB19C7834100AD0C32 = { + TestTargetID = 625A14AB19C7829400AD0C32; + }; }; }; buildConfigurationList = 625A14A619C7829400AD0C32 /* Build configuration list for PBXProject "HTMLKit" */; @@ -219,8 +312,10 @@ projectDirPath = ""; projectRoot = ""; targets = ( - 625A14AB19C7829400AD0C32 /* HTMLKit */, - 625A14C219C7829400AD0C32 /* HTMLKitTests */, + 625A14DD19C7834000AD0C32 /* HTMLKit */, + 625A14AB19C7829400AD0C32 /* HTMLKitFramework */, + 625A14EB19C7834100AD0C32 /* HTMLKitTests */, + 625A14C219C7829400AD0C32 /* HTMLKitFrameworkTests */, ); }; /* End PBXProject section */ @@ -242,6 +337,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 625A14EA19C7834100AD0C32 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -261,14 +363,35 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 625A14DA19C7834000AD0C32 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 625A150219C783DE00AD0C32 /* HTMLKit.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 625A14E819C7834100AD0C32 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 625A150519C783FD00AD0C32 /* HTMLKitTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ 625A14C819C7829400AD0C32 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = 625A14AB19C7829400AD0C32 /* HTMLKit */; + target = 625A14AB19C7829400AD0C32 /* HTMLKitFramework */; targetProxy = 625A14C719C7829400AD0C32 /* PBXContainerItemProxy */; }; + 625A14F219C7834100AD0C32 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 625A14DD19C7834000AD0C32 /* HTMLKit */; + targetProxy = 625A14F119C7834100AD0C32 /* PBXContainerItemProxy */; + }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ @@ -371,7 +494,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "HTMLKit/HTMLKit-Prefix.pch"; INFOPLIST_FILE = "HTMLKit/HTMLKit-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; + PRODUCT_NAME = HTMLKit; WRAPPER_EXTENSION = framework; }; name = Debug; @@ -386,7 +509,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "HTMLKit/HTMLKit-Prefix.pch"; INFOPLIST_FILE = "HTMLKit/HTMLKit-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; + PRODUCT_NAME = HTMLKit; WRAPPER_EXTENSION = framework; }; name = Release; @@ -431,6 +554,84 @@ }; name = Release; }; + 625A14FD19C7834100AD0C32 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + DSTROOT = /tmp/HTMLKit.dst; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "HTMLKit/HTMLKit-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + IPHONEOS_DEPLOYMENT_TARGET = 7.1; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = HTMLKit; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + 625A14FE19C7834100AD0C32 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + DSTROOT = /tmp/HTMLKit.dst; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "HTMLKit/HTMLKit-Prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 7.1; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = HTMLKit; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 625A150019C7834100AD0C32 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/HTMLKit.framework/Versions/A/HTMLKit"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "HTMLKit/HTMLKit-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "HTMLKitTests/HTMLKitTests-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 7.1; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Debug; + }; + 625A150119C7834100AD0C32 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/HTMLKit.framework/Versions/A/HTMLKit"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "HTMLKit/HTMLKit-Prefix.pch"; + INFOPLIST_FILE = "HTMLKitTests/HTMLKitTests-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 7.1; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + TEST_HOST = "$(BUNDLE_LOADER)"; + VALIDATE_PRODUCT = YES; + WRAPPER_EXTENSION = xctest; + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -443,7 +644,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 625A14D419C7829400AD0C32 /* Build configuration list for PBXNativeTarget "HTMLKit" */ = { + 625A14D419C7829400AD0C32 /* Build configuration list for PBXNativeTarget "HTMLKitFramework" */ = { isa = XCConfigurationList; buildConfigurations = ( 625A14D519C7829400AD0C32 /* Debug */, @@ -451,7 +652,7 @@ ); defaultConfigurationIsVisible = 0; }; - 625A14D719C7829400AD0C32 /* Build configuration list for PBXNativeTarget "HTMLKitTests" */ = { + 625A14D719C7829400AD0C32 /* Build configuration list for PBXNativeTarget "HTMLKitFrameworkTests" */ = { isa = XCConfigurationList; buildConfigurations = ( 625A14D819C7829400AD0C32 /* Debug */, @@ -459,6 +660,22 @@ ); defaultConfigurationIsVisible = 0; }; + 625A14FC19C7834100AD0C32 /* Build configuration list for PBXNativeTarget "HTMLKit" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 625A14FD19C7834100AD0C32 /* Debug */, + 625A14FE19C7834100AD0C32 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + 625A14FF19C7834100AD0C32 /* Build configuration list for PBXNativeTarget "HTMLKitTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 625A150019C7834100AD0C32 /* Debug */, + 625A150119C7834100AD0C32 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; /* End XCConfigurationList section */ }; rootObject = 625A14A319C7829400AD0C32 /* Project object */; diff --git a/HTMLKit/HTMLKit-Prefix.pch b/HTMLKit/HTMLKit-Prefix.pch index 926a42b..37fdbe6 100644 --- a/HTMLKit/HTMLKit-Prefix.pch +++ b/HTMLKit/HTMLKit-Prefix.pch @@ -5,5 +5,5 @@ // #ifdef __OBJC__ - #import + #import #endif