Merge branch 'master' into feature/gnumake4
[LibreOffice.git] / slideshow / Library_OGLTrans.mk
blobf6d1ec0763a87780650d2c82cf169827bfecf90b
1 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
3 # The contents of this file are subject to the Mozilla Public License Version
4 # 1.1 (the "License"); you may not use this file except in compliance with
5 # the License or as specified alternatively below. You may obtain a copy of
6 # the License at http://www.mozilla.org/MPL/
8 # Software distributed under the License is distributed on an "AS IS" basis,
9 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
10 # for the specific language governing rights and limitations under the
11 # License.
13 # The Initial Developer of the Original Code is
14 # David Tardon, Red Hat Inc. <dtardon@redhat.com>
15 # Portions created by the Initial Developer are Copyright (C) 2010 the
16 # Initial Developer. All Rights Reserved.
18 # Major Contributor(s):
20 # For minor contributions see the git repository.
22 # Alternatively, the contents of this file may be used under the terms of
23 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
24 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
25 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
26 # instead of those above.
28 $(eval $(call gb_Library_Library,OGLTrans))
30 $(eval $(call gb_Library_add_precompiled_header,OGLTrans,$(SRCDIR)/sd/inc/pch/precompiled_sd))
32 $(eval $(call gb_Library_set_include,OGLTrans,\
33 $$(INCLUDE) \
34 -I$(realpath $(SRCDIR)/slideshow/inc/pch) \
35 -I$(OUTDIR)/inc \
38 ifeq ($(strip $(VERBOSE)),TRUE)
39 $(eval $(call gb_Library_add_defs,OGLTrans,\
40 -DVERBOSE \
42 endif
44 ifneq ($(strip $(debug)$(DEBUG)),)
45 $(eval $(call gb_Library_add_defs,OGLTrans,\
46 -DBOOST_SP_ENABLE_DEBUG_HOOKS \
48 endif
50 $(eval $(call gb_Library_add_api,OGLTrans,\
51 offapi \
52 udkapi \
55 $(eval $(call gb_Library_add_linked_libs,OGLTrans,\
56 canvastools \
57 comphelper \
58 cppu \
59 cppuhelper \
60 sal \
61 vcl \
62 $(gb_STDLIBS) \
65 $(eval $(call gb_Library_set_componentfile,OGLTrans,slideshow/source/engine/OGLTrans/ogltrans))
67 ifeq ($(strip $(OS)),MACOSX)
68 $(eval $(call gb_Library_add_objcobjects,OGLTrans,\
69 slideshow/source/engine/OGLTrans/mac/aquaOpenGLView \
70 slideshow/source/engine/OGLTrans/mac/OGLTrans_Shaders \
74 $(eval $(call gb_Library_add_objcxxobjects,OGLTrans,\
75 slideshow/source/engine/OGLTrans/mac/OGLTrans_TransitionerImpl \
76 slideshow/source/engine/OGLTrans/mac/OGLTrans_TransitionImpl \
77 , $(gb_LinkTarget_EXCEPTIONFLAGS) \
80 $(eval $(call gb_Library_add_linked_libs,OGLTrans,\
81 Cocoa \
82 GLUT \
83 OpenGL \
86 else ifeq ($(strip $(OS)),WNT)
87 $(eval $(call gb_Library_add_linked_libs,OGLTrans,\
88 gdi32 \
89 glu32 \
90 opengl32 \
93 $(eval $(call gb_Library_add_exception_objects,OGLTrans,\
94 slideshow/source/engine/OGLTrans/win/OGLTrans_Shaders \
95 slideshow/source/engine/OGLTrans/win/OGLTrans_TransitionerImpl \
96 slideshow/source/engine/OGLTrans/win/OGLTrans_TransitionImpl \
99 else
100 $(eval $(call gb_Library_add_exception_objects,OGLTrans,\
101 slideshow/source/engine/OGLTrans/unx/OGLTrans_Shaders \
102 slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionerImpl \
103 slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionImpl \
106 $(eval $(call gb_Library_add_linked_libs,OGLTrans,\
107 GL \
108 GLU \
109 X11 \
111 endif
113 # vim: set noet ts=4 sw=4: