summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-11-12 01:13:01 +0200
committerTor Lillqvist <tml@collabora.com>2015-11-12 01:30:08 +0200
commitb216cc1b8096eb60c27f67e8c27b7cd756c75e38 (patch)
tree261cc276957765f88dc0d618e90a7608bbaae166 /chart2
parent318c3a48c66dd4ceba801ef410f89b8bf900d5c7 (diff)
Avoid mesa_headers on X11, also link with -lGL only where necesssary
The GLEW headers are enough, and what we actually use in these places. In addition to handling GL extension things in its dynamic fashion, GLEW headers also have declarations for standard, non-extension, OpenGL API, including xgl and wgl ones. Most likely we don't need mesa_headers on Windows or OS X either, and can drop them completely. Change-Id: Ic0d8d6238c862f8fe4a74e99e95344dcbf540980
Diffstat (limited to 'chart2')
-rw-r--r--chart2/Library_chartcore.mk2
-rw-r--r--chart2/Library_chartopengl.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/chart2/Library_chartcore.mk b/chart2/Library_chartcore.mk
index c65f2628ef96..f611c68323b3 100644
--- a/chart2/Library_chartcore.mk
+++ b/chart2/Library_chartcore.mk
@@ -29,7 +29,7 @@ $(eval $(call gb_Library_use_externals,chartcore,\
boost_headers \
glm_headers \
glew \
- mesa_headers \
+ $(if $(filter WNT MACOSX,$(OS)),mesa_headers) \
))
$(eval $(call gb_Library_use_custom_headers,chartcore,\
diff --git a/chart2/Library_chartopengl.mk b/chart2/Library_chartopengl.mk
index 83d52d8bfa8d..440ef9ed614f 100644
--- a/chart2/Library_chartopengl.mk
+++ b/chart2/Library_chartopengl.mk
@@ -22,7 +22,7 @@ $(eval $(call gb_Library_set_precompiled_header,chartopengl,$(SRCDIR)/chart2/inc
$(eval $(call gb_Library_use_externals,chartopengl,\
boost_headers \
glm_headers \
- mesa_headers \
+ $(if $(filter WNT MACOSX,$(OS)),mesa_headers) \
glew \
))