summaryrefslogtreecommitdiff
path: root/vcl/Executable_mtfdemo.mk
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2014-12-09 14:21:33 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2014-12-09 14:27:17 +1100
commit5757af8008cb6881e9a40ec2b4e28330bc4fef7f (patch)
treefbe4ec6c11d0ca802461ead4aba751f5801138f5 /vcl/Executable_mtfdemo.mk
parent54cbb57d4c3ccf1e1c8455ac413183edbdeb3416 (diff)
vcl: add new metafile viewer demo - mainly for fdo#80503
This is going to be very helpful troubleshooting problems with metafiles that just won't display. Change-Id: I661dd40e04434a9c64a0f59d9310d36444601989
Diffstat (limited to 'vcl/Executable_mtfdemo.mk')
-rw-r--r--vcl/Executable_mtfdemo.mk59
1 files changed, 59 insertions, 0 deletions
diff --git a/vcl/Executable_mtfdemo.mk b/vcl/Executable_mtfdemo.mk
new file mode 100644
index 000000000000..749547baa846
--- /dev/null
+++ b/vcl/Executable_mtfdemo.mk
@@ -0,0 +1,59 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Executable_Executable,mtfdemo))
+
+$(eval $(call gb_Executable_use_api,mtfdemo,\
+ offapi \
+ udkapi \
+))
+
+$(eval $(call gb_Executable_use_external,mtfdemo,boost_headers))
+
+$(eval $(call gb_Executable_set_include,mtfdemo,\
+ $$(INCLUDE) \
+ -I$(SRCDIR)/vcl/inc \
+ -I$(SRCDIR)/solenv/inc \
+))
+
+$(eval $(call gb_Executable_use_libraries,mtfdemo,\
+ basegfx \
+ tl \
+ sal \
+ vcl \
+ cppu \
+ cppuhelper \
+ comphelper \
+))
+
+$(eval $(call gb_Executable_add_exception_objects,mtfdemo,\
+ vcl/workben/mtfdemo \
+))
+
+$(eval $(call gb_Executable_use_static_libraries,mtfdemo,\
+ vclmain \
+))
+
+ifeq ($(OS),LINUX)
+$(eval $(call gb_Executable_add_libs,mtfdemo,\
+ -lm \
+ -ldl \
+ -lpthread \
+ -lGL \
+ -lGLU \
+ -lX11 \
+))
+
+$(eval $(call gb_Executable_use_static_libraries,mtfdemo,\
+ glxtest \
+))
+endif
+
+# vim: set noet sw=4 ts=4: