xref: /AOO41X/main/svtools/Library_svt.mk (revision 08bb353fd11fc717992518715b94eebe68cb725c)
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
23
24$(eval $(call gb_Library_Library,svt))
25
26$(eval $(call gb_Library_add_package_headers,svt,svtools_inc))
27
28$(eval $(call gb_Library_add_precompiled_header,svt,$(SRCDIR)/svtools/inc/pch/precompiled_svtools))
29
30$(eval $(call gb_Library_set_componentfile,svt,svtools/util/svt))
31
32$(eval $(call gb_Library_set_include,svt,\
33    -I$(OUTDIR)/inc/external/jpeg \
34    $$(INCLUDE) \
35    -I$(WORKDIR)/inc/svtools \
36    -I$(WORKDIR)/inc/ \
37    -I$(OUTDIR)/inc/ \
38    -I$(SRCDIR)/svtools/inc \
39    -I$(SRCDIR)/svtools/inc/svtools \
40    -I$(SRCDIR)/svtools/source/inc \
41    -I$(SRCDIR)/svtools/inc/pch \
42    -I$(OUTDIR)/inc/offuh \
43))
44
45$(eval $(call gb_Library_set_defs,svt,\
46    $$(DEFS) \
47    -DSVT_DLLIMPLEMENTATION \
48))
49
50$(eval $(call gb_Library_add_linked_libs,svt,\
51    basegfx \
52    comphelper \
53    cppu \
54    cppuhelper \
55    i18nisolang1 \
56    i18nutil \
57    icuuc \
58    jvmfwk \
59    sal \
60    sot \
61    stl \
62    svl \
63    ootk \
64    tl \
65    ucbhelper \
66    utl \
67    vcl \
68    vos3 \
69    $(gb_STDLIBS) \
70))
71
72ifeq ($(SYSTEM_JPEG),YES)
73$(eval $(call gb_Library_add_linked_libs,svt,\
74    jpeg \
75))
76$(eval $(call gb_Library_set_ldflags,svt,\
77    $$(filter-out -L/usr/lib/jvm%,$$(LDFLAGS)) \
78))
79ifeq ($(OS),FREEBSD)
80# JDK jpeg library on FreeBSD lives under ${JAVA_HOME}/jre/lib/${ARCH}/
81$(eval $(call gb_Library_set_ldflags,svt,\
82    $$(filter-out -L$$(JAVA_HOME)/jre/lib/%,$$(LDFLAGS)) \
83))
84endif
85ifeq ($(GUIBASE),os2)
86# YD FIXME above is not working... needs ldflags hack...
87$(eval $(call gb_Library_set_ldflags,svt,\
88    $$(LDFLAGS) \
89    -ljpeg \
90))
91endif
92
93else
94$(eval $(call gb_Library_add_linked_static_libs,svt,\
95    jpeglib \
96))
97endif
98
99$(eval $(call gb_Library_add_exception_objects,svt,\
100    svtools/source/brwbox/brwbox1 \
101    svtools/source/brwbox/brwbox2 \
102    svtools/source/brwbox/brwbox3 \
103    svtools/source/brwbox/brwhead \
104    svtools/source/brwbox/datwin \
105    svtools/source/brwbox/ebbcontrols \
106    svtools/source/brwbox/editbrowsebox \
107    svtools/source/brwbox/editbrowsebox2 \
108    svtools/source/config/accessibilityoptions \
109    svtools/source/config/apearcfg \
110    svtools/source/config/colorcfg \
111    svtools/source/config/extcolorcfg \
112    svtools/source/config/fontsubstconfig \
113    svtools/source/config/helpopt \
114    svtools/source/config/htmlcfg \
115    svtools/source/config/itemholder2 \
116    svtools/source/config/menuoptions \
117    svtools/source/config/miscopt \
118    svtools/source/config/optionsdrawinglayer \
119    svtools/source/config/printoptions \
120    svtools/source/contnr/contentenumeration \
121    svtools/source/contnr/fileview \
122    svtools/source/contnr/imivctl1 \
123    svtools/source/contnr/imivctl2 \
124    svtools/source/contnr/ivctrl \
125    svtools/source/contnr/svicnvw \
126    svtools/source/contnr/svimpbox \
127    svtools/source/contnr/svimpicn \
128    svtools/source/contnr/svlbitm \
129    svtools/source/contnr/svlbox \
130    svtools/source/contnr/svtabbx \
131    svtools/source/contnr/svtreebx \
132    svtools/source/contnr/templwin \
133    svtools/source/contnr/tooltiplbox \
134    svtools/source/contnr/treelist \
135    svtools/source/control/accessibleruler \
136    svtools/source/control/asynclink \
137    svtools/source/control/calendar \
138    svtools/source/control/collatorres \
139    svtools/source/control/ctrlbox \
140    svtools/source/control/ctrltool \
141    svtools/source/control/filectrl \
142    svtools/source/control/filectrl2 \
143    svtools/source/control/fileurlbox \
144    svtools/source/control/fixedhyper \
145    svtools/source/control/fmtfield \
146    svtools/source/control/headbar \
147    svtools/source/control/hyperlabel \
148    svtools/source/control/indexentryres \
149    svtools/source/control/inettbc \
150    svtools/source/control/prgsbar \
151    svtools/source/control/roadmap \
152    svtools/source/control/ruler \
153    svtools/source/control/scriptedtext \
154    svtools/source/control/scrwin \
155    svtools/source/control/stdctrl \
156    svtools/source/control/stdmenu \
157    svtools/source/control/tabbar \
158    svtools/source/control/taskbar \
159    svtools/source/control/taskbox \
160    svtools/source/control/taskmisc \
161    svtools/source/control/taskstat \
162    svtools/source/control/toolbarmenu \
163    svtools/source/control/toolbarmenuacc \
164    svtools/source/control/urlcontrol \
165    svtools/source/control/valueacc \
166    svtools/source/control/valueset \
167    svtools/source/control/vclxaccessibleheaderbar \
168    svtools/source/control/vclxaccessibleheaderbaritem \
169    svtools/source/dialogs/addresstemplate \
170    svtools/source/dialogs/colrdlg \
171    svtools/source/dialogs/filedlg \
172    svtools/source/dialogs/filedlg2 \
173    svtools/source/dialogs/insdlg \
174    svtools/source/dialogs/mcvmath \
175    svtools/source/dialogs/prnsetup \
176    svtools/source/dialogs/property \
177    svtools/source/dialogs/roadmapwizard \
178    svtools/source/dialogs/wizardmachine \
179    svtools/source/dialogs/wizdlg \
180    svtools/source/edit/editsyntaxhighlighter \
181    svtools/source/edit/svmedit \
182    svtools/source/edit/svmedit2 \
183    svtools/source/edit/sychconv \
184    svtools/source/edit/syntaxhighlight \
185    svtools/source/edit/textdata \
186    svtools/source/edit/textdoc \
187    svtools/source/edit/texteng \
188    svtools/source/edit/textundo \
189    svtools/source/edit/textview \
190    svtools/source/edit/textwindowpeer \
191    svtools/source/edit/txtattr \
192    svtools/source/edit/xtextedt \
193    svtools/source/filter/FilterConfigCache \
194    svtools/source/filter/FilterConfigItem \
195    svtools/source/filter/SvFilterOptionsDialog \
196    svtools/source/filter/exportdialog \
197    svtools/source/filter/filter \
198    svtools/source/filter/filter2 \
199    svtools/source/filter/sgfbram \
200    svtools/source/filter/sgvmain \
201    svtools/source/filter/sgvspln \
202    svtools/source/filter/sgvtext \
203    svtools/source/filter/igif/decode \
204    svtools/source/filter/igif/gifread \
205    svtools/source/filter/ixbm/xbmread \
206    svtools/source/filter/ixpm/xpmread \
207    svtools/source/filter/jpeg/jpeg \
208    svtools/source/filter/wmf/emfwr \
209    svtools/source/filter/wmf/enhwmf \
210    svtools/source/filter/wmf/winmtf \
211    svtools/source/filter/wmf/winwmf \
212    svtools/source/filter/wmf/wmf \
213    svtools/source/filter/wmf/wmfwr \
214    svtools/source/graphic/descriptor \
215    svtools/source/graphic/graphic \
216    svtools/source/graphic/graphicunofactory \
217    svtools/source/graphic/grfattr \
218    svtools/source/graphic/grfcache \
219    svtools/source/graphic/grfmgr \
220    svtools/source/graphic/grfmgr2 \
221    svtools/source/graphic/provider \
222    svtools/source/graphic/renderer \
223    svtools/source/graphic/transformer \
224    svtools/source/java/javacontext \
225    svtools/source/java/javainteractionhandler \
226    svtools/source/misc/acceleratorexecute \
227    svtools/source/misc/cliplistener \
228    svtools/source/misc/dialogclosedlistener \
229    svtools/source/misc/dialogcontrolling \
230    svtools/source/misc/ehdl \
231    svtools/source/misc/embedhlp \
232    svtools/source/misc/embedtransfer \
233    svtools/source/misc/helpagentwindow \
234    svtools/source/misc/imagemgr \
235    svtools/source/misc/imageresourceaccess \
236    svtools/source/misc/imap \
237    svtools/source/misc/imap2 \
238    svtools/source/misc/imap3 \
239    svtools/source/misc/itemdel \
240    svtools/source/misc/langtab \
241    svtools/source/misc/stringtransfer \
242    svtools/source/misc/svtaccessiblefactory \
243    svtools/source/misc/svtdata \
244    svtools/source/misc/templatefoldercache \
245    svtools/source/misc/transfer \
246    svtools/source/misc/transfer2 \
247    svtools/source/misc/unitconv \
248    svtools/source/misc/wallitem \
249    svtools/source/misc/xwindowitem \
250    svtools/source/plugapp/ttprops \
251    svtools/source/svhtml/htmlkywd \
252    svtools/source/svhtml/htmlout \
253    svtools/source/svhtml/htmlsupp \
254    svtools/source/svhtml/parhtml \
255    svtools/source/svrtf/parrtf \
256    svtools/source/svrtf/rtfkeywd \
257    svtools/source/svrtf/rtfout \
258    svtools/source/svrtf/svparser \
259    svtools/source/table/defaultinputhandler \
260    svtools/source/table/gridtablerenderer \
261    svtools/source/table/tablecontrol \
262    svtools/source/table/tablecontrol_impl \
263    svtools/source/table/tabledatawindow \
264    svtools/source/table/mousefunction \
265    svtools/source/table/cellvalueconversion \
266    svtools/source/table/tablegeometry \
267    svtools/source/toolpanel/drawerlayouter \
268    svtools/source/toolpanel/dummypanel \
269    svtools/source/toolpanel/paneldecklisteners \
270    svtools/source/toolpanel/paneltabbar \
271    svtools/source/toolpanel/paneltabbarpeer \
272    svtools/source/toolpanel/refbase \
273    svtools/source/toolpanel/tabbargeometry \
274    svtools/source/toolpanel/tablayouter \
275    svtools/source/toolpanel/toolpanel \
276    svtools/source/toolpanel/toolpanelcollection \
277    svtools/source/toolpanel/toolpaneldeck \
278    svtools/source/toolpanel/toolpaneldeckpeer \
279    svtools/source/toolpanel/toolpaneldrawer \
280    svtools/source/toolpanel/toolpaneldrawerpeer \
281    svtools/source/uno/addrtempuno \
282    svtools/source/uno/contextmenuhelper \
283    svtools/source/uno/framestatuslistener \
284    svtools/source/uno/generictoolboxcontroller \
285    svtools/source/uno/genericunodialog \
286    svtools/source/uno/miscservices \
287    svtools/source/uno/popupmenucontrollerbase \
288    svtools/source/uno/popupwindowcontroller \
289    svtools/source/uno/statusbarcontroller \
290    svtools/source/uno/svtxgridcontrol \
291    svtools/source/uno/toolboxcontroller \
292    svtools/source/uno/treecontrolpeer \
293    svtools/source/uno/unocontroltablemodel \
294    svtools/source/uno/unogridcolumnfacade \
295    svtools/source/uno/unoevent \
296    svtools/source/uno/unoiface \
297    svtools/source/uno/unoimap \
298    svtools/source/uno/wizard/unowizard \
299    svtools/source/uno/wizard/wizardpagecontroller \
300    svtools/source/uno/wizard/wizardshell \
301    svtools/source/urlobj/inetimg \
302))
303
304$(eval $(call gb_Library_add_cobjects,svt,\
305    svtools/source/filter/jpeg/jpegc \
306))
307
308ifeq ($(OS),WNT)
309$(eval $(call gb_Library_add_linked_libs,svt,\
310    advapi32 \
311    gdi32 \
312    ole32 \
313    oleaut32 \
314    user32 \
315    uuid \
316))
317endif
318# vim: set noet sw=4 ts=4:
319