dev-install seems to poison the env
[LibreOffice.git] / slideshow / Library_OGLTrans.mk
blob15db2b99d5755972096a66fdb8205c913797cd12
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License or as specified alternatively below. You may obtain a copy of
7 # the License at http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
12 # License.
14 # The Initial Developer of the Original Code is
15 # David Tardon, Red Hat Inc. <dtardon@redhat.com>
16 # Portions created by the Initial Developer are Copyright (C) 2010 the
17 # Initial Developer. All Rights Reserved.
19 # Major Contributor(s):
21 # For minor contributions see the git repository.
23 # Alternatively, the contents of this file may be used under the terms of
24 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
25 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
26 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
27 # instead of those above.
29 $(eval $(call gb_Library_Library,OGLTrans))
31 $(eval $(call gb_Library_add_precompiled_header,OGLTrans,$(SRCDIR)/sd/inc/pch/precompiled_sd))
33 $(eval $(call gb_Library_set_include,OGLTrans,\
34 $$(INCLUDE) \
35 -I$(realpath $(SRCDIR)/slideshow/inc/pch) \
36 -I$(OUTDIR)/inc \
39 ifeq ($(strip $(VERBOSE)),TRUE)
40 $(eval $(call gb_Library_add_defs,OGLTrans,\
41 -DVERBOSE \
43 endif
45 ifneq ($(strip $(debug)$(DEBUG)),)
46 $(eval $(call gb_Library_add_defs,OGLTrans,\
47 -DBOOST_SP_ENABLE_DEBUG_HOOKS \
49 endif
51 $(eval $(call gb_Library_add_api,OGLTrans,\
52 offapi \
53 udkapi \
56 $(eval $(call gb_Library_add_linked_libs,OGLTrans,\
57 canvastools \
58 comphelper \
59 cppu \
60 cppuhelper \
61 sal \
62 vcl \
63 $(gb_STDLIBS) \
66 $(eval $(call gb_Library_use_external,OGLTrans,Mesa))
68 $(eval $(call gb_Library_set_componentfile,OGLTrans,slideshow/source/engine/OGLTrans/ogltrans))
70 ifeq ($(strip $(OS)),MACOSX)
71 $(eval $(call gb_Library_add_objcobjects,OGLTrans,\
72 slideshow/source/engine/OGLTrans/mac/aquaOpenGLView \
73 slideshow/source/engine/OGLTrans/mac/OGLTrans_Shaders \
77 $(eval $(call gb_Library_add_objcxxobjects,OGLTrans,\
78 slideshow/source/engine/OGLTrans/mac/OGLTrans_TransitionerImpl \
79 slideshow/source/engine/OGLTrans/mac/OGLTrans_TransitionImpl \
80 , $(gb_LinkTarget_EXCEPTIONFLAGS) \
83 $(eval $(call gb_Library_add_linked_libs,OGLTrans,\
84 Cocoa \
85 GLUT \
86 OpenGL \
89 else ifeq ($(strip $(OS)),WNT)
90 $(eval $(call gb_Library_add_linked_libs,OGLTrans,\
91 gdi32 \
92 glu32 \
93 opengl32 \
96 $(eval $(call gb_Library_add_exception_objects,OGLTrans,\
97 slideshow/source/engine/OGLTrans/win/OGLTrans_Shaders \
98 slideshow/source/engine/OGLTrans/win/OGLTrans_TransitionerImpl \
99 slideshow/source/engine/OGLTrans/win/OGLTrans_TransitionImpl \
102 else
103 $(eval $(call gb_Library_add_exception_objects,OGLTrans,\
104 slideshow/source/engine/OGLTrans/unx/OGLTrans_Shaders \
105 slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionerImpl \
106 slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionImpl \
109 $(eval $(call gb_Library_add_linked_libs,OGLTrans,\
110 GL \
111 GLU \
112 X11 \
114 endif
116 # vim: set noet sw=4 ts=4: