forked from robbiehanson/XMPPFramework
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
181 lines (180 loc) · 6.86 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "XMPPFramework",
defaultLocalization: "en",
platforms: [
.macOS(.v10_10),
.iOS(.v9),
.tvOS(.v9)
],
products: [
.library(
name: "XMPPFramework",
targets: ["XMPPFramework"]
),
.library(
name: "XMPPFrameworkSwift",
targets: ["XMPPFrameworkSwift"]
)
],
dependencies: [
.package(name: "CocoaLumberjack", url: "https://github.com/CocoaLumberjack/CocoaLumberjack.git", .upToNextMajor(from: "3.6.1")),
.package(name: "CocoaAsyncSocket", url: "https://github.com/robbiehanson/CocoaAsyncSocket.git", .upToNextMajor(from: "7.6.4")),
.package(name: "KissXML", url: "https://github.com/robbiehanson/KissXML.git", .upToNextMajor(from: "5.3.3")),
.package(name: "libidn", url: "https://github.com/chrisballinger/libidn-framework.git", .upToNextMajor(from: "1.35.1"))
],
targets: [
.target(
name: "XMPPFramework",
dependencies: [
"CocoaLumberjack",
"CocoaAsyncSocket",
"KissXML",
"libidn"
],
path: ".",
exclude: [
"Package.swift",
"Swift",
"Xcode",
"README.md",
"copying.txt",
"Cartfile.resolved",
"xmppframework.png",
"Cartfile",
"Core/Info.plist",
"XMPPFramework.podspec"
],
resources: [
.process("Extensions/Roster/CoreDataStorage/XMPPRoster.xcdatamodel"),
.process("Extensions/XEP-0045/CoreDataStorage/XMPPRoom.xcdatamodeld"),
.process("Extensions/XEP-0045/HybridStorage/XMPPRoomHybrid.xcdatamodeld"),
.process("Extensions/XEP-0054/CoreDataStorage/XMPPvCard.xcdatamodeld"),
.process("Extensions/XEP-0115/CoreDataStorage/XMPPCapabilities.xcdatamodel"),
.process("Extensions/XEP-0136/CoreDataStorage/XMPPMessageArchiving.xcdatamodeld"),
.process("Extensions/XMPPMUCLight/CoreDataStorage/XMPPRoomLight.xcdatamodel")
],
publicHeadersPath: "include/XMPPFramework",
linkerSettings: [
.linkedLibrary("xml2"),
.linkedLibrary("resolv")
]
),
.target(
name: "XMPPFrameworkSwift",
dependencies: [
"XMPPFramework",
.product(name: "CocoaLumberjackSwift", package: "CocoaLumberjack")
],
path: "Swift",
exclude: [
"XMPPFrameworkSwift-Info.plist",
"XMPPFrameworkSwift.h"
]
),
.target(
name: "XMPPFrameworkTestsShared",
dependencies: [
"XMPPFramework"
],
path: "Xcode/Testing-Shared",
exclude: [
"Info.plist",
"XMPPvCardTests.m",
"XMPPStanzaIdTests.swift",
"OMEMOServerTests.m",
"XMPPDelayedDeliveryTests.m",
"XMPPMessageDeliveryReceiptsTests.m",
"XMPPHTTPFileUploadTests.m",
"XMPPRoomLightTests.m",
"OMEMOModuleTests.m",
"XMPPPushTests.swift",
"EncodeDecodeTest.m",
"XMPPOutOfBandResourceMessagingTests.m",
"XMPPRoomLightCoreDataStorageTests.m",
"XMPPMessageArchiveManagementTests.m",
"CapabilitiesHashingTest.m",
"XMPPMUCLightTests.m",
"OMEMOElementTests.m",
"XMPPURITests.m",
"XMPPSwift.swift",
"XMPPBookmarksTests.swift",
"XMPPOneToOneChatTests.m",
"OMEMOTestStorage.m",
"XMPPManagedMessagingTests.m",
"XMPPStorageHintTests.m",
"XMPPPubSubTests.m"
],
sources: [
"XMPPMockStream.m"
],
publicHeadersPath: "."
),
.testTarget(
name: "XMPPFrameworkTests",
dependencies: [
"XMPPFramework",
"XMPPFrameworkTestsShared"
],
path: "Xcode/Testing-Shared",
exclude: [
"Info.plist",
"XMPPMockStream.m",
"XMPPBookmarksTests.swift",
"XMPPPushTests.swift",
"XMPPStanzaIdTests.swift",
"XMPPSwift.swift"
]
),
.testTarget(
name: "XMPPFrameworkSwiftTests",
dependencies: [
"XMPPFramework",
"XMPPFrameworkSwift",
"XMPPFrameworkTestsShared"
],
path: "Xcode",
exclude: [
"Gemfile",
"Gemfile.lock",
"Examples",
"Testing-Carthage",
"Testing-iOS",
"Testing-macOS",
"Testing-Shared/OMEMOTestStorage.m",
"Testing-Shared/Info.plist",
"Testing-Shared/XMPPManagedMessagingTests.m",
"Testing-Shared/XMPPMessageArchiveManagementTests.m",
"Testing-Shared/XMPPOutOfBandResourceMessagingTests.m",
"Testing-Shared/XMPPRoomLightCoreDataStorageTests.m",
"Testing-Shared/XMPPRoomLightTests.m",
"Testing-Shared/XMPPMessageDeliveryReceiptsTests.m",
"Testing-Shared/OMEMOServerTests.m",
"Testing-Shared/CapabilitiesHashingTest.m",
"Testing-Shared/XMPPOneToOneChatTests.m",
"Testing-Shared/XMPPDelayedDeliveryTests.m",
"Testing-Shared/XMPPMockStream.m",
"Testing-Shared/XMPPPubSubTests.m",
"Testing-Shared/XMPPHTTPFileUploadTests.m",
"Testing-Shared/XMPPvCardTests.m",
"Testing-Shared/OMEMOElementTests.m",
"Testing-Shared/OMEMOModuleTests.m",
"Testing-Shared/EncodeDecodeTest.m",
"Testing-Shared/XMPPStorageHintTests.m",
"Testing-Shared/XMPPURITests.m",
"Testing-Shared/XMPPMUCLightTests.m",
"Testing-Shared/XMPPFrameworkTests-Bridging-Header.h"
],
sources: [
"Testing-Shared/XMPPBookmarksTests.swift",
"Testing-Shared/XMPPPushTests.swift",
"Testing-Shared/XMPPStanzaIdTests.swift",
"Testing-Shared/XMPPSwift.swift",
"Testing-Swift/XMPPBookmarksModuleTests.swift",
"Testing-Swift/XMPPPresenceTests.swift",
"Testing-Swift/XMPPvCardTempTests.swift"
]
)
]
)