Skip to content

Commit

Permalink
Attempt to fix FileViewerExample for Linux (missing module CGtk; in G…
Browse files Browse the repository at this point in the history
…itHub Actions)
  • Loading branch information
stackotter committed Aug 24, 2023
1 parent 8e9b359 commit 355d8b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ if let version = getGtk4MinorVersion() {
var gtkExampleDependencies: [Target.Dependency] = ["Gtk"]
exampleDependencies.append("GtkBackend")
backendTargets.append("GtkBackend")
fileViewerExampleDependencies.append("GtkBackend")

// Conditionally enable features that rely on Gtk 4.10
if version >= 10 {
Expand All @@ -57,7 +58,8 @@ if let version = getGtk4MinorVersion() {
)

gtkExampleDependencies.append("FileDialog")
fileViewerExampleDependencies.append(contentsOf: ["GtkBackend", "FileDialog"])
fileViewerExampleDependencies.append("FileDialog")
fileViewerExampleDependencies.append("CGtk")
gtkSwiftSettings.append(.define("GTK_4_10_PLUS"))
}

Expand Down

0 comments on commit 355d8b2

Please sign in to comment.