Skip to content

Commit

Permalink
Re-enable the Rainbow dep for windows.
Browse files Browse the repository at this point in the history
* This dependency appears to be supported on the Windows platform per the following revision:
  onevcat/Rainbow#40
  • Loading branch information
furby-tm committed Aug 5, 2024
1 parent 6fec1aa commit bbc23ea
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ let package = Package(
.product(name: "Apple", package: "MetaverseKit", condition: .when(platforms: Arch.OS.apple.platform)),
/* ---------- Console logging. ---------- */
.product(name: "Logging", package: "swift-log"),
.product(name: "Rainbow", package: "Rainbow", condition: .when(platforms: Arch.OS.nix.platform))
.product(name: "Rainbow", package: "Rainbow")
] + Arch.OS.dependency(.boost),
publicHeadersPath: "include",
cxxSettings: [
Expand Down Expand Up @@ -1308,7 +1308,7 @@ let package = Package(
.product(name: "Version", package: "Version"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Logging", package: "swift-log"),
.product(name: "Rainbow", package: "Rainbow", condition: .when(platforms: Arch.OS.nix.platform))
.product(name: "Rainbow", package: "Rainbow")
],
resources: [
// usd source files that need modifications to work with swift are maintained out of these
Expand Down
2 changes: 0 additions & 2 deletions Sources/OpenUSD/AsyncMain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
* ---------------------------------------------------------------- */

import Foundation
#if os(macOS) || os(visionOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux)
import Rainbow
#endif

@main
struct AsyncMain
Expand Down
2 changes: 0 additions & 2 deletions Sources/OpenUSD/Utility/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@

import Foundation
import Logging
#if os(macOS) || os(visionOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux)
import Rainbow
#endif

/// The standard error stream used for logging errors.
var standardError = FileHandle.standardError
Expand Down
2 changes: 0 additions & 2 deletions Sources/PixarUSD/Base/Arch/Logging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@

import Foundation
import Logging
#if os(macOS) || os(visionOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux)
import Rainbow
#endif

/* --- xxx --- */

Expand Down
2 changes: 0 additions & 2 deletions Sources/PixarUSD/Bundle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ import Arch
import CxxStdlib
import Foundation
import Plug
#if os(macOS) || os(visionOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux)
import Rainbow
#endif

#if os(Linux)
/**
Expand Down

0 comments on commit bbc23ea

Please # to comment.