summaryrefslogtreecommitdiff
path: root/vcl/Executable_visualbackendtest.mk
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2021-05-26 07:13:15 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2021-05-26 22:51:05 +0200
commitc22f23556d03e1ac0c8be7a79597c822b7e29fc9 (patch)
tree7fc70cfda9a1db747ace9725fbf3fa61b7f2f12b /vcl/Executable_visualbackendtest.mk
parentca242dfefa03016a9b0f675cb91b4605ce80875d (diff)
gbuild: Handle glxtest + vclmain usage via macros
Use a macro to do the same checks for all Executable with glxtest or vclmain usage. Both are static libraries, so every user has the same dependencies. Introduces: * gb_Executable_use_vclmain * gb_Executable_use_glxtest Change-Id: Ib80b4e7c6f5078d47ad8f1ec5708a7174415f705 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116145 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/Executable_visualbackendtest.mk')
-rw-r--r--vcl/Executable_visualbackendtest.mk19
1 files changed, 2 insertions, 17 deletions
diff --git a/vcl/Executable_visualbackendtest.mk b/vcl/Executable_visualbackendtest.mk
index c6c0d237018a..b8f44f33afcb 100644
--- a/vcl/Executable_visualbackendtest.mk
+++ b/vcl/Executable_visualbackendtest.mk
@@ -30,27 +30,12 @@ $(eval $(call gb_Executable_use_libraries,visualbackendtest,\
tl \
sal \
salhelper \
- vcl \
))
+$(eval $(call gb_Executable_use_vclmain,visualbackendtest,-lm))
+
$(eval $(call gb_Executable_add_exception_objects,visualbackendtest,\
vcl/backendtest/VisualBackendTest \
))
-$(eval $(call gb_Executable_use_static_libraries,visualbackendtest,\
- vclmain \
-))
-
-ifneq (, $(filter LINUX %BSD, $(OS)))
-$(eval $(call gb_Executable_add_libs,visualbackendtest,\
- -lm \
- $(DLOPEN_LIBS) \
- -lX11 \
-))
-
-$(eval $(call gb_Executable_use_static_libraries,visualbackendtest,\
- glxtest \
-))
-endif
-
# vim: set noet sw=4 ts=4: