Kaydet (Commit) 67f11e53 authored tarafından Michael Meeks's avatar Michael Meeks

update gnumake pieces for system cairo

üst 2804ecc0
...@@ -476,42 +476,10 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\ ...@@ -476,42 +476,10 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\
$(eval $(call gb_Library_add_defs,vcl,\ $(eval $(call gb_Library_add_defs,vcl,\
-DENABLE_LIBRSVG \ -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 endif
$(eval $(call gb_Library_use_external,vcl,cairo))
ifeq ($(GUIBASE),unx) ifeq ($(GUIBASE),unx)
$(eval $(call gb_Library_add_ldflags,vcl,\ $(eval $(call gb_Library_add_ldflags,vcl,\
$$(FONTCONFIG_LIBS) \ $$(FONTCONFIG_LIBS) \
......
...@@ -67,21 +67,7 @@ $(eval $(call gb_Library_use_externals,vclplug_gen,\ ...@@ -67,21 +67,7 @@ $(eval $(call gb_Library_use_externals,vclplug_gen,\
icuuc \ icuuc \
)) ))
ifeq ($(SYSTEM_CAIRO),YES) $(eval $(call gb_Library_use_external,vclplug_gen,cairo))
$(eval $(call gb_Library_set_ldflags,vclplug_gen,\
$$(LDFLAGS) \
$$(CAIRO_LIBS) \
))
else
$(eval $(call gb_Library_add_cxxflags,vclplug_gen,\
$$(FONTCONFIG_CFLAGS) \
$$(FREETYPE_CFLAGS) \
))
$(eval $(call gb_Library_add_linked_libs,vclplug_gen,\
cairo \
))
endif
$(eval $(call gb_Library_add_exception_objects,vclplug_gen,\ $(eval $(call gb_Library_add_exception_objects,vclplug_gen,\
vcl/unx/generic/app/i18n_cb \ vcl/unx/generic/app/i18n_cb \
......
...@@ -35,13 +35,12 @@ $(eval $(call gb_Library_set_include,vclplug_gtk3,\ ...@@ -35,13 +35,12 @@ $(eval $(call gb_Library_set_include,vclplug_gtk3,\
-I$(OUTDIR)/inc \ -I$(OUTDIR)/inc \
)) ))
$(eval $(call gb_Library_set_cxxflags,vclplug_gtk3,\ $(eval $(call gb_Library_add_cxxflags,vclplug_gtk3,\
$$(CXXFLAGS) \ $$(INCLUDE) \
$$(GTK3_CFLAGS) \ $$(GTK3_CFLAGS) \
)) ))
$(eval $(call gb_Library_set_defs,vclplug_gtk3,\ $(eval $(call gb_Library_add_defs,vclplug_gtk3,\
$$(DEFS) \
-DVCLPLUG_GTK_IMPLEMENTATION \ -DVCLPLUG_GTK_IMPLEMENTATION \
-DVERSION=\"$(UPD)$(LAST_MINOR)\" \ -DVERSION=\"$(UPD)$(LAST_MINOR)\" \
)) ))
...@@ -56,18 +55,15 @@ $(eval $(call gb_Library_set_include,vclplug_gtk3,\ ...@@ -56,18 +55,15 @@ $(eval $(call gb_Library_set_include,vclplug_gtk3,\
$$(INCLUDE) \ $$(INCLUDE) \
$(filter -I%,$(shell pkg-config --cflags dbus-glib-1)) \ $(filter -I%,$(shell pkg-config --cflags dbus-glib-1)) \
)) ))
$(eval $(call gb_Library_set_defs,vclplug_gtk3,\ $(eval $(call gb_Library_add_defs,vclplug_gtk3,\
$$(DEFS) \
-DENABLE_DBUS \ -DENABLE_DBUS \
)) ))
$(eval $(call gb_Library_set_ldflags,vclplug_gtk3,\ $(eval $(call gb_Library_add_libs,vclplug_gtk3,\
$$(LDFLAGS) \
$(shell pkg-config --libs dbus-glib-1)\ $(shell pkg-config --libs dbus-glib-1)\
)) ))
endif endif
$(eval $(call gb_Library_set_ldflags,vclplug_gtk3,\ $(eval $(call gb_Library_add_libs,vclplug_gtk3,\
$$(LDFLAGS) \
$$(GTK3_LIBS) \ $$(GTK3_LIBS) \
$$(GTHREAD_LIBS) \ $$(GTHREAD_LIBS) \
)) ))
...@@ -80,10 +76,9 @@ $(eval $(call gb_Library_add_linked_libs,vclplug_gtk3,\ ...@@ -80,10 +76,9 @@ $(eval $(call gb_Library_add_linked_libs,vclplug_gtk3,\
sot \ sot \
ucbhelper \ ucbhelper \
basegfx \ basegfx \
basebmp \
comphelper \ comphelper \
cppuhelper \ cppuhelper \
icuuc \
icule \
i18nisolang1 \ i18nisolang1 \
i18npaper \ i18npaper \
i18nutil \ i18nutil \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment