forked from rhx/SwiftGtk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
27 lines (25 loc) · 1.08 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
// swift-tools-version:5.2
import PackageDescription
let package = Package(
name: "Gtk",
products: [ .library(name: "Gtk", targets: ["Gtk"]) ],
dependencies: [
.package(name: "gir2swift", url: "https://github.com/rhx/gir2swift.git", .branch("main")),
.package(name: "Atk", url: "https://github.com/rhx/SwiftAtk.git", .branch("main")),
.package(name: "Gdk", url: "https://github.com/rhx/SwiftGdk.git", .branch("main")),
],
targets: [
.systemLibrary(name: "CGtk", pkgConfig: "gtk+-3.0",
providers: [
.brew(["gtk+3", "glib", "glib-networking", "gobject-introspection"]),
.apt(["libgtk-3-dev", "libglib2.0-dev", "glib-networking", "gobject-introspection", "libgirepository1.0-dev"])
]),
.target(
name: "Gtk",
dependencies: ["GtkCHelpers", "Gdk", "Atk"],
swiftSettings: [.unsafeFlags(["-Xfrontend", "-serialize-debugging-options"], .when(configuration: .debug))]
),
.target(name: "GtkCHelpers", dependencies: ["CGtk"]),
.testTarget(name: "GtkTests", dependencies: ["Gtk"]),
]
)