forked from tid-kijyun/Kanna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
31 lines (30 loc) · 941 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
// swift-tools-version:4.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Kanna",
products: [
.library(name: "Kanna", targets: ["Kanna"]),
],
targets: [
.systemLibrary(
name: "libxmlKanna",
path: "Modules",
pkgConfig: "libxml-2.0",
providers: [
.brew(["libxml2"]),
.apt(["libxml2-dev"])
]),
.target(name: "Kanna",
dependencies: ["libxmlKanna"],
path: "Sources",
exclude: [
"Sources/Info.plist",
"Sources/Kanna.h",
"Tests/KannaTests/Data"
]),
.testTarget(name: "KannaTests",
dependencies: ["Kanna"]
)
]
)