summaryrefslogtreecommitdiffstats
path: root/RepositoryExternal.mk
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-12-01 13:39:09 +0100
committerDavid Tardon <dtardon@redhat.com>2011-12-05 15:11:52 +0100
commitadb110517139252962b1ccf8f9230a4981a9573a (patch)
tree2a6ac2d1b9069d6c6e551ccfa72fc60cd019e987 /RepositoryExternal.mk
parentbuild the print dialog for gtk3 too (diff)
downloadcore-adb110517139252962b1ccf8f9230a4981a9573a.tar.gz
core-adb110517139252962b1ccf8f9230a4981a9573a.zip
set up CFLAGS/LIBS for gtk print dialog in configure
The dialog is built for gtk 2.0 if the version present at the system is at least 2.10.0 and always for gtk 3.0.
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r--RepositoryExternal.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 11deeaaff838..6da9253ae1fe 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -645,6 +645,19 @@ $(call gb_LinkTarget_set_include,$(1),\
$(call gb_LinkTarget_add_libs,$(1),$(GTK_LIBS))
+ifeq ($(ENABLE_GTK_PRINT),TRUE)
+
+$(call gb_LinkTarget_add_defs,$(1),-DENABLE_GTK_PRINT)
+
+$(call gb_LinkTarget_set_include,$(1),\
+ $$(INCLUDE) \
+ $(GTK_PRINT_CFLAGS) \
+)
+
+$(call gb_LinkTarget_add_libs,$(1),$(GTK_PRINT_LIBS))
+
+endif
+
endef
define gb_LinkTarget__use_gthread