-
Notifications
You must be signed in to change notification settings - Fork 5
/
Package.swift
42 lines (39 loc) · 1.31 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// swift-tools-version: 5.8
import PackageDescription
let package = Package(
name: "swift-webdriver",
products: [
.library(name: "WebDriver", targets: ["WebDriver"]),
],
targets: [
.target(
name: "WebDriver",
path: "Sources/WebDriver",
exclude: ["CMakeLists.txt"]),
.target(
name: "TestsCommon",
path: "Tests/Common"),
.testTarget(
name: "UnitTests",
dependencies: ["TestsCommon", "WebDriver"],
// Ignore "LNK4217: locally defined symbol imported" spew due to SPM library support limitations
linkerSettings: [ .unsafeFlags(["-Xlinker", "-ignore:4217"], .when(platforms: [.windows])) ]),
]
)
#if os(Windows)
package.products += [
.library(name: "WinAppDriver", targets: ["WinAppDriver"])
]
package.targets += [
.target(
name: "WinAppDriver",
dependencies: ["WebDriver"],
path: "Sources/WinAppDriver",
exclude: ["CMakeLists.txt"]),
.testTarget(
name: "WinAppDriverTests",
dependencies: ["TestsCommon", "WebDriver", "WinAppDriver"],
// Ignore "LNK4217: locally defined symbol imported" spew due to SPM library support limitations
linkerSettings: [ .unsafeFlags(["-Xlinker", "-ignore:4217"]) ]),
]
#endif