From 9d60a26622655ecb5b550edd01be4cc57f5794fc Mon Sep 17 00:00:00 2001 From: iska Date: Sun, 29 Nov 2015 18:44:43 +0100 Subject: [PATCH] Organize public headers and build phases for iOS --- HTMLKit.xcodeproj/project.pbxproj | 8 ++++---- HTMLKit/HTMLKit.h | 8 ++++++++ HTMLKit/HTMLKitDOMExceptions.h | 6 +++--- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/HTMLKit.xcodeproj/project.pbxproj b/HTMLKit.xcodeproj/project.pbxproj index 1acfe48..c796657 100644 --- a/HTMLKit.xcodeproj/project.pbxproj +++ b/HTMLKit.xcodeproj/project.pbxproj @@ -28,7 +28,6 @@ 625A14B019C7829400AD0C32 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 625A14AF19C7829400AD0C32 /* Cocoa.framework */; }; 625A14BA19C7829400AD0C32 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 625A14B819C7829400AD0C32 /* InfoPlist.strings */; }; 625A14C519C7829400AD0C32 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 625A14C419C7829400AD0C32 /* XCTest.framework */; }; - 625A14C619C7829400AD0C32 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 625A14AF19C7829400AD0C32 /* Cocoa.framework */; }; 625A14C919C7829400AD0C32 /* HTMLKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 625A14AC19C7829400AD0C32 /* HTMLKit.framework */; }; 625A14CF19C7829400AD0C32 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 625A14CD19C7829400AD0C32 /* InfoPlist.strings */; }; 628AF6301BC99A6C00496128 /* CSSNthExpressionsParserTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 628AF62E1BC99A6C00496128 /* CSSNthExpressionsParserTests.m */; }; @@ -436,7 +435,6 @@ buildActionMask = 2147483647; files = ( 625A14C919C7829400AD0C32 /* HTMLKit.framework in Frameworks */, - 625A14C619C7829400AD0C32 /* Cocoa.framework in Frameworks */, 625A14C519C7829400AD0C32 /* XCTest.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -1412,6 +1410,7 @@ DYLIB_INSTALL_NAME_BASE = "@rpath"; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_NO_COMMON_BLOCKS = YES; + GCC_PREFIX_HEADER = "HTMLKit/HTMLKit-Prefix.pch"; INFOPLIST_FILE = "HTMLKit/HTMLKit-Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 9.1; @@ -1440,6 +1439,7 @@ DYLIB_INSTALL_NAME_BASE = "@rpath"; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_NO_COMMON_BLOCKS = YES; + GCC_PREFIX_HEADER = "HTMLKit/HTMLKit-Prefix.pch"; INFOPLIST_FILE = "HTMLKit/HTMLKit-Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 9.1; @@ -1464,7 +1464,7 @@ DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_NO_COMMON_BLOCKS = YES; - INFOPLIST_FILE = "HTMLKit-iOSTests/Info.plist"; + INFOPLIST_FILE = "HTMLKitTests/HTMLKitTests-Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 9.1; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MTL_ENABLE_DEBUG_INFO = YES; @@ -1482,7 +1482,7 @@ COPY_PHASE_STRIP = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_NO_COMMON_BLOCKS = YES; - INFOPLIST_FILE = "HTMLKit-iOSTests/Info.plist"; + INFOPLIST_FILE = "HTMLKitTests/HTMLKitTests-Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 9.1; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MTL_ENABLE_DEBUG_INFO = NO; diff --git a/HTMLKit/HTMLKit.h b/HTMLKit/HTMLKit.h index adeae97..03e31b8 100644 --- a/HTMLKit/HTMLKit.h +++ b/HTMLKit/HTMLKit.h @@ -6,6 +6,14 @@ // Copyright (c) 2014 BrainCookie. All rights reserved. // +#import + +//! Project version number for HTMLKit. +extern double HTMLKitVersionNumber; + +//! Project version string for HTMLKit. +extern const unsigned char HTMLKitVersionString[]; + #import "HTMLDOM.h" #import "HTMLParser.h" #import "HTMLKitErrorDomain.h" diff --git a/HTMLKit/HTMLKitDOMExceptions.h b/HTMLKit/HTMLKitDOMExceptions.h index 4520eb0..b8486b4 100644 --- a/HTMLKit/HTMLKitDOMExceptions.h +++ b/HTMLKit/HTMLKitDOMExceptions.h @@ -6,6 +6,6 @@ // Copyright (c) 2015 BrainCookie. All rights reserved. // -FOUNDATION_EXPORT NSString * const HTMLKitHierarchyRequestError; -FOUNDATION_EXPORT NSString * const HTMLKitNotFoundError; -FOUNDATION_EXPORT NSString * const HTMLKitNotSupportedError; +extern NSString * const HTMLKitHierarchyRequestError; +extern NSString * const HTMLKitNotFoundError; +extern NSString * const HTMLKitNotSupportedError;