diff --git a/package/webkitgtk/webkitgtk.mk b/package/webkitgtk/webkitgtk.mk index a3db249ae6..4d5d0b89e2 100644 --- a/package/webkitgtk/webkitgtk.mk +++ b/package/webkitgtk/webkitgtk.mk @@ -21,7 +21,6 @@ WEBKITGTK_CONF_OPTS = \ -DENABLE_GAMEPAD=OFF \ -DENABLE_GEOLOCATION=OFF \ -DENABLE_GTKDOC=OFF \ - -DENABLE_INTROSPECTION=OFF \ -DENABLE_MINIBROWSER=ON \ -DENABLE_SPELLCHECK=ON \ -DPORT=GTK \ @@ -59,6 +58,13 @@ else WEBKITGTK_CONF_OPTS += -DENABLE_WEBDRIVER=OFF endif +ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y) +WEBKITGTK_CONF_OPTS += -DENABLE_INTROSPECTION=ON +WEBKITGTK_DEPENDENCIES += gobject-introspection +else +WEBKITGTK_CONF_OPTS += -DENABLE_INTROSPECTION=OFF +endif + # Only one target platform can be built, assume X11 > Wayland # GTK3-X11 target gives OpenGL from newer libgtk3 versions