-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPackage.swift
More file actions
44 lines (41 loc) · 773 Bytes
/
Package.swift
File metadata and controls
44 lines (41 loc) · 773 Bytes
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
// swift-tools-version: 5.5
import PackageDescription
let package = Package(
name: "ICMPPing",
platforms: [
.macOS(.v11),
.iOS(.v14),
.watchOS(.v6),
.tvOS(.v12),
],
products: [
.library(
name: "ICMPPing",
targets: ["ICMPPing"]
),
],
dependencies: [],
targets: [
.target(
name: "ICMPLib",
cxxSettings: [
.define("_CRT_NONSTDC_NO_WARNINGS", .when(platforms: [.windows])),
]
),
.target(
name: "ICMPPing",
dependencies: ["ICMPLib"]
),
.testTarget(
name: "ICMPPingTests",
dependencies: ["ICMPPing"]
),
],
cLanguageStandard: .c99,
cxxLanguageStandard: .cxx14
)
#if swift(>=5.6) && !os(Windows)
package.dependencies.append(
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")
)
#endif