-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPackage.swift
42 lines (40 loc) · 1.76 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
// swift-tools-version:5.6
import PackageDescription
let package = Package(
name: "Pango",
products: [ .library(name: "Pango", targets: ["Pango"]) ],
dependencies: [
.package(url: "https://github.com/rhx/gir2swift.git", branch: "main"),
.package(url: "https://github.com/rhx/SwiftGObject.git", branch: "main"),
.package(url: "https://github.com/rhx/SwiftGIO.git", branch: "main"),
.package(url: "https://github.com/rhx/SwiftHarfBuzz.git", branch: "main"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
],
targets: [
.systemLibrary(
name: "CPango",
pkgConfig: "pango",
providers: [
.brew(["pango", "glib", "glib-networking", "gobject-introspection"]),
.apt(["libpango1.0-dev", "libglib2.0-dev", "glib-networking", "gobject-introspection", "libgirepository1.0-dev"])
]),
.target(
name: "Pango",
dependencies: [
"CPango",
.product(name: "gir2swift", package: "gir2swift"),
.product(name: "GLibObject", package: "SwiftGObject"),
.product(name: "GIO", package: "SwiftGIO"),
.product(name: "HarfBuzz", package: "SwiftHarfBuzz"),
],
swiftSettings: [
.unsafeFlags(["-suppress-warnings"], .when(configuration: .release)),
.unsafeFlags(["-suppress-warnings", "-Xfrontend", "-serialize-debugging-options"], .when(configuration: .debug)),
],
plugins: [
.plugin(name: "gir2swift-plugin", package: "gir2swift")
]
),
.testTarget(name: "PangoTests", dependencies: ["Pango"]),
]
)