Skip to content

Commit fe0b6b8

Browse files
committed
build: reflow some text for Package.swift
Reflow the text to be easier to read. This matches the rest of the project style.
1 parent 7597d46 commit fe0b6b8

File tree

1 file changed

+76
-77
lines changed

1 file changed

+76
-77
lines changed

Package.swift

+76-77
Original file line numberDiff line numberDiff line change
@@ -2,80 +2,79 @@
22

33
import PackageDescription
44

5-
let SwiftWin32 = Package(
6-
name: "SwiftWin32",
7-
products: [
8-
.library(name: "SwiftWin32", type: .dynamic, targets: ["SwiftWin32"]),
9-
.library(name: "SwiftWin32UI", type: .dynamic, targets: ["SwiftWin32UI"]),
10-
.executable(name: "UICatalog", targets: ["UICatalog"]),
11-
.executable(name: "Calculator", targets: ["Calculator"]),
12-
],
13-
dependencies: [
14-
.package(url: "https://github.com/apple/swift-log.git",
15-
.upToNextMajor(from: "1.4.3")),
16-
.package(url: "https://github.com/apple/swift-collections.git",
17-
.upToNextMinor(from: "1.0.0")),
18-
.package(url: "https://github.com/compnerd/cassowary.git", branch: "main"),
19-
.package(url: "https://github.com/compnerd/swift-com.git",
20-
revision: "ebbc617d3b7ba3a2023988a74bebd118deea4cc5"),
21-
],
22-
targets: [
23-
.target(
24-
name: "CoreAnimation",
25-
path: "Sources/SwiftWin32/CoreAnimation"
26-
),
27-
.target(
28-
name: "SwiftWin32",
29-
dependencies: [
30-
"CoreAnimation",
31-
.product(name: "Logging", package: "swift-log"),
32-
.product(name: "OrderedCollections", package: "swift-collections"),
33-
.product(name: "cassowary", package: "cassowary"),
34-
.product(name: "SwiftCOM", package: "swift-com"),
35-
],
36-
path: "Sources/SwiftWin32",
37-
exclude: ["CoreAnimation", "CMakeLists.txt"],
38-
linkerSettings: [
39-
.linkedLibrary("User32"),
40-
.linkedLibrary("ComCtl32"),
41-
]
42-
),
43-
.target(
44-
name: "SwiftWin32UI",
45-
dependencies: ["SwiftWin32"],
46-
path: "Sources/SwiftWin32UI",
47-
exclude: ["CMakeLists.txt"]
48-
),
49-
.executableTarget(
50-
name: "Calculator",
51-
dependencies: ["SwiftWin32"],
52-
path: "Examples/Calculator",
53-
exclude: [
54-
"CMakeLists.txt",
55-
"Calculator.exe.manifest",
56-
"Info.plist",
57-
],
58-
swiftSettings: [.unsafeFlags(["-parse-as-library"])]
59-
),
60-
.executableTarget(
61-
name: "UICatalog",
62-
dependencies: ["SwiftWin32"],
63-
path: "Examples/UICatalog",
64-
exclude: [
65-
"CMakeLists.txt",
66-
"Info.plist",
67-
"UICatalog.exe.manifest",
68-
],
69-
resources: [.copy("Assets/CoffeeCup.jpg")],
70-
swiftSettings: [.unsafeFlags(["-parse-as-library"])]
71-
),
72-
.target(name: "TestUtilities", path: "Tests/Utilities"),
73-
.testTarget(name: "AutoLayoutTests", dependencies: ["SwiftWin32"]),
74-
.testTarget(name: "CoreGraphicsTests", dependencies: ["SwiftWin32"]),
75-
.testTarget(name: "SupportTests", dependencies: ["SwiftWin32"]),
76-
.testTarget(
77-
name: "UICoreTests",
78-
dependencies: ["SwiftWin32", "TestUtilities"]
79-
)
80-
]
81-
)
5+
let SwiftWin32: Package =
6+
Package(name: "SwiftWin32",
7+
products: [
8+
.library(name: "SwiftWin32",
9+
type: .dynamic,
10+
targets: ["SwiftWin32"]),
11+
.library(name: "SwiftWin32UI",
12+
type: .dynamic,
13+
targets: ["SwiftWin32UI"]),
14+
.executable(name: "UICatalog", targets: ["UICatalog"]),
15+
.executable(name: "Calculator", targets: ["Calculator"]),
16+
],
17+
dependencies: [
18+
.package(url: "https://github.com/apple/swift-log.git",
19+
.upToNextMajor(from: "1.4.3")),
20+
.package(url: "https://github.com/apple/swift-collections.git",
21+
.upToNextMinor(from: "1.0.0")),
22+
.package(url: "https://github.com/compnerd/cassowary.git",
23+
branch: "main"),
24+
.package(url: "https://github.com/compnerd/swift-com.git",
25+
revision: "ebbc617d3b7ba3a2023988a74bebd118deea4cc5"),
26+
],
27+
targets: [
28+
.target(name: "CoreAnimation",
29+
path: "Sources/SwiftWin32/CoreAnimation"),
30+
.target(name: "SwiftWin32",
31+
dependencies: [
32+
"CoreAnimation",
33+
.product(name: "Logging", package: "swift-log"),
34+
.product(name: "OrderedCollections",
35+
package: "swift-collections"),
36+
.product(name: "cassowary", package: "cassowary"),
37+
.product(name: "SwiftCOM", package: "swift-com"),
38+
],
39+
path: "Sources/SwiftWin32",
40+
exclude: ["CoreAnimation", "CMakeLists.txt"],
41+
linkerSettings: [
42+
.linkedLibrary("User32"),
43+
.linkedLibrary("ComCtl32"),
44+
]),
45+
.target(name: "SwiftWin32UI",
46+
dependencies: ["SwiftWin32"],
47+
path: "Sources/SwiftWin32UI",
48+
exclude: ["CMakeLists.txt"]),
49+
.executableTarget(name: "Calculator",
50+
dependencies: ["SwiftWin32"],
51+
path: "Examples/Calculator",
52+
exclude: [
53+
"CMakeLists.txt",
54+
"Calculator.exe.manifest",
55+
"Info.plist",
56+
],
57+
swiftSettings: [
58+
.unsafeFlags(["-parse-as-library"])
59+
]),
60+
.executableTarget(name: "UICatalog",
61+
dependencies: ["SwiftWin32"],
62+
path: "Examples/UICatalog",
63+
exclude: [
64+
"CMakeLists.txt",
65+
"Info.plist",
66+
"UICatalog.exe.manifest",
67+
],
68+
resources: [
69+
.copy("Assets/CoffeeCup.jpg")
70+
],
71+
swiftSettings: [
72+
.unsafeFlags(["-parse-as-library"])
73+
]),
74+
.target(name: "TestUtilities", path: "Tests/Utilities"),
75+
.testTarget(name: "AutoLayoutTests", dependencies: ["SwiftWin32"]),
76+
.testTarget(name: "CoreGraphicsTests", dependencies: ["SwiftWin32"]),
77+
.testTarget(name: "SupportTests", dependencies: ["SwiftWin32"]),
78+
.testTarget(name: "UICoreTests",
79+
dependencies: ["SwiftWin32", "TestUtilities"])
80+
])

0 commit comments

Comments
 (0)