forked from appium/WebDriverAgent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
92 lines (88 loc) · 3.39 KB
/
Package.swift
File metadata and controls
92 lines (88 loc) · 3.39 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "WebDriverAgent",
defaultLocalization: "en",
platforms: [
.iOS(.v12)
],
products: [
// Expose the Obj-C library as a SwiftPM product so it can be imported from Swift.
.library(name: "WebDriverAgentLib", targets: ["WebDriverAgentLib"])
],
targets: [
// ---- Vendor: CocoaAsyncSocket ----
.target(
name: "CocoaAsyncSocket",
path: "WebDriverAgentLib/Vendor/CocoaAsyncSocket",
publicHeadersPath: "."
),
// ---- Vendor: CocoaHTTPServer ----
.target(
name: "CocoaHTTPServer",
dependencies: ["CocoaAsyncSocket"],
path: "WebDriverAgentLib/Vendor/CocoaHTTPServer",
publicHeadersPath: ".",
cSettings: [
.headerSearchPath("Categories"),
.headerSearchPath("Responses")
]
),
// ---- Vendor: RoutingHTTPServer ----
.target(
name: "RoutingHTTPServer",
dependencies: ["CocoaHTTPServer"],
path: "WebDriverAgentLib/Vendor/RoutingHTTPServer",
publicHeadersPath: ".",
cSettings: [
// Need CocoaHTTPServer headers in include path for quote-style imports
.headerSearchPath("../CocoaHTTPServer"),
.headerSearchPath("../CocoaHTTPServer/Responses"),
.headerSearchPath("../CocoaHTTPServer/Categories")
]
),
// ---- Main library ----
.target(
name: "WebDriverAgentLib",
dependencies: [
"RoutingHTTPServer"
],
path: "WebDriverAgentLib",
exclude: [
"Vendor" // compiled in dedicated targets above
],
publicHeadersPath: "include",
cSettings: [
.headerSearchPath(".."),
.headerSearchPath("include"),
.headerSearchPath("Routing"),
.headerSearchPath("Utilities"),
.headerSearchPath("Utilities/LRUCache"),
.headerSearchPath("Categories"),
.headerSearchPath("Commands"),
.headerSearchPath("include/WebDriverAgentLib"),
.headerSearchPath("QAWolf"),
.headerSearchPath("../PrivateHeaders/XCTest"),
.headerSearchPath("../PrivateHeaders/MobileCoreServices"),
.headerSearchPath("../PrivateHeaders/AccessibilityUtilities"),
.headerSearchPath("../PrivateHeaders/TextInput"),
.headerSearchPath("../PrivateHeaders/UIKitCore"),
],
linkerSettings: [
// Link against XCTest and system UIKit/Foundation frameworks that
// are referenced across the Objective-C implementation files.
.linkedFramework("XCTest"),
.linkedFramework("UIKit"),
.linkedFramework("Foundation"),
.linkedFramework("MobileCoreServices"),
.linkedFramework("UniformTypeIdentifiers")
]
),
// Unit-test target (optional – keeps parity with the original project).
.testTarget(
name: "WebDriverAgentLibTests",
dependencies: ["WebDriverAgentLib"],
path: "WebDriverAgentTests"
)
]
)