From: Leonardo Taccari <iamleot@gmail.com>
Date: Mon, 15 Oct 2018 10:18:10 +0000 (+0200)
Subject: Use webkit2-gtk-web-extension-4.0 for EXT{C,LD}FLAGS
X-Git-Url: https://git.owens.tech/wrapped.html/wrapped.html/git?a=commitdiff_plain;h=fe5de6af3f0ee44ba0df3993ac1b6bd1d87902e3;p=vimb.git

Use webkit2-gtk-web-extension-4.0 for EXT{C,LD}FLAGS

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'.
---

diff --git a/config.mk b/config.mk
index 4274f43..44cffab 100644
--- 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))