From 50636c8ca143fe2bc04959be5b06665396d7969d Mon Sep 17 00:00:00 2001 From: Denis Lebedev Date: Sat, 21 Jun 2014 13:29:31 +0300 Subject: [PATCH] Add iOS module and setup tests for it --- SWRoute.xcodeproj/project.pbxproj | 269 ++++++++++++++++++++++++++++++ SWRoute/SWRoute.h | 2 +- 2 files changed, 270 insertions(+), 1 deletion(-) diff --git a/SWRoute.xcodeproj/project.pbxproj b/SWRoute.xcodeproj/project.pbxproj index ee7624f..d1b8992 100644 --- a/SWRoute.xcodeproj/project.pbxproj +++ b/SWRoute.xcodeproj/project.pbxproj @@ -13,6 +13,9 @@ 0A940B3A194CEFB800831127 /* rd_route.c in Sources */ = {isa = PBXBuildFile; fileRef = 0A940B38194CEFB800831127 /* rd_route.c */; }; 0A940B3B194CEFB800831127 /* rd_route.h in Headers */ = {isa = PBXBuildFile; fileRef = 0A940B39194CEFB800831127 /* rd_route.h */; }; 0A940B3E194CEFE800831127 /* rd_get_func_impl.c in Sources */ = {isa = PBXBuildFile; fileRef = 0A940B3D194CEFE800831127 /* rd_get_func_impl.c */; }; + 2EFA0A9D195594EE000CB700 /* SWRoute-iOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 2EFA0A9C195594EE000CB700 /* SWRoute-iOS.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2EFA0AA3195594EE000CB700 /* SWRoute-iOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2EFA0A98195594EE000CB700 /* SWRoute-iOS.framework */; }; + 2EFA0AAA195594EE000CB700 /* SWRoute_iOSTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2EFA0AA9195594EE000CB700 /* SWRoute_iOSTests.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -30,6 +33,20 @@ remoteGlobalIDString = 0A940B17194CEF5E00831127; remoteInfo = SWRoute; }; + 2EFA0AA4195594EE000CB700 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0A940B0F194CEF5E00831127 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 2EFA0A97195594EE000CB700; + remoteInfo = "SWRoute-iOS"; + }; + 2EFA0AB1195594EF000CB700 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0A940B0F194CEF5E00831127 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 2EFA0A97195594EE000CB700; + remoteInfo = "SWRoute-iOS"; + }; /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ @@ -43,6 +60,12 @@ 0A940B38194CEFB800831127 /* rd_route.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = rd_route.c; path = rd_route/rd_route.c; sourceTree = SOURCE_ROOT; }; 0A940B39194CEFB800831127 /* rd_route.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = rd_route.h; path = rd_route/rd_route.h; sourceTree = SOURCE_ROOT; }; 0A940B3D194CEFE800831127 /* rd_get_func_impl.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = rd_get_func_impl.c; sourceTree = ""; }; + 2EFA0A98195594EE000CB700 /* SWRoute-iOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = "SWRoute-iOS.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; + 2EFA0A9B195594EE000CB700 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 2EFA0A9C195594EE000CB700 /* SWRoute-iOS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SWRoute-iOS.h"; sourceTree = ""; }; + 2EFA0AA2195594EE000CB700 /* SWRoute-iOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "SWRoute-iOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 2EFA0AA8195594EE000CB700 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 2EFA0AA9195594EE000CB700 /* SWRoute_iOSTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SWRoute_iOSTests.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -61,6 +84,21 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 2EFA0A94195594EE000CB700 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2EFA0A9F195594EE000CB700 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 2EFA0AA3195594EE000CB700 /* SWRoute-iOS.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ @@ -69,6 +107,8 @@ children = ( 0A940B1A194CEF5E00831127 /* SWRoute */, 0A940B27194CEF5E00831127 /* SWRouteTests */, + 2EFA0A99195594EE000CB700 /* SWRoute-iOS */, + 2EFA0AA6195594EE000CB700 /* SWRoute-iOSTests */, 0A940B19194CEF5E00831127 /* Products */, ); sourceTree = ""; @@ -78,6 +118,8 @@ children = ( 0A940B18194CEF5E00831127 /* SWRoute.framework */, 0A940B23194CEF5E00831127 /* SWRouteTests.xctest */, + 2EFA0A98195594EE000CB700 /* SWRoute-iOS.framework */, + 2EFA0AA2195594EE000CB700 /* SWRoute-iOSTests.xctest */, ); name = Products; sourceTree = ""; @@ -128,6 +170,40 @@ name = rd_route; sourceTree = ""; }; + 2EFA0A99195594EE000CB700 /* SWRoute-iOS */ = { + isa = PBXGroup; + children = ( + 2EFA0A9C195594EE000CB700 /* SWRoute-iOS.h */, + 2EFA0A9A195594EE000CB700 /* Supporting Files */, + ); + path = "SWRoute-iOS"; + sourceTree = ""; + }; + 2EFA0A9A195594EE000CB700 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 2EFA0A9B195594EE000CB700 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 2EFA0AA6195594EE000CB700 /* SWRoute-iOSTests */ = { + isa = PBXGroup; + children = ( + 2EFA0AA9195594EE000CB700 /* SWRoute_iOSTests.swift */, + 2EFA0AA7195594EE000CB700 /* Supporting Files */, + ); + path = "SWRoute-iOSTests"; + sourceTree = ""; + }; + 2EFA0AA7195594EE000CB700 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 2EFA0AA8195594EE000CB700 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ @@ -140,6 +216,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 2EFA0A95195594EE000CB700 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 2EFA0A9D195594EE000CB700 /* SWRoute-iOS.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ @@ -180,6 +264,43 @@ productReference = 0A940B23194CEF5E00831127 /* SWRouteTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; + 2EFA0A97195594EE000CB700 /* SWRoute-iOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2EFA0AAB195594EE000CB700 /* Build configuration list for PBXNativeTarget "SWRoute-iOS" */; + buildPhases = ( + 2EFA0A93195594EE000CB700 /* Sources */, + 2EFA0A94195594EE000CB700 /* Frameworks */, + 2EFA0A95195594EE000CB700 /* Headers */, + 2EFA0A96195594EE000CB700 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "SWRoute-iOS"; + productName = "SWRoute-iOS"; + productReference = 2EFA0A98195594EE000CB700 /* SWRoute-iOS.framework */; + productType = "com.apple.product-type.framework"; + }; + 2EFA0AA1195594EE000CB700 /* SWRoute-iOSTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2EFA0AAE195594EE000CB700 /* Build configuration list for PBXNativeTarget "SWRoute-iOSTests" */; + buildPhases = ( + 2EFA0A9E195594EE000CB700 /* Sources */, + 2EFA0A9F195594EE000CB700 /* Frameworks */, + 2EFA0AA0195594EE000CB700 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 2EFA0AA5195594EE000CB700 /* PBXTargetDependency */, + 2EFA0AB2195594EF000CB700 /* PBXTargetDependency */, + ); + name = "SWRoute-iOSTests"; + productName = "SWRoute-iOSTests"; + productReference = 2EFA0AA2195594EE000CB700 /* SWRoute-iOSTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -196,6 +317,13 @@ CreatedOnToolsVersion = 6.0; TestTargetID = 0A940B17194CEF5E00831127; }; + 2EFA0A97195594EE000CB700 = { + CreatedOnToolsVersion = 6.0; + }; + 2EFA0AA1195594EE000CB700 = { + CreatedOnToolsVersion = 6.0; + TestTargetID = 2EFA0A97195594EE000CB700; + }; }; }; buildConfigurationList = 0A940B12194CEF5E00831127 /* Build configuration list for PBXProject "SWRoute" */; @@ -212,6 +340,8 @@ targets = ( 0A940B17194CEF5E00831127 /* SWRoute */, 0A940B22194CEF5E00831127 /* SWRouteTests */, + 2EFA0A97195594EE000CB700 /* SWRoute-iOS */, + 2EFA0AA1195594EE000CB700 /* SWRoute-iOSTests */, ); }; /* End PBXProject section */ @@ -231,6 +361,20 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 2EFA0A96195594EE000CB700 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2EFA0AA0195594EE000CB700 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -251,6 +395,21 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 2EFA0A93195594EE000CB700 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2EFA0A9E195594EE000CB700 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2EFA0AAA195594EE000CB700 /* SWRoute_iOSTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ @@ -264,6 +423,16 @@ target = 0A940B17194CEF5E00831127 /* SWRoute */; targetProxy = 0A940B3F194CF17600831127 /* PBXContainerItemProxy */; }; + 2EFA0AA5195594EE000CB700 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 2EFA0A97195594EE000CB700 /* SWRoute-iOS */; + targetProxy = 2EFA0AA4195594EE000CB700 /* PBXContainerItemProxy */; + }; + 2EFA0AB2195594EF000CB700 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 2EFA0A97195594EE000CB700 /* SWRoute-iOS */; + targetProxy = 2EFA0AB1195594EF000CB700 /* PBXContainerItemProxy */; + }; /* End PBXTargetDependency section */ /* Begin XCBuildConfiguration section */ @@ -419,6 +588,88 @@ }; name = Release; }; + 2EFA0AAC195594EE000CB700 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "SWRoute-iOS/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + METAL_ENABLE_DEBUG_INFO = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 2EFA0AAD195594EE000CB700 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "SWRoute-iOS/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + METAL_ENABLE_DEBUG_INFO = NO; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 2EFA0AAF195594EE000CB700 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + ); + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "SWRoute-iOSTests/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + METAL_ENABLE_DEBUG_INFO = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 2EFA0AB0195594EE000CB700 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + ); + INFOPLIST_FILE = "SWRoute-iOSTests/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + METAL_ENABLE_DEBUG_INFO = NO; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -438,6 +689,7 @@ 0A940B30194CEF5E00831127 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; 0A940B31194CEF5E00831127 /* Build configuration list for PBXNativeTarget "SWRouteTests" */ = { isa = XCConfigurationList; @@ -446,6 +698,23 @@ 0A940B33194CEF5E00831127 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2EFA0AAB195594EE000CB700 /* Build configuration list for PBXNativeTarget "SWRoute-iOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2EFA0AAC195594EE000CB700 /* Debug */, + 2EFA0AAD195594EE000CB700 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + 2EFA0AAE195594EE000CB700 /* Build configuration list for PBXNativeTarget "SWRoute-iOSTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2EFA0AAF195594EE000CB700 /* Debug */, + 2EFA0AB0195594EE000CB700 /* Release */, + ); + defaultConfigurationIsVisible = 0; }; /* End XCConfigurationList section */ }; diff --git a/SWRoute/SWRoute.h b/SWRoute/SWRoute.h index 6c66dcd..af2f003 100644 --- a/SWRoute/SWRoute.h +++ b/SWRoute/SWRoute.h @@ -7,7 +7,7 @@ // terms of the Do What The Fuck You Want To Public License, Version 2, // as published by Sam Hocevar. See the COPYING file for more details. -#import +#import //! Project version number for SWRoute. FOUNDATION_EXPORT double SWRouteVersionNumber;