summaryrefslogtreecommitdiff
path: root/vcl/Library_vclplug_gen.mk
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-09-27 21:45:47 +0200
committerMichael Stahl <mstahl@redhat.com>2012-09-28 16:49:07 +0200
commit78b59b8302e79fad71bfff66d5b88db80527e6a1 (patch)
tree877b7bec05cebfa44db36af96b292874d20e3a39 /vcl/Library_vclplug_gen.mk
parent40e0ebff76d839a548638ca8709c68c56e2b926c (diff)
gbuild: clean up usage of weird x11_extensions module etc.
Move libraries using those headers to RepositoryExternal.mk and also move pkg-config invocation to configure. Change-Id: I17a240fcba83a98f3f248f15b34d245f941c62e2
Diffstat (limited to 'vcl/Library_vclplug_gen.mk')
-rw-r--r--vcl/Library_vclplug_gen.mk23
1 files changed, 5 insertions, 18 deletions
diff --git a/vcl/Library_vclplug_gen.mk b/vcl/Library_vclplug_gen.mk
index 0261c036465b..46c5f522820c 100644
--- a/vcl/Library_vclplug_gen.mk
+++ b/vcl/Library_vclplug_gen.mk
@@ -61,6 +61,7 @@ $(eval $(call gb_Library_use_externals,vclplug_gen,\
cairo \
icule \
icuuc \
+ Xrender \
))
$(eval $(call gb_Library_add_exception_objects,vclplug_gen,\
@@ -111,23 +112,13 @@ $(eval $(call gb_Library_add_defs,vclplug_gen,\
## handle RandR
ifneq ($(ENABLE_RANDR),)
-$(eval $(call gb_Library_add_defs,vclplug_gen,\
- -DUSE_RANDR \
-))
-ifeq ($(XRANDR_DLOPEN),FALSE)
-$(eval $(call gb_Library_set_include,vclplug_gen,\
- $$(INCLUDE) \
- $$(XRANDR_CFLAGS) \
-))
-$(eval $(call gb_Library_add_libs,vclplug_gen,\
- $(XRANDR_LIBS) \
+$(eval $(call gb_Library_use_externals,vclplug_gen,\
+ Xrandr \
))
-else
$(eval $(call gb_Library_add_defs,vclplug_gen,\
- -DXRANDR_DLOPEN \
+ -DUSE_RANDR \
))
endif
-endif
$(eval $(call gb_Library_add_defs,vclplug_gen,\
$(if $(VALGRIND_CFLAGS), \
@@ -172,11 +163,6 @@ endif
endif
endif
-## handle Render linking
-$(eval $(call gb_Library_add_libs,vclplug_gen,\
- $(shell pkg-config --libs xrender) \
-))
-
ifeq ($(OS),LINUX)
$(eval $(call gb_Library_use_libraries,vclplug_gen,\
dl \
@@ -184,4 +170,5 @@ $(eval $(call gb_Library_use_libraries,vclplug_gen,\
pthread \
))
endif
+
# vim: set noet sw=4 ts=4: