-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathPackage.swift
More file actions
28 lines (25 loc) · 826 Bytes
/
Package.swift
File metadata and controls
28 lines (25 loc) · 826 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
// swift-tools-version:5.1
import PackageDescription
var package = Package(
name: "NetService",
products: [
.library(name: "NetService", targets: ["NetService"]),
.executable(name: "dns-sd", targets: ["dns-sd"])
],
targets: [
.target(name: "NetService", dependencies: ["Cdns_sd"]),
.target(name: "dns-sd", dependencies: ["NetService"]),
.testTarget(name: "NetServiceTests", dependencies: ["NetService"]),
]
)
#if !os(Linux)
package.targets.append(
.systemLibrary(name: "Cdns_sd"))
#else
package.targets.append(
.systemLibrary(name: "Cdns_sd",
pkgConfig: "avahi-compat-libdns_sd",
providers: [
.apt(["libavahi-compat-libdnssd-dev"])
]))
#endif