summaryrefslogtreecommitdiff
path: root/chart2/Library_chartopengl.mk
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-10-17 12:24:59 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-11-19 13:47:39 +0100
commit678008264f8d8278b889d20b086d6fdba6303aae (patch)
treec12400727b1391e39b72fab529c5a64bbae024c8 /chart2/Library_chartopengl.mk
parenta715ebeee9d3a88c7c0155d629277f1ee2705bf2 (diff)
add glew and make chartopengl a dynamically loaded lib
Diffstat (limited to 'chart2/Library_chartopengl.mk')
-rw-r--r--chart2/Library_chartopengl.mk45
1 files changed, 45 insertions, 0 deletions
diff --git a/chart2/Library_chartopengl.mk b/chart2/Library_chartopengl.mk
new file mode 100644
index 000000000000..da71c21a00dd
--- /dev/null
+++ b/chart2/Library_chartopengl.mk
@@ -0,0 +1,45 @@
+# -*- 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_Library_Library,chartopengl))
+
+$(eval $(call gb_Library_set_include,chartopengl,\
+ -I$(SRCDIR)/chart2/inc \
+ -I$(SRCDIR)/chart2/source/model/inc \
+ -I$(SRCDIR)/chart2/source/view/inc \
+ -I$(SRCDIR)/chart2/source/inc \
+ $$(INCLUDE) \
+))
+
+$(eval $(call gb_Library_use_sdk_api,chartopengl))
+
+$(eval $(call gb_Library_use_libraries,chartopengl,\
+ chartcore \
+ cppu \
+ cppuhelper \
+ sal \
+ $(gb_UWINAPI) \
+))
+
+$(eval $(call gb_Library_set_precompiled_header,chartopengl,$(SRCDIR)/chart2/inc/pch/precompiled_chartopengl))
+
+$(eval $(call gb_Library_add_exception_objects,chartopengl,\
+ chart2/source/glew/glew \
+ chart2/source/view/main/OpenglShapeFactory \
+ chart2/source/view/main/DummyXShape \
+))
+
+ifeq ($(OS),LINUX)
+$(eval $(call gb_Library_add_libs,chartopengl,\
+ -ldl \
+ -lGL \
+))
+endif
+
+# vim: set noet sw=4 ts=4: