diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-10-17 12:24:59 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-11-19 13:47:39 +0100 |
commit | 678008264f8d8278b889d20b086d6fdba6303aae (patch) | |
tree | c12400727b1391e39b72fab529c5a64bbae024c8 /chart2/Library_chartopengl.mk | |
parent | add a few property cases (diff) | |
download | core-678008264f8d8278b889d20b086d6fdba6303aae.tar.gz core-678008264f8d8278b889d20b086d6fdba6303aae.zip |
add glew and make chartopengl a dynamically loaded lib
Diffstat (limited to 'chart2/Library_chartopengl.mk')
-rw-r--r-- | chart2/Library_chartopengl.mk | 45 |
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: |