summaryrefslogtreecommitdiff
path: root/vcl/Library_vcl.mk
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2011-07-25 14:10:55 +0100
committerMichael Meeks <michael.meeks@novell.com>2011-07-25 14:19:45 +0100
commit67f11e53d03467ab664b8cfa23d69bacc777b714 (patch)
treea63b030e99bfb88858ec6e936aedb571c6fdf959 /vcl/Library_vcl.mk
parent2804ecc0fe40f8317050043b169396845b1b520d (diff)
update gnumake pieces for system cairo
Diffstat (limited to 'vcl/Library_vcl.mk')
-rw-r--r--vcl/Library_vcl.mk36
1 files changed, 2 insertions, 34 deletions
diff --git a/vcl/Library_vcl.mk b/vcl/Library_vcl.mk
index e10eb98009da..1cd58bcb3601 100644
--- a/vcl/Library_vcl.mk
+++ b/vcl/Library_vcl.mk
@@ -476,42 +476,10 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\
$(eval $(call gb_Library_add_defs,vcl,\
-DENABLE_LIBRSVG \
))
-ifeq ($(SYSTEM_CAIRO),YES)
-$(eval $(call gb_Library_set_cxxflags,vcl,\
- $$(CXXFLAGS) \
- $$(CAIRO_CFLAGS) \
- -DSYSTEM_CAIRO \
-))
-
-# CAIRO_LIBS contains both -L and -l options. Thes sets LDFLAGS which
-# goes early into the linking command line before the object files. So
-# on platforms where libraries are searched for symbols undefined at
-# that point as they occur on the command line, it is pointless to
-# search the cairo library at that point as no references to cairo
-# entries have been read from object files yet.
-$(eval $(call gb_Library_add_ldflags,vcl,\
- $$(CAIRO_LIBS) \
-))
-
-# Thus we also need to add cairo to the list of linked libs. These go
-# after the object files on the linking command line.
-$(eval $(call gb_Library_add_linked_libs,vcl,\
- cairo \
-))
-
-else
-$(eval $(call gb_Library_add_linked_libs,vcl,\
- cairo \
-))
-ifeq ($(OS),LINUX)
-$(eval $(call gb_Library_add_linked_libs,vcl,\
- freetype \
- fontconfig \
-))
-endif
-endif
endif
+$(eval $(call gb_Library_use_external,vcl,cairo))
+
ifeq ($(GUIBASE),unx)
$(eval $(call gb_Library_add_ldflags,vcl,\
$$(FONTCONFIG_LIBS) \