Bump version to 4.1-6
[LibreOffice.git] / vcl / Library_vcl.mk
blobcff99f6c9f91fb9af0339c874130f7453def4d34
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/.
9 # This file incorporates work covered by the following license notice:
11 # Licensed to the Apache Software Foundation (ASF) under one or more
12 # contributor license agreements. See the NOTICE file distributed
13 # with this work for additional information regarding copyright
14 # ownership. The ASF licenses this file to you under the Apache
15 # License, Version 2.0 (the "License"); you may not use this file
16 # except in compliance with the License. You may obtain a copy of
17 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 $(eval $(call gb_Library_Library,vcl))
22 ifeq ($(OS),MACOSX)
23 $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.macosx))
24 else ifeq ($(OS),WNT)
25 $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.windows))
26 else ifeq ($(OS),ANDROID)
27 $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.android))
28 else ifeq ($(OS),IOS)
29 $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.ios))
30 else ifeq ($(GUIBASE),headless)
31 $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.headless))
32 else
33 $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.unx))
34 endif
36 $(eval $(call gb_Library_set_precompiled_header,vcl,$(SRCDIR)/vcl/inc/pch/precompiled_vcl))
38 $(eval $(call gb_Library_use_custom_headers,vcl,vcl/generic/fontmanager))
40 $(eval $(call gb_Library_set_include,vcl,\
41 $$(INCLUDE) \
42 -I$(SRCDIR)/vcl/inc \
43 $(if $(filter WNTGCC,$(OS)$(COM)),-I$(SRCDIR)/external/wine/include) \
46 $(eval $(call gb_Library_add_defs,vcl,\
47 -DVCL_DLLIMPLEMENTATION \
48 -DCUI_DLL_NAME=\"$(call gb_Library_get_runtime_filename,cui)\" \
49 -DDLLPOSTFIX=$(gb_Library_DLLPOSTFIX) \
52 $(eval $(call gb_Library_use_sdk_api,vcl))
54 $(eval $(call gb_Library_use_custom_headers,vcl,\
55 officecfg/registry \
58 $(eval $(call gb_Library_use_externals,vcl,\
59 jpeg \
60 nss3 \
63 $(eval $(call gb_Library_use_libraries,vcl,\
64 svl \
65 tl \
66 utl \
67 sot \
68 ucbhelper \
69 basegfx \
70 comphelper \
71 cppuhelper \
72 i18nlangtag \
73 i18nutil \
74 cppu \
75 sal \
76 xmlreader \
77 $(gb_UWINAPI) \
80 ifeq ($(OS),MACOSX)
81 $(eval $(call gb_Library_add_libs,vcl,\
82 -framework IOKit \
83 -framework ApplicationServices \
84 -lobjc \
86 endif
88 ifeq ($(SOLAR_JAVA),TRUE)
89 $(eval $(call gb_Library_use_libraries,vcl,\
90 jvmaccess \
92 endif
94 $(eval $(call gb_Library_use_externals,vcl,\
95 boost_headers \
96 gio \
97 harfbuzz \
98 icule \
99 icuuc \
100 icu_headers \
101 lcms2 \
104 $(eval $(call gb_Library_add_exception_objects,vcl,\
105 vcl/source/app/brand \
106 vcl/source/app/dbggui \
107 vcl/source/app/dndhelp \
108 vcl/source/app/help \
109 vcl/source/app/i18nhelp \
110 vcl/source/app/idlemgr \
111 vcl/source/app/salvtables \
112 vcl/source/app/session \
113 vcl/source/app/settings \
114 vcl/source/app/solarmutex \
115 vcl/source/app/sound \
116 vcl/source/app/stdtext \
117 vcl/source/app/svapp \
118 vcl/source/app/svdata \
119 vcl/source/app/svmain \
120 vcl/source/app/svmainhook \
121 vcl/source/app/timer \
122 vcl/source/app/unohelp2 \
123 vcl/source/app/unohelp \
124 vcl/source/app/vclevent \
125 vcl/source/components/dtranscomp \
126 vcl/source/components/factory \
127 vcl/source/components/fontident \
128 vcl/source/control/button \
129 vcl/source/control/combobox \
130 vcl/source/control/ctrl \
131 vcl/source/control/edit \
132 vcl/source/control/field2 \
133 vcl/source/control/field \
134 vcl/source/control/fixed \
135 vcl/source/control/fixedhyper \
136 vcl/source/control/group \
137 vcl/source/control/ilstbox \
138 vcl/source/control/imgctrl \
139 vcl/source/control/longcurr \
140 vcl/source/control/lstbox \
141 vcl/source/control/menubtn \
142 vcl/source/control/morebtn \
143 vcl/source/control/quickselectionengine \
144 vcl/source/control/prgsbar \
145 vcl/source/control/scrbar \
146 vcl/source/control/slider \
147 vcl/source/control/spinbtn \
148 vcl/source/control/spinfld \
149 vcl/source/control/tabctrl \
150 vcl/source/control/throbber \
151 vcl/source/edit/vclmedit \
152 vcl/source/edit/textdata \
153 vcl/source/edit/textdoc \
154 vcl/source/edit/texteng \
155 vcl/source/edit/textundo \
156 vcl/source/edit/textview \
157 vcl/source/edit/txtattr \
158 vcl/source/edit/xtextedt \
159 vcl/source/filter/FilterConfigCache \
160 vcl/source/filter/FilterConfigItem \
161 vcl/source/filter/graphicfilter \
162 vcl/source/filter/graphicfilter2 \
163 vcl/source/filter/GraphicNativeTransform \
164 vcl/source/filter/GraphicNativeMetadata \
165 vcl/source/filter/sgfbram \
166 vcl/source/filter/sgvmain \
167 vcl/source/filter/sgvspln \
168 vcl/source/filter/sgvtext \
169 vcl/source/filter/igif/decode \
170 vcl/source/filter/igif/gifread \
171 vcl/source/filter/ixbm/xbmread \
172 vcl/source/filter/ixpm/xpmread \
173 vcl/source/filter/jpeg/Exif \
174 vcl/source/filter/jpeg/jpeg \
175 vcl/source/filter/jpeg/JpegReader \
176 vcl/source/filter/jpeg/JpegWriter \
177 vcl/source/filter/jpeg/JpegTransform \
178 vcl/source/filter/wmf/emfwr \
179 vcl/source/filter/wmf/enhwmf \
180 vcl/source/filter/wmf/winmtf \
181 vcl/source/filter/wmf/winwmf \
182 vcl/source/filter/wmf/wmf \
183 vcl/source/filter/wmf/wmfwr \
184 vcl/source/fontsubset/cff \
185 vcl/source/fontsubset/fontsubset \
186 vcl/source/fontsubset/gsub \
187 vcl/source/fontsubset/list \
188 vcl/source/fontsubset/sft \
189 vcl/source/fontsubset/ttcr \
190 vcl/source/fontsubset/xlat \
191 vcl/source/gdi/alpha \
192 vcl/source/gdi/animate \
193 vcl/source/gdi/base14 \
194 vcl/source/gdi/bitmap2 \
195 vcl/source/gdi/bitmap3 \
196 vcl/source/gdi/bitmap4 \
197 vcl/source/gdi/bitmap \
198 vcl/source/gdi/bitmapex \
199 vcl/source/gdi/bmpacc2 \
200 vcl/source/gdi/bmpacc3 \
201 vcl/source/gdi/bmpacc \
202 vcl/source/gdi/bmpconv \
203 vcl/source/gdi/bmpfast \
204 vcl/source/gdi/configsettings \
205 vcl/source/gdi/cvtgrf \
206 vcl/source/gdi/cvtsvm \
207 vcl/source/gdi/embeddedfontshelper \
208 vcl/source/gdi/extoutdevdata \
209 vcl/source/gdi/font \
210 vcl/source/gdi/gdimtf \
211 vcl/source/gdi/gfxlink \
212 vcl/source/gdi/gradient \
213 vcl/source/gdi/graph \
214 vcl/source/gdi/graphictools \
215 vcl/source/gdi/hatch \
216 vcl/source/gdi/image \
217 vcl/source/gdi/imagerepository \
218 vcl/source/gdi/impanmvw \
219 vcl/source/gdi/impbmp \
220 vcl/source/gdi/impgraph \
221 vcl/source/gdi/impimage \
222 vcl/source/gdi/impimagetree \
223 vcl/source/gdi/impvect \
224 vcl/source/gdi/jobset \
225 vcl/source/gdi/lineinfo \
226 vcl/source/gdi/mapmod \
227 vcl/source/gdi/metaact \
228 vcl/source/gdi/metric \
229 vcl/source/gdi/octree \
230 vcl/source/gdi/oldprintadaptor \
231 vcl/source/gdi/outdev2 \
232 vcl/source/gdi/outdev3 \
233 vcl/source/gdi/outdev4 \
234 vcl/source/gdi/outdev5 \
235 vcl/source/gdi/outdev6 \
236 vcl/source/gdi/outdev \
237 vcl/source/gdi/outdevnative \
238 vcl/source/gdi/outmap \
239 vcl/source/gdi/pdfextoutdevdata \
240 vcl/source/gdi/pdffontcache \
241 vcl/source/gdi/pdfwriter \
242 vcl/source/gdi/pdfwriter_impl2 \
243 vcl/source/gdi/pdfwriter_impl \
244 vcl/source/gdi/pngread \
245 vcl/source/gdi/pngwrite \
246 vcl/source/gdi/print2 \
247 vcl/source/gdi/print3 \
248 vcl/source/gdi/print \
249 vcl/source/gdi/regband \
250 vcl/source/gdi/region \
251 vcl/source/gdi/salgdilayout \
252 vcl/source/gdi/sallayout \
253 vcl/source/gdi/salmisc \
254 vcl/source/gdi/salnativewidgets-none \
255 vcl/source/gdi/svgdata \
256 vcl/source/gdi/textlayout \
257 vcl/source/gdi/virdev \
258 vcl/source/gdi/wall \
259 vcl/source/helper/canvasbitmap \
260 vcl/source/helper/canvastools \
261 vcl/source/helper/evntpost \
262 vcl/source/helper/lazydelete \
263 vcl/source/helper/strhelper \
264 vcl/source/helper/threadex \
265 vcl/source/helper/xconnection \
266 vcl/source/window/abstdlg \
267 vcl/source/window/accel \
268 vcl/source/window/accmgr \
269 vcl/source/window/brdwin \
270 vcl/source/window/btndlg \
271 vcl/source/window/builder \
272 vcl/source/window/cmdevt \
273 vcl/source/window/cursor \
274 vcl/source/window/decoview \
275 vcl/source/window/dialog \
276 vcl/source/window/dlgctrl \
277 vcl/source/window/dndevdis \
278 vcl/source/window/dndlcon \
279 vcl/source/window/dockingarea \
280 vcl/source/window/dockmgr \
281 vcl/source/window/dockwin \
282 vcl/source/window/floatwin \
283 vcl/source/window/introwin \
284 vcl/source/window/keycod \
285 vcl/source/window/keyevent \
286 vcl/source/window/layout \
287 vcl/source/window/menu \
288 vcl/source/window/mnemonic \
289 vcl/source/window/mnemonicengine \
290 vcl/source/window/mouseevent \
291 vcl/source/window/msgbox \
292 vcl/source/window/popupmenuwindow \
293 vcl/source/window/printdlg \
294 vcl/source/window/scrwnd \
295 vcl/source/window/seleng \
296 vcl/source/window/split \
297 vcl/source/window/splitwin \
298 vcl/source/window/status \
299 vcl/source/window/syschild \
300 vcl/source/window/syswin \
301 vcl/source/window/tabdlg \
302 vcl/source/window/tabpage \
303 vcl/source/window/taskpanelist \
304 vcl/source/window/toolbox2 \
305 vcl/source/window/toolbox \
306 vcl/source/window/window2 \
307 vcl/source/window/window3 \
308 vcl/source/window/window \
309 vcl/source/window/winproc \
310 vcl/source/window/wrkwin \
313 $(eval $(call gb_Library_add_cobjects,vcl,\
314 vcl/source/filter/jpeg/jpegc \
315 vcl/source/filter/jpeg/transupp \
318 # optional parts
320 ## handle Graphite
321 ifeq ($(ENABLE_GRAPHITE),TRUE)
322 # add graphite sources for all platforms
323 $(eval $(call gb_Library_add_exception_objects,vcl,\
324 vcl/source/glyphs/graphite_features \
325 vcl/source/glyphs/graphite_layout \
328 # handle X11 platforms, which have additional files and possibly system graphite
329 ifeq ($(GUIBASE),unx)
330 $(eval $(call gb_Library_add_exception_objects,vcl,\
331 vcl/generic/glyphs/graphite_serverfont \
333 endif
334 ifeq ($(GUIBASE),headless)
335 $(eval $(call gb_Library_add_exception_objects,vcl,\
336 vcl/generic/glyphs/graphite_serverfont \
338 endif
340 $(eval $(call gb_Library_use_external,vcl,graphite))
342 endif
344 vcl_quartz_code= \
345 vcl/quartz/salbmp \
346 vcl/quartz/utils \
348 vcl_coretext_code= \
349 vcl/coretext/ctfonts \
350 vcl/coretext/ctlayout \
351 vcl/coretext/salgdi2 \
353 # GUIBASE specific stuff
355 ifeq ($(OS),MACOSX)
357 $(eval $(call gb_Library_add_cxxflags,vcl,\
358 $(gb_OBJCXXFLAGS) \
361 $(eval $(call gb_Library_add_defs,vcl,\
362 -DMACOSX_BUNDLE_IDENTIFIER=\"$(MACOSX_BUNDLE_IDENTIFIER)\" \
365 ifeq ($(ENABLE_CORETEXT),YES)
367 $(eval $(call gb_Library_add_defs,vcl,\
368 -DENABLE_CORETEXT \
371 $(eval $(call gb_Library_add_exception_objects,vcl,\
372 $(vcl_coretext_code) \
375 ifeq ($(MACOSX_SDK_VERSION),1080)
376 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
377 ApplicationServices \
379 else
380 ifeq ($(MACOSX_SDK_VERSION),1070)
381 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
382 ApplicationServices \
384 else
385 ifeq ($(MACOSX_SDK_VERSION),1060)
386 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
387 ApplicationServices \
389 else
390 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
391 CoreText \
393 endif
394 endif
395 endif
397 else # ATSUI
399 $(eval $(call gb_Library_add_exception_objects,vcl,\
400 vcl/aqua/source/gdi/atsui/salatslayout \
401 vcl/aqua/source/gdi/atsui/salatsuifontutils \
402 vcl/aqua/source/gdi/atsui/salgdi \
404 endif
406 $(eval $(call gb_Library_add_objcxxobjects,vcl,\
407 vcl/aqua/source/a11y/aqua11yactionwrapper \
408 vcl/aqua/source/a11y/aqua11ycomponentwrapper \
409 vcl/aqua/source/a11y/aqua11yfactory \
410 vcl/aqua/source/a11y/aqua11yrolehelper \
411 vcl/aqua/source/a11y/aqua11yselectionwrapper \
412 vcl/aqua/source/a11y/aqua11ytablewrapper \
413 vcl/aqua/source/a11y/aqua11ytextattributeswrapper \
414 vcl/aqua/source/a11y/aqua11ytextwrapper \
415 vcl/aqua/source/a11y/aqua11yutil \
416 vcl/aqua/source/a11y/aqua11yvaluewrapper \
417 vcl/aqua/source/a11y/aqua11ywrapper \
418 vcl/aqua/source/a11y/aqua11ywrapperbutton \
419 vcl/aqua/source/a11y/aqua11ywrappercheckbox \
420 vcl/aqua/source/a11y/aqua11ywrappercombobox \
421 vcl/aqua/source/a11y/aqua11ywrappergroup \
422 vcl/aqua/source/a11y/aqua11ywrapperlist \
423 vcl/aqua/source/a11y/aqua11ywrapperradiobutton \
424 vcl/aqua/source/a11y/aqua11ywrapperradiogroup \
425 vcl/aqua/source/a11y/aqua11ywrapperrow \
426 vcl/aqua/source/a11y/aqua11ywrapperscrollarea \
427 vcl/aqua/source/a11y/aqua11ywrapperscrollbar \
428 vcl/aqua/source/a11y/aqua11ywrappersplitter \
429 vcl/aqua/source/a11y/aqua11ywrapperstatictext \
430 vcl/aqua/source/a11y/aqua11ywrappertabgroup \
431 vcl/aqua/source/a11y/aqua11ywrappertextarea \
432 vcl/aqua/source/a11y/aqua11ywrappertoolbar \
433 vcl/aqua/source/app/salnstimer \
434 vcl/aqua/source/app/vclnsapp \
435 vcl/aqua/source/gdi/aquaprintaccessoryview \
436 vcl/aqua/source/gdi/aquaprintview \
437 vcl/aqua/source/window/salframeview \
438 vcl/aqua/source/window/salnsmenu \
440 $(eval $(call gb_Library_add_exception_objects,vcl,\
441 vcl/aqua/source/a11y/aqua11yfocuslistener \
442 vcl/aqua/source/a11y/aqua11yfocustracker \
443 vcl/aqua/source/a11y/aqua11ylistener \
444 vcl/aqua/source/a11y/documentfocuslistener \
445 vcl/aqua/source/app/saldata \
446 vcl/aqua/source/app/salinst \
447 vcl/aqua/source/app/salsys \
448 vcl/aqua/source/app/saltimer \
449 vcl/aqua/source/dtrans/DataFlavorMapping \
450 vcl/aqua/source/dtrans/DragActionConversion \
451 vcl/aqua/source/dtrans/DragSource \
452 vcl/aqua/source/dtrans/DragSourceContext \
453 vcl/aqua/source/dtrans/DropTarget \
454 vcl/aqua/source/dtrans/HtmlFmtFlt \
455 vcl/aqua/source/dtrans/OSXTransferable \
456 vcl/aqua/source/dtrans/PictToBmpFlt \
457 vcl/aqua/source/dtrans/aqua_clipboard \
458 vcl/aqua/source/dtrans/service_entry \
459 $(vcl_quartz_code) \
460 vcl/aqua/source/gdi/salgdicommon \
461 vcl/aqua/source/gdi/salgdiutils \
462 vcl/aqua/source/gdi/salmathutils \
463 vcl/aqua/source/gdi/salnativewidgets \
464 vcl/aqua/source/gdi/salprn \
465 vcl/aqua/source/gdi/salvd \
466 vcl/aqua/source/window/salframe \
467 vcl/aqua/source/window/salmenu \
468 vcl/aqua/source/window/salobj \
470 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
471 $(if $(filter X86_64,$(CPUNAME)),,QuickTime) \
472 Cocoa \
473 Carbon \
474 CoreFoundation \
477 ifneq ($(ENABLE_MACOSX_SANDBOX),YES)
478 $(eval $(call gb_Library_use_libraries,vcl,\
479 AppleRemote \
481 endif
483 endif
485 vcl_really_generic_code= \
486 vcl/generic/app/gensys \
487 vcl/generic/app/geninst \
489 vcl_generic_code= \
490 $(vcl_really_generic_code) \
491 vcl/generic/app/gendisp \
492 vcl/generic/print/bitmap_gfx \
493 vcl/generic/print/common_gfx \
494 vcl/generic/print/glyphset \
495 vcl/generic/print/printerjob \
496 vcl/generic/print/psputil \
497 vcl/generic/print/genpspgraphics \
498 vcl/generic/print/genprnpsp \
499 vcl/generic/print/text_gfx \
500 vcl/generic/fontmanager/fontsubst \
501 vcl/generic/glyphs/gcach_ftyp \
502 vcl/generic/glyphs/gcach_layout \
503 vcl/generic/glyphs/gcach_rbmp \
504 vcl/generic/glyphs/glyphcache \
505 vcl/generic/fontmanager/fontcache \
506 vcl/generic/fontmanager/fontconfig \
507 vcl/generic/fontmanager/fontmanager \
508 vcl/generic/fontmanager/helper \
509 vcl/generic/fontmanager/parseAFM \
511 vcl_headless_code= \
512 vcl/headless/svpbmp \
513 vcl/headless/svpdummies \
514 vcl/headless/svpelement \
515 vcl/headless/svpframe \
516 vcl/headless/svpgdi \
517 vcl/headless/svpinst \
518 vcl/headless/svpdata \
519 vcl/headless/svpvd \
521 vcl_headless_freetype_code=\
522 vcl/headless/svpprn \
523 vcl/headless/svptext \
525 ifeq ($(GUIBASE),unx)
526 $(eval $(call gb_Library_add_defs,vcl,\
527 -DSAL_DLLPREFIX=\"$(gb_Library_SYSPRE)\" \
528 -DSAL_DLLPOSTFIX=\"$(gb_Library_OOOEXT)\" \
529 -D_XSALSET_LIBNAME=\"$(call gb_Library_get_runtime_filename,spa)\" \
531 $(eval $(call gb_Library_add_exception_objects,vcl,\
532 $(vcl_generic_code) \
533 vcl/unx/generic/plugadapt/salplug \
534 vcl/unx/generic/printer/jobdata \
535 vcl/unx/generic/printer/ppdparser \
536 $(if $(filter TRUE,$(ENABLE_CUPS)),\
537 vcl/unx/generic/printer/cupsmgr \
538 vcl/unx/generic/printer/printerinfomanager \
540 vcl/null/printerinfomanager \
543 $(eval $(call gb_Library_use_externals,vcl,\
544 cups \
545 dbus \
546 fontconfig \
547 freetype \
548 valgrind \
549 x11extensions \
551 endif
553 ifeq ($(GUIBASE),headless)
554 $(eval $(call gb_Library_add_defs,vcl,\
555 -DSAL_DLLPREFIX=\"$(gb_Library_SYSPRE)\" \
556 -DSAL_DLLPOSTFIX=\"$(gb_Library_OOOEXT)\" \
557 -D_XSALSET_LIBNAME=\"$(call gb_Library_get_runtime_filename,spa)\" \
559 $(eval $(call gb_Library_add_exception_objects,vcl,\
560 $(vcl_generic_code) \
561 vcl/unx/generic/printer/jobdata \
562 vcl/unx/generic/printer/ppdparser \
563 vcl/null/printerinfomanager \
564 vcl/headless/headlessinst \
565 $(vcl_headless_code) \
566 $(vcl_headless_freetype_code) \
569 $(eval $(call gb_Library_use_libraries,vcl,\
570 basebmp \
573 $(eval $(call gb_Library_use_externals,vcl,\
574 fontconfig \
575 freetype \
577 endif
579 ifeq ($(OS),ANDROID)
580 $(eval $(call gb_Library_add_libs,vcl,\
581 -llog \
582 -landroid \
583 -llo-bootstrap \
585 $(eval $(call gb_Library_add_defs,vcl,\
586 -DSAL_DLLPREFIX=\"$(gb_Library_SYSPRE)\" \
587 -DSAL_DLLPOSTFIX=\"$(gb_Library_OOOEXT)\" \
588 -D_XSALSET_LIBNAME=\"$(call gb_Library_get_runtime_filename,spa)\" \
590 $(eval $(call gb_Library_add_exception_objects,vcl,\
591 $(vcl_generic_code) \
592 vcl/unx/generic/printer/jobdata \
593 vcl/unx/generic/printer/ppdparser \
594 vcl/null/printerinfomanager \
595 vcl/android/androidinst \
596 $(vcl_headless_code) \
597 $(vcl_headless_freetype_code) \
600 $(eval $(call gb_Library_use_static_libraries,vcl,\
601 basebmp \
604 $(eval $(call gb_Library_use_externals,vcl,\
605 fontconfig \
606 freetype \
607 expat \
609 endif
611 ifeq ($(OS),IOS)
612 $(eval $(call gb_Library_add_cxxflags,vcl,\
613 $(gb_OBJCXXFLAGS) \
615 $(eval $(call gb_Library_add_exception_objects,vcl,\
616 vcl/ios/iosinst \
617 vcl/ios/dummies \
618 $(vcl_really_generic_code) \
619 $(vcl_coretext_code) \
620 $(vcl_quartz_code) \
621 $(vcl_headless_code) \
623 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
624 UIKit \
625 CoreFoundation \
627 endif
629 # OS-specific stuff
631 ifeq ($(OS),WNT)
632 $(eval $(call gb_Library_add_exception_objects,vcl,\
633 vcl/win/source/app/saldata \
634 vcl/win/source/app/salinfo \
635 vcl/win/source/app/salinst \
636 vcl/win/source/app/salshl \
637 vcl/win/source/app/saltimer \
638 vcl/win/source/gdi/salbmp \
639 vcl/win/source/gdi/salgdi \
640 vcl/win/source/gdi/salgdi2 \
641 vcl/win/source/gdi/salgdi3 \
642 vcl/win/source/gdi/salgdi_gdiplus \
643 vcl/win/source/gdi/salnativewidgets-luna \
644 vcl/win/source/gdi/salprn \
645 vcl/win/source/gdi/salvd \
646 vcl/win/source/gdi/winlayout \
647 vcl/win/source/gdi/wntgdi \
648 vcl/win/source/window/salframe \
649 vcl/win/source/window/keynames \
650 vcl/win/source/window/salmenu \
651 vcl/win/source/window/salobj \
654 $(eval $(call gb_Library_use_system_win32_libs,vcl,\
655 advapi32 \
656 gdi32 \
657 gdiplus \
658 imm32 \
659 mpr \
660 msimg32 \
661 ole32 \
662 shell32 \
663 usp10 \
664 uuid \
665 version \
666 winspool \
667 shlwapi \
670 $(eval $(call gb_Library_add_nativeres,vcl,vcl/salsrc))
672 ifeq ($(COM),MSC)
673 ifeq ($(USE_MINGW),)
674 $(eval $(call gb_Library_add_ldflags,vcl,\
675 /ENTRY:LibMain@12 \
677 endif
678 endif
679 endif
681 ifeq ($(OS),LINUX)
682 $(eval $(call gb_Library_add_libs,vcl,\
683 -lm \
684 -ldl \
685 -lpthread \
687 endif
689 ifeq ($(OS),SOLARIS)
690 ifeq ($(CPUNAME)$(CPU),SPARCU)
691 $(eval $(call gb_Library_add_ldflags,vcl,\
692 -R/usr/sfw/lib/64 \
694 else
695 $(eval $(call gb_Library_add_ldflags,vcl,\
696 -R/usr/sfw/lib \
698 endif
699 endif
701 # Runtime dependency for unit-tests
702 $(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,vcl)) :| \
703 $(call gb_AllLangResTarget_get_target,vcl)
705 # vim: set noet sw=4 ts=4: