From fe5de6af3f0ee44ba0df3993ac1b6bd1d87902e3 Mon Sep 17 00:00:00 2001 From: Leonardo Taccari Date: Mon, 15 Oct 2018 12:18:10 +0200 Subject: [PATCH] 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'. --- config.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.20.1