forked from SwiftGit2/SwiftGit2
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Package.swift
58 lines (56 loc) · 1.48 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.6
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "SwiftGit2",
platforms: [
.macOS(.v10_11),
.iOS("9.2"),
],
products: [
.library(
name: "SwiftGit2",
targets: ["SwiftGit2"]),
],
dependencies: [
.package(url: "https://github.com/Quick/Quick", from: "2.2.0"),
.package(url: "https://github.com/Quick/Nimble", from: "8.0.8"),
.package(url: "https://github.com/marmelroy/Zip.git", from: "2.0.0"),
],
targets: [
.target(
name: "SwiftGit2",
dependencies: ["Clibgit2", "Clibssh2-ios", "Clibcrypto", "Clibssl"],
path: "SwiftGit2",
exclude: ["Info.plist"]
),
.binaryTarget(
name: "Clibgit2",
path: "External/Clibgit2.xcframework"
),
.binaryTarget(
name: "Clibssh2-ios",
path: "External/Clibssh2-ios.xcframework"
),
.binaryTarget(
name: "Clibcrypto",
path: "External/Clibcrypto.xcframework"
),
.binaryTarget(
name: "Clibssl",
path: "External/Clibssl.xcframework"
),
.testTarget(
name: "SwiftGit2Tests",
dependencies: ["SwiftGit2", "Quick", "Nimble", "Zip"],
path: "SwiftGit2Tests",
exclude: ["Info.plist"],
resources: [
.copy("Fixtures/repository-with-status.zip"),
.copy("Fixtures/Mantle.zip"),
.copy("Fixtures/simple-repository.zip"),
.copy("Fixtures/detached-head.zip"),
]
),
]
)