tdf#115863: fix TIFF import
[LibreOffice.git] / vcl / Library_vcl.mk
blob0b684c6185a94232fb7c148ef2dd74421198675a
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 ($(ENABLE_HEADLESS),TRUE)
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_set_include,vcl,\
39 $$(INCLUDE) \
40 -I$(SRCDIR)/vcl/inc \
43 $(eval $(call gb_Library_add_defs,vcl,\
44 -DVCL_DLLIMPLEMENTATION \
45 -DDLLIMPLEMENTATION_UITEST \
46 -DCUI_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,cui))\" \
47 -DDESKTOP_DETECTOR_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,desktop_detector))\" \
48 -DTK_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,tk))\" \
49 -DENABLE_MERGELIBS=$(if $(MERGELIBS),1,0) \
52 ifeq ($(SYSTEM_GLM),TRUE)
53 $(eval $(call gb_Library_add_defs,vcl,\
54 -DGLM_ENABLE_EXPERIMENTAL \
56 endif
58 $(eval $(call gb_Library_use_sdk_api,vcl))
60 $(eval $(call gb_Library_use_custom_headers,vcl,\
61 officecfg/registry \
64 $(eval $(call gb_Library_use_externals,vcl,\
65 libjpeg \
66 libeot \
67 $(if $(filter PDFIUM,$(BUILD_TYPE)),pdfium) \
70 $(eval $(call gb_Library_use_libraries,vcl,\
71 $(call gb_Helper_optional,BREAKPAD, \
72 crashreport) \
73 svl \
74 tl \
75 utl \
76 sot \
77 ucbhelper \
78 basegfx \
79 comphelper \
80 cppuhelper \
81 i18nlangtag \
82 i18nutil \
83 $(if $(filter OPENCL,$(BUILD_TYPE)),opencl) \
84 cppu \
85 sal \
86 salhelper \
87 xmlreader \
90 ifeq ($(OS),MACOSX)
91 $(eval $(call gb_Library_add_libs,vcl,\
92 -framework IOKit \
93 -F/System/Library/PrivateFrameworks \
94 -framework CoreUI \
95 -lobjc \
97 endif
98 ifeq ($(OS),MACOSX)
100 $(eval $(call gb_Library_add_cxxflags,vcl,\
101 $(gb_OBJCXXFLAGS) \
104 endif
106 ifeq ($(ENABLE_JAVA),TRUE)
107 $(eval $(call gb_Library_use_libraries,vcl,\
108 jvmaccess \
110 endif
112 $(eval $(call gb_Library_use_externals,vcl,\
113 boost_headers \
114 gio \
115 glm_headers \
116 graphite \
117 harfbuzz \
118 icu_headers \
119 icuuc \
120 lcms2 \
121 mdds_headers \
123 ifeq ($(ENABLE_HEADLESS),)
124 $(eval $(call gb_Library_use_externals,vcl,\
125 epoxy \
127 endif
129 $(eval $(call gb_Library_add_exception_objects,vcl,\
130 vcl/source/window/errinf \
131 vcl/source/window/settings \
132 vcl/source/window/paint \
133 vcl/source/window/abstdlg \
134 vcl/source/window/accel \
135 vcl/source/window/accmgr \
136 vcl/source/window/brdwin \
137 vcl/source/window/accessibility \
138 vcl/source/window/legacyaccessibility \
139 vcl/source/window/clipping \
140 vcl/source/window/stacking \
141 vcl/source/window/debug \
142 vcl/source/window/globalization \
143 vcl/source/window/btndlg \
144 vcl/source/window/builder \
145 vcl/source/window/commandevent \
146 vcl/source/window/cursor \
147 vcl/source/window/debugevent \
148 vcl/source/window/decoview \
149 vcl/source/window/dialog \
150 vcl/source/window/dlgctrl \
151 vcl/source/window/dndeventdispatcher \
152 vcl/source/window/dndlistenercontainer \
153 vcl/source/window/dockingarea \
154 vcl/source/window/dockmgr \
155 vcl/source/window/dockwin \
156 vcl/source/window/event \
157 vcl/source/window/floatwin \
158 vcl/source/window/introwin \
159 vcl/source/window/keycod \
160 vcl/source/window/keyevent \
161 vcl/source/window/layout \
162 vcl/source/window/menu \
163 vcl/source/window/menubarwindow \
164 vcl/source/window/menufloatingwindow \
165 vcl/source/window/menuitemlist \
166 vcl/source/window/menuwindow \
167 vcl/source/window/mnemonic \
168 vcl/source/window/mnemonicengine \
169 vcl/source/window/mouse \
170 vcl/source/window/msgbox \
171 vcl/source/window/popupmenuwindow \
172 vcl/source/window/printdlg \
173 vcl/source/window/scrwnd \
174 vcl/source/window/seleng \
175 vcl/source/window/split \
176 vcl/source/window/splitwin \
177 vcl/source/window/status \
178 vcl/source/window/syschild \
179 vcl/source/window/syswin \
180 vcl/source/window/tabdlg \
181 vcl/source/window/tabpage \
182 vcl/source/window/taskpanelist \
183 vcl/source/window/toolbox2 \
184 vcl/source/window/toolbox \
185 vcl/source/window/window2 \
186 vcl/source/window/window3 \
187 vcl/source/window/window \
188 vcl/source/window/winproc \
189 vcl/source/window/wrkwin \
190 vcl/source/window/EnumContext \
191 vcl/source/control/button \
192 vcl/source/control/combobox \
193 vcl/source/control/ctrl \
194 vcl/source/control/edit \
195 vcl/source/control/field2 \
196 vcl/source/control/field \
197 vcl/source/control/fixed \
198 vcl/source/control/fixedhyper \
199 vcl/source/control/group \
200 vcl/source/control/imgctrl \
201 vcl/source/control/listctrl \
202 vcl/source/control/longcurr \
203 vcl/source/control/imp_listbox \
204 vcl/source/control/listbox \
205 vcl/source/control/menubtn \
206 vcl/source/control/morebtn \
207 vcl/source/control/notebookbar \
208 vcl/source/control/quickselectionengine \
209 vcl/source/control/prgsbar \
210 vcl/source/control/scrbar \
211 vcl/source/control/slider \
212 vcl/source/control/spinbtn \
213 vcl/source/control/spinfld \
214 vcl/source/control/tabctrl \
215 vcl/source/control/throbber \
216 vcl/source/edit/vclmedit \
217 vcl/source/edit/textdata \
218 vcl/source/edit/textdoc \
219 vcl/source/edit/texteng \
220 vcl/source/edit/textundo \
221 vcl/source/edit/textview \
222 vcl/source/edit/txtattr \
223 vcl/source/edit/xtextedt \
224 vcl/source/outdev/outdev \
225 vcl/source/outdev/outdevstate \
226 vcl/source/outdev/outdevstatestack \
227 vcl/source/outdev/clipping \
228 vcl/source/outdev/polygon \
229 vcl/source/outdev/transparent \
230 vcl/source/outdev/mask \
231 vcl/source/outdev/bitmap \
232 vcl/source/outdev/font \
233 vcl/source/outdev/text \
234 vcl/source/outdev/textline \
235 vcl/source/outdev/pixel \
236 vcl/source/outdev/rect \
237 vcl/source/outdev/line \
238 vcl/source/outdev/polyline \
239 vcl/source/outdev/hatch \
240 vcl/source/outdev/gradient \
241 vcl/source/outdev/curvedshapes \
242 vcl/source/outdev/wallpaper \
243 vcl/source/outdev/vclreferencebase \
244 vcl/source/outdev/nativecontrols \
245 vcl/source/outdev/map \
246 vcl/source/gdi/alpha \
247 vcl/source/gdi/animate \
248 vcl/source/gdi/base14 \
249 vcl/source/gdi/bitmap3 \
250 vcl/source/gdi/bitmap4 \
251 vcl/source/gdi/bitmap \
252 vcl/source/gdi/bitmapex \
253 vcl/source/gdi/bmpacc2 \
254 vcl/source/gdi/bmpacc3 \
255 vcl/source/gdi/bmpacc \
256 vcl/source/gdi/bmpfast \
257 vcl/source/gdi/configsettings \
258 vcl/source/gdi/cvtgrf \
259 vcl/source/gdi/svmconverter \
260 vcl/source/gdi/dibtools \
261 vcl/source/gdi/embeddedfontshelper \
262 vcl/source/gdi/extoutdevdata \
263 vcl/source/gdi/gdimtf \
264 vcl/source/gdi/gdimetafiletools \
265 vcl/source/gdi/gfxlink \
266 vcl/source/gdi/gradient \
267 vcl/source/gdi/graph \
268 vcl/source/gdi/graphictools \
269 vcl/source/gdi/hatch \
270 vcl/source/gdi/impanmvw \
271 vcl/source/gdi/impbmp \
272 vcl/source/gdi/impgraph \
273 vcl/source/gdi/impvect \
274 vcl/source/gdi/jobset \
275 vcl/source/gdi/lineinfo \
276 vcl/source/gdi/mapmod \
277 vcl/source/gdi/metaact \
278 vcl/source/gdi/octree \
279 vcl/source/gdi/oldprintadaptor \
280 vcl/source/gdi/pdfextoutdevdata \
281 vcl/source/gdi/pdffontcache \
282 vcl/source/gdi/pdfwriter \
283 vcl/source/gdi/pdfwriter_impl2 \
284 vcl/source/gdi/pdfwriter_impl \
285 vcl/source/gdi/pngread \
286 vcl/source/gdi/pngwrite \
287 vcl/source/gdi/print2 \
288 vcl/source/gdi/print3 \
289 vcl/source/gdi/print \
290 vcl/source/gdi/regband \
291 vcl/source/gdi/region \
292 vcl/source/gdi/regionband \
293 vcl/source/gdi/salgdilayout \
294 vcl/source/gdi/salgdiimpl \
295 vcl/source/gdi/sallayout \
296 vcl/source/gdi/salmisc \
297 vcl/source/gdi/salnativewidgets-none \
298 vcl/source/gdi/vectorgraphicdata \
299 vcl/source/gdi/textlayout \
300 vcl/source/gdi/virdev \
301 vcl/source/gdi/wall \
302 vcl/source/gdi/scrptrun \
303 vcl/source/gdi/CommonSalLayout \
304 vcl/source/bitmap/bitmapfilter \
305 vcl/source/bitmap/bitmapscalesuper \
306 vcl/source/bitmap/BitmapScaleConvolution \
307 vcl/source/bitmap/BitmapSymmetryCheck \
308 vcl/source/bitmap/BitmapProcessor \
309 vcl/source/bitmap/BitmapTools \
310 vcl/source/bitmap/checksum \
311 vcl/source/image/Image \
312 vcl/source/image/ImageTree \
313 vcl/source/image/ImageRepository \
314 vcl/source/image/ImplImage \
315 vcl/source/image/ImplImageTree \
316 vcl/source/helper/canvasbitmap \
317 vcl/source/helper/canvastools \
318 vcl/source/helper/commandinfoprovider \
319 vcl/source/helper/displayconnectiondispatch \
320 vcl/source/helper/errcode \
321 vcl/source/helper/evntpost \
322 vcl/source/helper/lazydelete \
323 vcl/source/helper/strhelper \
324 vcl/source/helper/threadex \
325 vcl/source/app/brand \
326 vcl/source/app/dbggui \
327 vcl/source/app/dndhelp \
328 vcl/source/app/help \
329 vcl/source/app/i18nhelp \
330 vcl/source/app/idle \
331 vcl/source/app/salusereventlist \
332 vcl/source/app/salvtables \
333 vcl/source/app/scheduler \
334 vcl/source/app/session \
335 vcl/source/app/settings \
336 vcl/source/app/IconThemeInfo \
337 vcl/source/app/IconThemeScanner \
338 vcl/source/app/IconThemeSelector \
339 vcl/source/app/ITiledRenderable \
340 vcl/source/app/sound \
341 vcl/source/app/stdtext \
342 vcl/source/app/svapp \
343 vcl/source/app/svdata \
344 vcl/source/app/svmain \
345 vcl/source/app/svmainhook \
346 vcl/source/app/timer \
347 vcl/source/app/unohelp2 \
348 vcl/source/app/unohelp \
349 vcl/source/app/vclevent \
350 vcl/source/components/dtranscomp \
351 vcl/source/components/factory \
352 vcl/source/components/fontident \
353 vcl/source/filter/FilterConfigCache \
354 vcl/source/filter/FilterConfigItem \
355 vcl/source/filter/graphicfilter \
356 vcl/source/filter/graphicfilter2 \
357 vcl/source/filter/GraphicNativeTransform \
358 vcl/source/filter/GraphicNativeMetadata \
359 vcl/source/filter/igif/decode \
360 vcl/source/filter/igif/gifread \
361 vcl/source/filter/ipdf/pdfread \
362 vcl/source/filter/ipdf/pdfdocument \
363 vcl/source/filter/ixbm/xbmread \
364 vcl/source/filter/ixpm/xpmread \
365 vcl/source/filter/jpeg/Exif \
366 vcl/source/filter/jpeg/jpeg \
367 vcl/source/filter/jpeg/jpegc \
368 vcl/source/filter/jpeg/JpegReader \
369 vcl/source/filter/jpeg/JpegWriter \
370 vcl/source/filter/jpeg/JpegTransform \
371 vcl/source/filter/wmf/emfwr \
372 vcl/source/filter/wmf/wmf \
373 vcl/source/filter/wmf/wmfexternal \
374 vcl/source/filter/wmf/wmfwr \
375 vcl/source/font/PhysicalFontCollection \
376 vcl/source/font/PhysicalFontFace \
377 vcl/source/font/PhysicalFontFamily \
378 vcl/source/font/fontattributes \
379 vcl/source/font/fontselect \
380 vcl/source/font/fontinstance \
381 vcl/source/font/fontcache \
382 vcl/source/font/fontcharmap \
383 vcl/source/font/fontmetric \
384 vcl/source/font/font \
385 vcl/source/fontsubset/cff \
386 vcl/source/fontsubset/fontsubset \
387 vcl/source/fontsubset/list \
388 vcl/source/fontsubset/sft \
389 vcl/source/fontsubset/ttcr \
390 vcl/source/fontsubset/xlat \
391 vcl/source/uitest/logger \
392 vcl/source/uitest/uiobject \
393 vcl/source/uitest/uitest \
394 vcl/source/uitest/uno/uiobject_uno \
395 vcl/source/uitest/uno/uitest_uno \
396 vcl/backendtest/outputdevice/bitmap \
397 vcl/backendtest/outputdevice/common \
398 vcl/backendtest/outputdevice/gradient \
399 vcl/backendtest/outputdevice/line \
400 vcl/backendtest/outputdevice/outputdevice \
401 vcl/backendtest/outputdevice/pixel \
402 vcl/backendtest/outputdevice/polygon \
403 vcl/backendtest/outputdevice/polypolygon \
404 vcl/backendtest/outputdevice/polyline \
405 vcl/backendtest/outputdevice/rectangle \
408 $(eval $(call gb_Library_add_cobjects,vcl,\
409 vcl/source/filter/jpeg/transupp \
412 # optional parts
414 vcl_quartz_code= \
415 vcl/quartz/salbmp \
416 vcl/quartz/utils \
417 vcl/quartz/salgdicommon \
418 vcl/quartz/salvd \
420 vcl_coretext_code= \
421 vcl/quartz/ctfonts \
422 vcl/quartz/salgdi \
424 ifeq ($(OS),MACOSX)
426 $(eval $(call gb_Library_add_cxxflags,vcl,\
427 $(gb_OBJCXXFLAGS) \
430 $(eval $(call gb_Library_add_defs,vcl,\
431 -DMACOSX_BUNDLE_IDENTIFIER=\"$(MACOSX_BUNDLE_IDENTIFIER)\" \
434 $(eval $(call gb_Library_add_exception_objects,vcl,\
435 $(vcl_coretext_code) \
438 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
439 ApplicationServices \
442 $(eval $(call gb_Library_add_objcxxobjects,vcl,\
443 vcl/osx/a11yactionwrapper \
444 vcl/osx/a11ycomponentwrapper \
445 vcl/osx/a11yfactory \
446 vcl/osx/a11yrolehelper \
447 vcl/osx/a11yselectionwrapper \
448 vcl/osx/a11ytablewrapper \
449 vcl/osx/a11ytextattributeswrapper \
450 vcl/osx/a11ytextwrapper \
451 vcl/osx/a11yutil \
452 vcl/osx/a11yvaluewrapper \
453 vcl/osx/a11ywrapper \
454 vcl/osx/a11ywrapperbutton \
455 vcl/osx/a11ywrappercheckbox \
456 vcl/osx/a11ywrappercombobox \
457 vcl/osx/a11ywrappergroup \
458 vcl/osx/a11ywrapperlist \
459 vcl/osx/a11ywrapperradiobutton \
460 vcl/osx/a11ywrapperradiogroup \
461 vcl/osx/a11ywrapperrow \
462 vcl/osx/a11ywrapperscrollarea \
463 vcl/osx/a11ywrapperscrollbar \
464 vcl/osx/a11ywrappersplitter \
465 vcl/osx/a11ywrapperstatictext \
466 vcl/osx/a11ywrappertabgroup \
467 vcl/osx/a11ywrappertextarea \
468 vcl/osx/a11ywrappertoolbar \
469 vcl/osx/salnstimer \
470 vcl/osx/vclnsapp \
471 vcl/osx/printaccessoryview \
472 vcl/osx/printview \
473 vcl/osx/salframeview \
474 vcl/osx/salnsmenu \
476 $(eval $(call gb_Library_add_exception_objects,vcl,\
477 vcl/osx/a11yfocuslistener \
478 vcl/osx/a11yfocustracker \
479 vcl/osx/a11ylistener \
480 vcl/osx/documentfocuslistener \
481 vcl/osx/saldata \
482 vcl/osx/salinst \
483 vcl/osx/salsys \
484 vcl/osx/saltimer \
485 vcl/osx/DataFlavorMapping \
486 vcl/osx/DragActionConversion \
487 vcl/osx/DragSource \
488 vcl/osx/DragSourceContext \
489 vcl/osx/DropTarget \
490 vcl/osx/HtmlFmtFlt \
491 vcl/osx/OSXTransferable \
492 vcl/osx/PictToBmpFlt \
493 vcl/osx/clipboard \
494 vcl/osx/service_entry \
495 $(vcl_quartz_code) \
496 vcl/quartz/salgdiutils \
497 vcl/osx/salnativewidgets \
498 vcl/osx/salprn \
499 vcl/osx/salframe \
500 vcl/osx/salmenu \
501 vcl/osx/salobj \
503 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
504 $(if $(filter X86_64,$(CPUNAME)),,QuickTime) \
505 Cocoa \
506 Carbon \
507 CoreFoundation \
510 ifneq ($(ENABLE_MACOSX_SANDBOX),TRUE)
511 $(eval $(call gb_Library_use_libraries,vcl,\
512 AppleRemote \
514 endif
516 endif
518 vcl_headless_code= \
519 vcl/headless/svpframe \
520 $(if $(filter-out IOS,$(OS)), \
521 vcl/headless/svpbmp \
522 vcl/headless/svpgdi \
523 vcl/headless/svpdata) \
524 vcl/headless/svpdummies \
525 vcl/headless/svpinst \
526 vcl/headless/svpvd \
527 vcl/unx/generic/app/gendisp \
528 vcl/unx/generic/app/geninst \
529 vcl/unx/generic/app/gensys \
531 vcl_headless_freetype_code=\
532 vcl/headless/svpprn \
533 vcl/headless/svptext \
534 vcl/headless/svpglyphcache \
535 vcl/unx/generic/gdi/cairotextrender \
536 vcl/unx/generic/glyphs/freetype_glyphcache \
537 vcl/unx/generic/glyphs/glyphcache \
538 vcl/unx/generic/fontmanager/fontsubst \
539 vcl/unx/generic/fontmanager/fontconfig \
540 vcl/unx/generic/fontmanager/fontmanager \
541 vcl/unx/generic/fontmanager/helper \
542 vcl/headless/svpcairotextrender \
543 vcl/unx/generic/print/bitmap_gfx \
544 vcl/unx/generic/print/common_gfx \
545 vcl/unx/generic/print/glyphset \
546 vcl/unx/generic/print/printerjob \
547 vcl/unx/generic/print/psputil \
548 vcl/unx/generic/print/genpspgraphics \
549 vcl/unx/generic/print/genprnpsp \
550 vcl/unx/generic/print/prtsetup \
551 vcl/unx/generic/print/text_gfx \
553 ifeq ($(USING_X11),TRUE)
554 $(eval $(call gb_Library_add_exception_objects,vcl,\
555 vcl/unx/generic/plugadapt/salplug \
556 vcl/unx/generic/printer/jobdata \
557 vcl/unx/generic/printer/ppdparser \
558 vcl/unx/generic/gdi/nativewindowhandleprovider \
559 vcl/unx/generic/window/screensaverinhibitor \
560 vcl/unx/generic/printer/cpdmgr \
561 $(if $(filter TRUE,$(ENABLE_CUPS)),\
562 vcl/unx/generic/printer/cupsmgr \
563 vcl/unx/generic/printer/printerinfomanager \
565 vcl/null/printerinfomanager \
567 $(vcl_headless_code) \
568 $(vcl_headless_freetype_code) \
571 $(eval $(call gb_Library_use_externals,vcl,\
572 cairo \
573 cups \
574 dbus \
575 fontconfig \
576 freetype \
577 valgrind \
579 endif
581 ifeq ($(ENABLE_HEADLESS),TRUE)
582 $(eval $(call gb_Library_add_exception_objects,vcl,\
583 vcl/unx/generic/printer/jobdata \
584 vcl/unx/generic/printer/ppdparser \
585 vcl/null/printerinfomanager \
586 vcl/headless/headlessinst \
587 $(vcl_headless_code) \
588 $(vcl_headless_freetype_code) \
591 $(eval $(call gb_Library_use_externals,vcl,\
592 cairo \
593 freetype \
594 fontconfig \
596 ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS)))
597 $(eval $(call gb_Library_add_libs,vcl,\
598 -lpthread \
600 endif
601 else
602 $(eval $(call gb_Library_add_exception_objects,vcl,\
603 vcl/opengl/DeviceInfo \
604 vcl/opengl/gdiimpl \
605 vcl/opengl/salbmp \
606 vcl/opengl/scale \
607 vcl/opengl/framebuffer \
608 vcl/opengl/program \
609 vcl/opengl/texture \
610 vcl/opengl/FixedTextureAtlas \
611 vcl/opengl/PackedTextureAtlas \
612 vcl/opengl/RenderList \
613 vcl/opengl/LineRenderUtils \
614 vcl/source/opengl/OpenGLContext \
615 vcl/source/opengl/OpenGLHelper \
616 vcl/source/window/openglwin \
618 ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS)))
619 $(eval $(call gb_Library_add_libs,vcl,\
620 -lm $(DLOPEN_LIBS) \
621 -lpthread \
622 -lX11 \
623 -lXext \
625 $(eval $(call gb_Library_add_exception_objects,vcl,\
626 vcl/opengl/x11/X11DeviceInfo \
628 endif
629 endif
631 ifeq ($(OS),ANDROID)
632 $(eval $(call gb_Library_add_libs,vcl,\
633 -llog \
634 -landroid \
635 -llo-bootstrap \
637 $(eval $(call gb_Library_add_exception_objects,vcl,\
638 vcl/unx/generic/printer/jobdata \
639 vcl/unx/generic/printer/ppdparser \
640 vcl/null/printerinfomanager \
641 vcl/android/androidinst \
642 $(vcl_headless_code) \
643 $(vcl_headless_freetype_code) \
646 $(eval $(call gb_Library_use_externals,vcl,\
647 cairo \
648 fontconfig \
649 freetype \
650 expat \
652 endif
654 ifeq ($(OS),IOS)
655 $(eval $(call gb_Library_add_cxxflags,vcl,\
656 $(gb_OBJCXXFLAGS) \
658 $(eval $(call gb_Library_add_exception_objects,vcl,\
659 vcl/ios/iosinst \
660 vcl/ios/dummies \
661 $(vcl_really_generic_code) \
662 $(vcl_coretext_code) \
663 $(vcl_quartz_code) \
664 $(vcl_headless_code) \
666 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
667 UIKit \
668 CoreFoundation \
670 endif
672 # OS-specific stuff
674 ifeq ($(OS),WNT)
675 $(eval $(call gb_Library_add_exception_objects,vcl,\
676 vcl/opengl/win/gdiimpl \
677 vcl/opengl/win/WinDeviceInfo \
678 vcl/opengl/win/blocklist_parser \
679 vcl/win/app/saldata \
680 vcl/win/app/salinfo \
681 vcl/win/app/salinst \
682 vcl/win/app/salshl \
683 vcl/win/app/saltimer \
684 vcl/win/gdi/gdiimpl \
685 vcl/win/gdi/salbmp \
686 vcl/win/gdi/salgdi \
687 vcl/win/gdi/salgdi2 \
688 vcl/win/gdi/salfont \
689 vcl/win/gdi/salgdi_gdiplus \
690 vcl/win/gdi/salnativewidgets-luna \
691 vcl/win/gdi/salprn \
692 vcl/win/gdi/salvd \
693 vcl/win/gdi/winlayout \
694 vcl/win/gdi/DWriteTextRenderer \
695 vcl/win/window/salframe \
696 vcl/win/window/keynames \
697 vcl/win/window/salmenu \
698 vcl/win/window/salobj \
701 $(eval $(call gb_Library_use_system_win32_libs,vcl,\
702 advapi32 \
703 crypt32 \
704 gdi32 \
705 gdiplus \
706 imm32 \
707 mpr \
708 ole32 \
709 shell32 \
710 usp10 \
711 uuid \
712 version \
713 winspool \
714 setupapi \
715 shlwapi \
718 $(eval $(call gb_Library_add_nativeres,vcl,vcl/salsrc))
719 endif
721 ifeq ($(OS),WNT)
722 # HACK: dependency on icon themes so running unit tests don't
723 # prevent delivering these by having open file handles on WNT
724 $(eval $(call gb_Library_use_package,vcl,postprocess_images))
725 endif
727 ifeq ($(ENABLE_QT5),TRUE)
728 $(eval $(call gb_Library_use_externals,vcl,\
729 qt5 \
731 $(eval $(call gb_Library_add_defs,vcl,\
732 $(QT5_CFLAGS) \
734 $(eval $(call gb_Library_add_libs,vcl,\
735 $(QT5_LIBS) \
737 $(eval $(call gb_Library_add_cxxflags,vcl,\
738 $(QT5_CFLAGS) \
740 $(eval $(call gb_Library_add_exception_objects,vcl,\
741 vcl/qt5/Qt5Font \
743 endif
745 # vim: set noet sw=4 ts=4: