From 2e8d5b5d5a7433a14a1b46ed1367fc7b49105b9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?furby=E2=84=A2?= Date: Fri, 1 Nov 2024 23:15:03 -0600 Subject: [PATCH] windows: add unicode support for pegtl. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: furby™ --- Package.resolved | 11 ++++++++++- Package.swift | 4 +++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Package.resolved b/Package.resolved index d213e7ea4..6ea715526 100644 --- a/Package.resolved +++ b/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "f4e8f15f64f4bae409a33132730b93e0edc7eb1353af28b9c1b8b488b3936c10", + "originHash" : "6e3e50a0855063f6b72de8ec03edca91c02e96570b715103296cfac4203713b2", "pins" : [ { "identity" : "galah", @@ -10,6 +10,15 @@ "version" : "1.0.1" } }, + { + "identity" : "icu", + "kind" : "remoteSourceControl", + "location" : "https://github.com/wabiverse/icu.git", + "state" : { + "revision" : "156397c5079b709c9e871d27794284dc4905a794", + "version" : "76.1.0" + } + }, { "identity" : "metaversekit", "kind" : "remoteSourceControl", diff --git a/Package.swift b/Package.swift index 84af06d4f..127254da0 100644 --- a/Package.swift +++ b/Package.swift @@ -287,6 +287,7 @@ let package = Package( dependencies: [ // prepare for SwiftCrossUI, for a cross-platform UsdView. // .package(url: "https://github.com/stackotter/swift-cross-ui", revision: "5c5d8c8"), + .package(url: "https://github.com/wabiverse/icu.git", from: "76.1.0"), .package(url: "https://github.com/wabiverse/MetaverseKit", from: "1.8.5"), .package(url: "https://github.com/apple/swift-log.git", from: "1.5.3"), .package(url: "https://github.com/apple/swift-syntax.git", from: "510.0.3"), @@ -477,7 +478,8 @@ let package = Package( .target( name: "Pegtl", dependencies: [ - .target(name: "Arch") + .target(name: "Arch"), + .product(name: "icuin", package: "icu", condition: .when(platforms: [.windows])), ], cxxSettings: [ .headerSearchPath("include/Pegtl"),