-
Notifications
You must be signed in to change notification settings - Fork 47
/
Package.swift
27 lines (24 loc) · 909 Bytes
/
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
// swift-tools-version:5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
// $Id: //depot/Remote/Package.swift#12 $
//
import PackageDescription
import Foundation
let hostname = Host.current().name ?? "localhost"
let package = Package(
name: "RemotePlugin",
platforms: [.iOS("10.0"), .macOS("10.12")],
products: [
.library(name: "RemoteCapture", targets: ["RemoteCapture"]),
.library(name: "RemoteMovie", targets: ["RemoteMovie"]),
.library(name: "RemoteUI", targets: ["RemoteUI"]),
],
dependencies: [],
targets: [
.target(name: "RemoteCapture",
cSettings: [.define("REMOTEPLUGIN_SERVERIPS",
to: "\"\(hostname)\"")]),
.target(name: "RemoteMovie"),
.target(name: "RemoteUI", dependencies: ["RemoteCapture", "RemoteMovie"]),
]
)