1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22$(eval $(call gb_StaticLibrary_StaticLibrary,sldshw_s))
23
24$(eval $(call gb_StaticLibrary_add_precompiled_header,sldshw_s,$(SRCDIR)/slideshow/inc/pch/precompiled_slideshow))
25
26$(eval $(call gb_StaticLibrary_set_include,sldshw_s,\
27        $$(INCLUDE) \
28	-I$(SRCDIR)/slideshow/source/inc \
29	-I$(SRCDIR)/slideshow/inc/pch \
30))
31
32$(eval $(call gb_StaticLibrary_add_defs,sldshw_s,\
33	-DBOOST_SPIRIT_USE_OLD_NAMESPACE \
34))
35
36# FIXME: no way to set CFLAGSWARNCXX any more! Comment was:
37# SunStudio12: anachronism warning in boost code (smilfunctionparser.cxx)
38# reevaluate with newer boost or compiler version
39#ifeq ($(OS),SOLARIS)
40#ifeq ($(CCNUMVER),00050009)
41#$(eval $(call gb_StaticLibrary_add_cxxflags,sldshw_s,\
42#	badargtype2w
43#))
44#endif
45#endif
46
47$(eval $(call gb_StaticLibrary_add_api,sldshw_s,\
48	offapi \
49	udkapi \
50))
51
52$(eval $(call gb_StaticLibrary_add_exception_objects,sldshw_s,\
53	slideshow/source/engine/transitions/barwipepolypolygon \
54	slideshow/source/engine/transitions/boxwipe \
55	slideshow/source/engine/transitions/clippingfunctor \
56	slideshow/source/engine/transitions/combtransition \
57	slideshow/source/engine/transitions/fourboxwipe \
58	slideshow/source/engine/transitions/barndoorwipe \
59	slideshow/source/engine/transitions/iriswipe \
60	slideshow/source/engine/transitions/veewipe \
61	slideshow/source/engine/transitions/ellipsewipe \
62	slideshow/source/engine/transitions/checkerboardwipe \
63	slideshow/source/engine/transitions/randomwipe \
64	slideshow/source/engine/transitions/waterfallwipe \
65	slideshow/source/engine/transitions/clockwipe \
66	slideshow/source/engine/transitions/fanwipe \
67	slideshow/source/engine/transitions/pinwheelwipe \
68	slideshow/source/engine/transitions/snakewipe \
69	slideshow/source/engine/transitions/spiralwipe \
70	slideshow/source/engine/transitions/sweepwipe \
71	slideshow/source/engine/transitions/figurewipe \
72	slideshow/source/engine/transitions/doublediamondwipe \
73	slideshow/source/engine/transitions/zigzagwipe \
74	slideshow/source/engine/transitions/parametricpolypolygonfactory \
75	slideshow/source/engine/transitions/shapetransitionfactory \
76	slideshow/source/engine/transitions/slidetransitionfactory \
77	slideshow/source/engine/transitions/transitionfactorytab \
78	slideshow/source/engine/transitions/transitiontools \
79	slideshow/source/engine/transitions/slidechangebase \
80	slideshow/source/engine/activities/activitybase \
81	slideshow/source/engine/activities/activitiesfactory \
82	slideshow/source/engine/activities/continuousactivitybase \
83	slideshow/source/engine/activities/continuouskeytimeactivitybase \
84	slideshow/source/engine/activities/discreteactivitybase \
85	slideshow/source/engine/activities/simplecontinuousactivitybase \
86	slideshow/source/engine/animationnodes/animationaudionode \
87	slideshow/source/engine/animationnodes/animationcommandnode \
88	slideshow/source/engine/animationnodes/animationbasenode \
89	slideshow/source/engine/animationnodes/animationcolornode \
90	slideshow/source/engine/animationnodes/animationnodefactory \
91	slideshow/source/engine/animationnodes/animationpathmotionnode \
92	slideshow/source/engine/animationnodes/animationsetnode \
93	slideshow/source/engine/animationnodes/animationtransformnode \
94	slideshow/source/engine/animationnodes/animationtransitionfilternode \
95	slideshow/source/engine/animationnodes/basecontainernode \
96	slideshow/source/engine/animationnodes/basenode \
97	slideshow/source/engine/animationnodes/nodetools \
98	slideshow/source/engine/animationnodes/paralleltimecontainer \
99	slideshow/source/engine/animationnodes/propertyanimationnode \
100	slideshow/source/engine/animationnodes/sequentialtimecontainer \
101	slideshow/source/engine/animationnodes/generateevent \
102	slideshow/source/engine/shapes/appletshape \
103	slideshow/source/engine/shapes/backgroundshape \
104	slideshow/source/engine/shapes/drawinglayeranimation \
105	slideshow/source/engine/shapes/drawshape \
106	slideshow/source/engine/shapes/drawshapesubsetting \
107	slideshow/source/engine/shapes/externalshapebase \
108	slideshow/source/engine/shapes/gdimtftools \
109	slideshow/source/engine/shapes/intrinsicanimationactivity \
110	slideshow/source/engine/shapes/mediashape \
111	slideshow/source/engine/shapes/shapeimporter \
112	slideshow/source/engine/shapes/viewappletshape \
113	slideshow/source/engine/shapes/viewbackgroundshape \
114	slideshow/source/engine/shapes/viewmediashape \
115	slideshow/source/engine/shapes/viewshape \
116	slideshow/source/engine/slide/layer \
117	slideshow/source/engine/slide/layermanager \
118	slideshow/source/engine/slide/shapemanagerimpl \
119	slideshow/source/engine/slide/slideanimations \
120	slideshow/source/engine/slide/slideimpl \
121	slideshow/source/engine/slide/userpaintoverlay \
122	slideshow/source/engine/activitiesqueue \
123	slideshow/source/engine/animatedsprite \
124	slideshow/source/engine/animationfactory \
125	slideshow/source/engine/attributemap \
126	slideshow/source/engine/color \
127	slideshow/source/engine/delayevent \
128	slideshow/source/engine/effectrewinder \
129	slideshow/source/engine/eventmultiplexer \
130	slideshow/source/engine/eventqueue \
131	slideshow/source/engine/expressionnodefactory \
132	slideshow/source/engine/rehearsetimingsactivity \
133	slideshow/source/engine/screenupdater \
134	slideshow/source/engine/shapeattributelayer \
135	slideshow/source/engine/shapesubset \
136	slideshow/source/engine/slidebitmap \
137	slideshow/source/engine/slideshowcontext \
138	slideshow/source/engine/slideshowimpl \
139	slideshow/source/engine/slideview \
140	slideshow/source/engine/soundplayer \
141	slideshow/source/engine/tools \
142	slideshow/source/engine/unoviewcontainer \
143	slideshow/source/engine/usereventqueue \
144	slideshow/source/engine/waitsymbol \
145	slideshow/source/engine/wakeupevent \
146	slideshow/source/engine/debug \
147))
148
149ifeq ($(DEBUG),TRUE)
150$(eval $(call gb_StaticLibrary_add_exception_objects,sldshw_s,\
151	slideshow/source/engine/sp_debug \
152))
153endif
154
155# Disable optimization for SunCC Sparc (funny loops
156# when parsing e.g. "x+width/2")
157# Do not disable optimization for SunCC++ 5.5 Solaris x86,
158# this compiler has an ICE on smilfunctionparser.cxx *without*
159# optimization
160ifeq ($(OS)$(CPU),SOLARISS)
161$(eval $(call gb_StaticLibrary_add_cxxobjects,sldshw_s,\
162	slideshow/source/engine/smilfunctionparser \
163	, $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
164))
165else
166# same issue for MACOSX
167ifeq ($(OS),MACOSX)
168$(eval $(call gb_StaticLibrary_add_cxxobjects,sldshw_s,\
169	slideshow/source/engine/smilfunctionparser \
170	, $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
171))
172else
173$(eval $(call gb_StaticLibrary_add_exception_objects,sldshw_s,\
174	slideshow/source/engine/smilfunctionparser \
175))
176endif
177endif
178
179
180
181# vim: set noet sw=4 ts=4:
182