Skip to content

Commit

Permalink
build: reflow some text for Package.swift
Browse files Browse the repository at this point in the history
Reflow the text to be easier to read. This matches the rest of the
project style.
  • Loading branch information
compnerd committed Nov 19, 2023
1 parent 7597d46 commit fe0b6b8
Showing 1 changed file with 76 additions and 77 deletions.
153 changes: 76 additions & 77 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,80 +2,79 @@

import PackageDescription

let SwiftWin32 = Package(
name: "SwiftWin32",
products: [
.library(name: "SwiftWin32", type: .dynamic, targets: ["SwiftWin32"]),
.library(name: "SwiftWin32UI", type: .dynamic, targets: ["SwiftWin32UI"]),
.executable(name: "UICatalog", targets: ["UICatalog"]),
.executable(name: "Calculator", targets: ["Calculator"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-log.git",
.upToNextMajor(from: "1.4.3")),
.package(url: "https://github.com/apple/swift-collections.git",
.upToNextMinor(from: "1.0.0")),
.package(url: "https://github.com/compnerd/cassowary.git", branch: "main"),
.package(url: "https://github.com/compnerd/swift-com.git",
revision: "ebbc617d3b7ba3a2023988a74bebd118deea4cc5"),
],
targets: [
.target(
name: "CoreAnimation",
path: "Sources/SwiftWin32/CoreAnimation"
),
.target(
name: "SwiftWin32",
dependencies: [
"CoreAnimation",
.product(name: "Logging", package: "swift-log"),
.product(name: "OrderedCollections", package: "swift-collections"),
.product(name: "cassowary", package: "cassowary"),
.product(name: "SwiftCOM", package: "swift-com"),
],
path: "Sources/SwiftWin32",
exclude: ["CoreAnimation", "CMakeLists.txt"],
linkerSettings: [
.linkedLibrary("User32"),
.linkedLibrary("ComCtl32"),
]
),
.target(
name: "SwiftWin32UI",
dependencies: ["SwiftWin32"],
path: "Sources/SwiftWin32UI",
exclude: ["CMakeLists.txt"]
),
.executableTarget(
name: "Calculator",
dependencies: ["SwiftWin32"],
path: "Examples/Calculator",
exclude: [
"CMakeLists.txt",
"Calculator.exe.manifest",
"Info.plist",
],
swiftSettings: [.unsafeFlags(["-parse-as-library"])]
),
.executableTarget(
name: "UICatalog",
dependencies: ["SwiftWin32"],
path: "Examples/UICatalog",
exclude: [
"CMakeLists.txt",
"Info.plist",
"UICatalog.exe.manifest",
],
resources: [.copy("Assets/CoffeeCup.jpg")],
swiftSettings: [.unsafeFlags(["-parse-as-library"])]
),
.target(name: "TestUtilities", path: "Tests/Utilities"),
.testTarget(name: "AutoLayoutTests", dependencies: ["SwiftWin32"]),
.testTarget(name: "CoreGraphicsTests", dependencies: ["SwiftWin32"]),
.testTarget(name: "SupportTests", dependencies: ["SwiftWin32"]),
.testTarget(
name: "UICoreTests",
dependencies: ["SwiftWin32", "TestUtilities"]
)
]
)
let SwiftWin32: Package =
Package(name: "SwiftWin32",
products: [
.library(name: "SwiftWin32",
type: .dynamic,
targets: ["SwiftWin32"]),
.library(name: "SwiftWin32UI",
type: .dynamic,
targets: ["SwiftWin32UI"]),
.executable(name: "UICatalog", targets: ["UICatalog"]),
.executable(name: "Calculator", targets: ["Calculator"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-log.git",
.upToNextMajor(from: "1.4.3")),
.package(url: "https://github.com/apple/swift-collections.git",
.upToNextMinor(from: "1.0.0")),
.package(url: "https://github.com/compnerd/cassowary.git",
branch: "main"),
.package(url: "https://github.com/compnerd/swift-com.git",
revision: "ebbc617d3b7ba3a2023988a74bebd118deea4cc5"),
],
targets: [
.target(name: "CoreAnimation",
path: "Sources/SwiftWin32/CoreAnimation"),
.target(name: "SwiftWin32",
dependencies: [
"CoreAnimation",
.product(name: "Logging", package: "swift-log"),
.product(name: "OrderedCollections",
package: "swift-collections"),
.product(name: "cassowary", package: "cassowary"),
.product(name: "SwiftCOM", package: "swift-com"),
],
path: "Sources/SwiftWin32",
exclude: ["CoreAnimation", "CMakeLists.txt"],
linkerSettings: [
.linkedLibrary("User32"),
.linkedLibrary("ComCtl32"),
]),
.target(name: "SwiftWin32UI",
dependencies: ["SwiftWin32"],
path: "Sources/SwiftWin32UI",
exclude: ["CMakeLists.txt"]),
.executableTarget(name: "Calculator",
dependencies: ["SwiftWin32"],
path: "Examples/Calculator",
exclude: [
"CMakeLists.txt",
"Calculator.exe.manifest",
"Info.plist",
],
swiftSettings: [
.unsafeFlags(["-parse-as-library"])
]),
.executableTarget(name: "UICatalog",
dependencies: ["SwiftWin32"],
path: "Examples/UICatalog",
exclude: [
"CMakeLists.txt",
"Info.plist",
"UICatalog.exe.manifest",
],
resources: [
.copy("Assets/CoffeeCup.jpg")
],
swiftSettings: [
.unsafeFlags(["-parse-as-library"])
]),
.target(name: "TestUtilities", path: "Tests/Utilities"),
.testTarget(name: "AutoLayoutTests", dependencies: ["SwiftWin32"]),
.testTarget(name: "CoreGraphicsTests", dependencies: ["SwiftWin32"]),
.testTarget(name: "SupportTests", dependencies: ["SwiftWin32"]),
.testTarget(name: "UICoreTests",
dependencies: ["SwiftWin32", "TestUtilities"])
])

0 comments on commit fe0b6b8

Please sign in to comment.