coverity#703928 Unchecked return value
[LibreOffice.git] / vcl / Library_vclopengl.mk
blobe61dd8a9bb314ecd3b3a921fb63e859337be27a1
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval $(call gb_Library_Library,vclopengl))
12 $(eval $(call gb_Library_set_include,vclopengl,\
13 -I$(SRCDIR)/vcl/inc/ \
14 $$(INCLUDE) \
17 $(eval $(call gb_Library_add_defs,vclopengl,\
18 -DVCLOPENGL_DLLIMPLEMENTATION \
21 $(eval $(call gb_Library_use_externals,vclopengl,\
22 boost_headers \
23 mdds_headers \
24 glm_headers \
25 mesa_headers \
26 glew \
29 $(eval $(call gb_Library_use_sdk_api,vclopengl))
31 $(eval $(call gb_Library_use_libraries,vclopengl,\
32 comphelper \
33 cppu \
34 cppuhelper \
35 sal \
36 tl \
37 vcl \
38 $(gb_UWINAPI) \
41 $(eval $(call gb_Library_add_exception_objects,vclopengl,\
42 vcl/source/opengl/OpenGLContext \
43 vcl/source/opengl/OpenGLHelper \
44 vcl/source/window/openglwin \
47 ifeq ($(OS),MACOSX)
49 $(eval $(call gb_Library_add_cxxflags,vclopengl,\
50 $(gb_OBJCXXFLAGS) \
53 $(eval $(call gb_Library_add_libs,vcl,\
54 -framework IOKit \
55 -F/System/Library/PrivateFrameworks \
56 -framework CoreUI \
57 -lobjc \
60 $(eval $(call gb_Library_add_exception_objects,vclopengl,\
61 vcl/osx/OpenGLWrapper \
64 endif
66 ifeq ($(strip $(OS)),WNT)
67 $(eval $(call gb_Library_use_system_win32_libs,vclopengl,\
68 opengl32 \
69 gdi32 \
70 glu32 \
72 else ifeq ($(OS),MACOSX)
73 $(eval $(call gb_Library_use_system_darwin_frameworks,vclopengl,\
74 OpenGL \
75 Cocoa \
76 Carbon \
77 CoreFoundation \
79 else ifeq ($(OS),LINUX)
80 $(eval $(call gb_Library_add_libs,vclopengl,\
81 -ldl \
82 -lGL \
83 -lGLU \
84 -lX11 \
86 endif
88 # vim: set noet sw=4 ts=4: