summaryrefslogtreecommitdiff
path: root/vcl/Library_vcl.mk
diff options
context:
space:
mode:
authorTomas Chvatal <tchvatal@suse.cz>2012-05-07 13:46:09 +0200
committerTomas Chvatal <tchvatal@suse.cz>2012-05-09 17:41:30 +0200
commit27abb730b290f3516582d2d787ef64af76663f97 (patch)
tree5939ae548b224c4c4eaac81ecaba05ab951989f0 /vcl/Library_vcl.mk
parentc7a9318f08e08a35f2784bf8d06f62031649b24e (diff)
Enable configure switch for cups
This allows us not to have cups during the build time of libreoffice. Commit is inspired from patch from Dave Flogeras <dflogeras@gmail.com>. Change-Id: I I32a14eb6e7bdd13de1a737d4798c852a830ae326
Diffstat (limited to 'vcl/Library_vcl.mk')
-rw-r--r--vcl/Library_vcl.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/vcl/Library_vcl.mk b/vcl/Library_vcl.mk
index 9a259c3d8eea..a5b1848c8c47 100644
--- a/vcl/Library_vcl.mk
+++ b/vcl/Library_vcl.mk
@@ -445,10 +445,15 @@ $(eval $(call gb_Library_add_defs,vcl,\
$(eval $(call gb_Library_add_exception_objects,vcl,\
$(vcl_generic_code) \
vcl/unx/generic/plugadapt/salplug \
- vcl/unx/generic/printer/cupsmgr \
vcl/unx/generic/printer/jobdata \
vcl/unx/generic/printer/ppdparser \
- vcl/unx/generic/printer/printerinfomanager \
+ $(if $(filter YES,$(ENABLE_CUPS)),\
+ vcl/unx/generic/printer/cupsmgr \
+ vcl/unx/generic/printer/printerinfomanager \
+ ) \
+ $(if $(filter NO,$(ENABLE_CUPS)),\
+ vcl/null/printerinfomanager \
+ ) \
))
$(eval $(call gb_Library_use_externals,vcl,\
fontconfig \