forked from fwcd/swift-git
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
56 lines (54 loc) · 1.27 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
// swift-tools-version:5.3
// 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: [
.systemLibrary(
name: "Clibgit2",
pkgConfig: "libgit2",
providers: [
.brew(["libgit2"]),
.apt(["libgit2-dev"]),
]
),
.target(
name: "SwiftGit2",
dependencies: [
.target(name: "Clibgit2"),
],
exclude: ["Info.plist"]
),
.testTarget(
name: "SwiftGit2Tests",
dependencies: [
.target(name: "SwiftGit2"),
.product(name: "Quick", package: "Quick"),
.product(name: "Nimble", package: "Nimble"),
.product(name: "Zip", package: "Zip"),
],
exclude: ["Info.plist"],
resources: [
.copy("Fixtures/repository-with-status.zip"),
.copy("Fixtures/Mantle.zip"),
.copy("Fixtures/simple-repository.zip"),
.copy("Fixtures/detached-head.zip"),
]
),
]
)