mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
update to support go install
- default to webkit2gtk-4.1 if not overridden to be 4.0
This commit is contained in:
@@ -6,7 +6,7 @@ package webview
|
||||
/*
|
||||
#cgo linux pkg-config: gtk+-3.0 gio-unix-2.0
|
||||
#cgo webkit2_40 pkg-config: webkit2gtk-4.0 libsoup-2.4
|
||||
#cgo webkit2_41 pkg-config: webkit2gtk-4.1 libsoup-3.0
|
||||
#cgo !webkit2_40 pkg-config: webkit2gtk-4.1 libsoup-3.0
|
||||
|
||||
#include "gtk/gtk.h"
|
||||
#include "webkit2/webkit2.h"
|
||||
|
||||
@@ -5,7 +5,7 @@ package webview
|
||||
/*
|
||||
#cgo linux pkg-config: gtk+-3.0 gio-unix-2.0
|
||||
#cgo webkit2_40 pkg-config: webkit2gtk-4.0 libsoup-2.4
|
||||
#cgo webkit2_41 pkg-config: webkit2gtk-4.1 libsoup-3.0
|
||||
#cgo !webkit2_40 pkg-config: webkit2gtk-4.1 libsoup-3.0
|
||||
|
||||
#include "gtk/gtk.h"
|
||||
#include "webkit2/webkit2.h"
|
||||
|
||||
@@ -5,7 +5,7 @@ package webview
|
||||
/*
|
||||
#cgo pkg-config: gtk+-3.0
|
||||
#cgo webkit2_40 pkg-config: webkit2gtk-4.0 libsoup-2.4
|
||||
#cgo webkit2_41 pkg-config: webkit2gtk-4.1 libsoup-3.0
|
||||
#cgo !webkit2_40 pkg-config: webkit2gtk-4.1 libsoup-3.0
|
||||
|
||||
#include "gtk/gtk.h"
|
||||
#include "webkit2/webkit2.h"
|
||||
|
||||
@@ -3,7 +3,7 @@ package operatingsystem
|
||||
/*
|
||||
#cgo linux pkg-config: gtk+-3.0
|
||||
#cgo webkit2_40 pkg-config: webkit2gtk-4.0
|
||||
#cgo webkit2_41 pkg-config: webkit2gtk-4.1
|
||||
#cgo !webkit2_40 pkg-config: webkit2gtk-4.1
|
||||
|
||||
#include <webkit2/webkit2.h>
|
||||
*/
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
package application
|
||||
|
||||
/*
|
||||
#cgo linux pkg-config: gtk+-3.0
|
||||
#cgo webkit2_40 pkg-config: webkit2gtk-4.0 libsoup-2.4
|
||||
#cgo webkit2_41 pkg-config: webkit2gtk-4.1 libsoup-3.0
|
||||
#cgo linux pkg-config: gtk+-3.0
|
||||
#cgo webkit2_40 pkg-config: webkit2gtk-4.0 libsoup-2.4
|
||||
#cgo !webkit2_40 pkg-config: webkit2gtk-4.1 libsoup-3.0
|
||||
|
||||
#include "gtk/gtk.h"
|
||||
#include "webkit2/webkit2.h"
|
||||
|
||||
@@ -17,7 +17,7 @@ import (
|
||||
/*
|
||||
#cgo linux pkg-config: gdk-3.0 gtk+-3.0
|
||||
#cgo webkit2_40 pkg-config: webkit2gtk-4.0
|
||||
#cgo webkit2_41 pkg-config: webkit2gtk-4.1
|
||||
#cgo !webkit2_40 pkg-config: webkit2gtk-4.1
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdk.h>
|
||||
|
||||
Reference in New Issue
Block a user