forked from amosavian/AMSMB2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
38 lines (37 loc) · 983 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
28
29
30
31
32
33
34
35
36
37
38
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "AMSMB2",
platforms: [
.iOS(.v9),
.macOS(.v10_11),
.tvOS(.v9),
],
products: [
.library(name: "AMSMB2",
targets: ["AMSMB2"])
],
targets: [
.target(
name: "SMB2",
path: "libsmb2",
publicHeadersPath: "libsmb2/include",
linkerSettings: [
.linkedLibrary("smb2-macos", .when(platforms: [.macOS])),
.linkedLibrary("smb2-ios", .when(platforms: [.iOS])),
.linkedLibrary("smb2-tvos", .when(platforms: [.tvOS])),
]
),
.target(
name: "AMSMB2",
dependencies: ["SMB2"],
path: "AMSMB2"
),
.testTarget(
name: "AMSMB2Tests",
dependencies: ["AMSMB2"],
path: "AMSMB2Tests"
),
],
swiftLanguageVersions: [.v5]
)