-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
46 lines (44 loc) · 2.03 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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "PylonCam",
platforms: [.macOS(.v11)],
dependencies: [
.package(name: "Qlift", url: "https://github.com/DimaRU/qlift", .branch("master")),
.package(url: "https://github.com/ianpartridge/swift-log-syslog", from: "1.0.0"),
.package(url: "https://github.com/swift-server/swift-backtrace", from: "1.0.0"),
.package(url: "https://git.dev-og.com/d.borovikov/PylonFrameGrabber.git", .branch("master")),
.package(name: "Socket", url: "https://github.com/DimaRU/BlueSocket.git", .branch("master")),
],
targets: [
.target(
name: "PylonCam",
dependencies: [
"Qlift",
"PylonFrameGrabber",
"FocusMeasure",
"DMXConnect",
.product(name: "Backtrace", package: "swift-backtrace", condition: .when(platforms: [.linux])),
.product(name: "LoggingSyslog", package: "swift-log-syslog")
],
linkerSettings: [
.linkedLibrary("rt", .when(platforms: [.linux])),
.linkedFramework("QtWidgets", .when(platforms: [.macOS])),
.linkedFramework("QtCore", .when(platforms: [.macOS])),
.linkedFramework("QtGui", .when(platforms: [.macOS])),
.linkedFramework("pylon", .when(platforms: [.macOS])),
.unsafeFlags(["-Xlinker", "-rpath", "/Library/Frameworks"], .when(platforms: [.macOS])),
.unsafeFlags([
"-Xlinker", "-rpath=/opt/pylon/lib",
"-Xlinker", "-rpath=/opt/qt5.15/lib",
], .when(platforms: [.linux])),
]
),
.target(name: "DMXWrapper"),
.target(name: "DMXConnect", dependencies: ["DMXWrapper", "Socket"]),
.target(name: "FocusMeasure", dependencies: ["COpencv4"]),
.systemLibrary(name: "COpencv4", pkgConfig: "opencv4"),
],
cLanguageStandard: .c99,
cxxLanguageStandard: .cxx1z
)