GTK4: validate compilation with gtk3
This commit is contained in:
parent
de1e608d06
commit
bb9ff083b3
2
config.h
2
config.h
|
@ -2,7 +2,7 @@
|
||||||
#include <gdk/gdk.h> // <gdk/gdkenums.h>, <gdk/gdkkeysyms.h>
|
#include <gdk/gdk.h> // <gdk/gdkenums.h>, <gdk/gdkkeysyms.h>
|
||||||
|
|
||||||
// GKG 3 or GKG 4
|
// GKG 3 or GKG 4
|
||||||
# define GKG_NUM 4
|
# define GKG_NUM 3
|
||||||
|
|
||||||
// Key user config
|
// Key user config
|
||||||
#define WIDTH 1920 // 960 for half-width, 1920 for full width
|
#define WIDTH 1920 // 960 for half-width, 1920 for full width
|
||||||
|
|
4
makefile
4
makefile
|
@ -7,8 +7,8 @@ DEBUG= # -g
|
||||||
STD=-std=c99 # maybe consider moving to c11 and using safer string handling
|
STD=-std=c99 # maybe consider moving to c11 and using safer string handling
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
# DEPS='webkit2gtk-4.1'
|
DEPS='webkit2gtk-4.1'
|
||||||
DEPS='webkitgtk-6.0'
|
# DEPS='webkitgtk-6.0'
|
||||||
INCS=`pkg-config --cflags ${DEPS}`
|
INCS=`pkg-config --cflags ${DEPS}`
|
||||||
LIBS=`pkg-config --libs ${DEPS}`
|
LIBS=`pkg-config --libs ${DEPS}`
|
||||||
|
|
||||||
|
|
|
@ -2,14 +2,12 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
#if GKG_NUM == 3
|
#if GKG_NUM == 3
|
||||||
#include <webkit2/webkit2.h>
|
#include <webkit2/webkit2.h>
|
||||||
#elif GKG_NUM == 4
|
#elif GKG_NUM == 4
|
||||||
#include <webkit/webkit.h>
|
#include <webkit/webkit.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "plugins/plugins.h"
|
#include "plugins/plugins.h"
|
||||||
|
|
||||||
/* Global declarations */
|
/* Global declarations */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user