-
Notifications
You must be signed in to change notification settings - Fork 5
/
Package.swift
58 lines (56 loc) · 2.01 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
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "CocoaSpice",
platforms: [
.iOS(.v11), .macOS(.v10_14)
],
products: [
.library(
name: "CocoaSpice",
targets: ["CocoaSpice"]),
.library(
name: "CocoaSpiceNoUsb",
targets: ["CocoaSpiceNoUsb"]),
],
targets: [
.target(
name: "CocoaSpiceRenderer",
dependencies: [],
resources: [
.process("CSShaders.metal")]),
.target(
name: "CocoaSpice",
dependencies: ["CocoaSpiceRenderer"],
exclude: ["ExternalHeaders"],
cSettings: [
.define("WITH_USB_SUPPORT"),
.headerSearchPath("ExternalHeaders"),
.headerSearchPath("ExternalHeaders/glib-2.0"),
.headerSearchPath("ExternalHeaders/gstreamer-1.0"),
.headerSearchPath("ExternalHeaders/libusb-1.0"),
.headerSearchPath("ExternalHeaders/spice-1"),
.headerSearchPath("ExternalHeaders/spice-client-glib-2.0")]),
.target(
name: "CocoaSpiceNoUsb",
dependencies: ["CocoaSpiceRenderer"],
exclude: [
"ExternalHeaders",
"CSUSBDevice.m",
"CSUSBManager.m"],
cSettings: [
.headerSearchPath("ExternalHeaders"),
.headerSearchPath("ExternalHeaders/glib-2.0"),
.headerSearchPath("ExternalHeaders/gstreamer-1.0"),
.headerSearchPath("ExternalHeaders/spice-1"),
.headerSearchPath("ExternalHeaders/spice-client-glib-2.0")]),
.testTarget(
name: "CocoaSpiceTests",
dependencies: ["CocoaSpice"],
linkerSettings: [
.linkedLibrary("glib-2.0"),
.linkedLibrary("gstreamer-1.0"),
.linkedLibrary("usb-1.0"),
.linkedLibrary("spice-client-glib-2.0")]),
]
)