Use webkit2-gtk-web-extension-4.0 for EXT{C,LD}FLAGS
authorLeonardo Taccari <iamleot@gmail.com>
Mon, 15 Oct 2018 10:18:10 +0000 (12:18 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Mon, 15 Oct 2018 13:26:51 +0000 (15:26 +0200)
webkitgtk provides a webkit2gtk-web-extension-4.0 .pc file for
webkitgtk web extensions, use it for the web extension.

Please note that ATM both `--cflags' and `--libs' webkit2gtk-4.0
and webkit2gtk-web-extension-4.0 returns the same values but if
they will diverge in the future the web extension will then use
the right `.pc'.

config.mk

index 4274f43..44cffab 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -34,9 +34,9 @@ CPPFLAGS += -DGDK_DISABLE_DEPRECATED
 
 # flags used to build webextension
 EXTTARGET   = webext_main.so
-EXTCFLAGS   = ${CFLAGS} $(shell pkg-config --cflags webkit2gtk-4.0)
+EXTCFLAGS   = ${CFLAGS} $(shell pkg-config --cflags webkit2gtk-web-extension-4.0)
 EXTCPPFLAGS = $(CPPFLAGS)
-EXTLDFLAGS  = $(shell pkg-config --libs webkit2gtk-4.0) -shared
+EXTLDFLAGS  = $(shell pkg-config --libs webkit2gtk-web-extension-4.0) -shared
 
 # flags used for the main application
 CFLAGS     += $(shell pkg-config --cflags $(LIBS))