From 55452e6032c90bd3692583003355fd4c803eebe5 Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 23 Jan 2024 13:48:05 +0800 Subject: [PATCH] Add boost binary support for iOS and macOS --- Package.resolved | 9 +++++++++ Package.swift | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Package.resolved b/Package.resolved index 7d3980f1..31644e4b 100644 --- a/Package.resolved +++ b/Package.resolved @@ -1,5 +1,14 @@ { "pins" : [ + { + "identity" : "iosboostframework", + "kind" : "remoteSourceControl", + "location" : "https://github.com/Cogosense/iOSBoostFramework", + "state" : { + "revision" : "20702879518cc0a5d543754d3a8fd25da109daa5", + "version" : "1.81.2" + } + }, { "identity" : "openfoundation", "kind" : "remoteSourceControl", diff --git a/Package.swift b/Package.swift index dc0290f5..40323469 100644 --- a/Package.swift +++ b/Package.swift @@ -38,6 +38,7 @@ let package = Package( ], dependencies: [ .package(url: "https://github.com/OpenSwiftUIProject/OpenFoundation", from: "0.0.1"), + .package(url: "https://github.com/Cogosense/iOSBoostFramework", from: "1.81.2"), ], targets: [ // FIXME: Merge into one target @@ -45,7 +46,10 @@ let package = Package( // The SwiftPM support for such usage is still in progress. .target( name: "_OpenGraph", - dependencies: [.product(name: "OpenFoundation", package: "OpenFoundation")], + dependencies: [ + .product(name: "OpenFoundation", package: "OpenFoundation"), + .product(name: "boost", package: "iOSBoostFramework", condition: .when(platforms: [.macOS, .iOS])), + ], cSettings: [clangEnumFixSetting] ), .target(