build fix
[LibreOffice.git] / vcl / Library_vcl.mk
blob0588a419c47aba90e6bbaea9c1ba2a6353bf3d22
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 \
41 $(if $(filter WNTGCC,$(OS)$(COM)),-I$(MINGW_SYSROOT)/include/gdiplus) \
44 $(eval $(call gb_Library_add_defs,vcl,\
45 -DVCL_DLLIMPLEMENTATION \
46 -DDLLIMPLEMENTATION_UITEST \
47 -DCUI_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,cui))\" \
48 -DDESKTOP_DETECTOR_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,desktop_detector))\" \
49 -DTK_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,tk))\" \
50 -DENABLE_MERGELIBS=$(if $(MERGELIBS),1,0) \
53 $(eval $(call gb_Library_use_sdk_api,vcl))
55 $(eval $(call gb_Library_use_custom_headers,vcl,\
56 officecfg/registry \
59 $(eval $(call gb_Library_use_externals,vcl,\
60 $(if $(filter LINUX MACOSX %BSD SOLARIS,$(OS)), \
61 curl) \
62 jpeg \
63 $(if $(filter PDFIUM,$(BUILD_TYPE)),pdfium) \
64 $(if $(filter-out IOS WNT,$(OS)), \
65 nss3 \
66 plc4) \
67 libeot \
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 \
88 $(gb_UWINAPI) \
91 ifeq ($(OS),MACOSX)
92 $(eval $(call gb_Library_add_libs,vcl,\
93 -framework IOKit \
94 -F/System/Library/PrivateFrameworks \
95 -framework CoreUI \
96 -lobjc \
98 endif
99 ifeq ($(OS),MACOSX)
101 $(eval $(call gb_Library_add_cxxflags,vcl,\
102 $(gb_OBJCXXFLAGS) \
105 endif
107 ifeq ($(ENABLE_JAVA),TRUE)
108 $(eval $(call gb_Library_use_libraries,vcl,\
109 jvmaccess \
111 endif
113 $(eval $(call gb_Library_use_externals,vcl,\
114 boost_headers \
115 gio \
116 glm_headers \
117 graphite \
118 harfbuzz \
119 icu_headers \
120 icuuc \
121 lcms2 \
122 mdds_headers \
124 ifeq ($(ENABLE_HEADLESS),)
125 $(eval $(call gb_Library_use_externals,vcl,\
126 glew \
128 endif
130 $(eval $(call gb_Library_add_exception_objects,vcl,\
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/longcurr \
202 vcl/source/control/imp_listbox \
203 vcl/source/control/listbox \
204 vcl/source/control/menubtn \
205 vcl/source/control/morebtn \
206 vcl/source/control/notebookbar \
207 vcl/source/control/quickselectionengine \
208 vcl/source/control/prgsbar \
209 vcl/source/control/scrbar \
210 vcl/source/control/slider \
211 vcl/source/control/spinbtn \
212 vcl/source/control/spinfld \
213 vcl/source/control/tabctrl \
214 vcl/source/control/throbber \
215 vcl/source/edit/vclmedit \
216 vcl/source/edit/textdata \
217 vcl/source/edit/textdoc \
218 vcl/source/edit/texteng \
219 vcl/source/edit/textundo \
220 vcl/source/edit/textview \
221 vcl/source/edit/txtattr \
222 vcl/source/edit/xtextedt \
223 vcl/source/outdev/outdev \
224 vcl/source/outdev/outdevstate \
225 vcl/source/outdev/outdevstatestack \
226 vcl/source/outdev/clipping \
227 vcl/source/outdev/polygon \
228 vcl/source/outdev/transparent \
229 vcl/source/outdev/mask \
230 vcl/source/outdev/bitmap \
231 vcl/source/outdev/font \
232 vcl/source/outdev/text \
233 vcl/source/outdev/textline \
234 vcl/source/outdev/pixel \
235 vcl/source/outdev/rect \
236 vcl/source/outdev/rendersettings \
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/svgdata \
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/bitmap/CommandImageResolver \
312 vcl/source/image/Image \
313 vcl/source/image/ImageArrayData \
314 vcl/source/image/ImageList \
315 vcl/source/image/ImageTree \
316 vcl/source/image/ImageRepository \
317 vcl/source/image/ImplImage \
318 vcl/source/image/ImplImageList \
319 vcl/source/image/ImplImageTree \
320 vcl/source/helper/canvasbitmap \
321 vcl/source/helper/canvastools \
322 vcl/source/helper/commandinfoprovider \
323 vcl/source/helper/displayconnectiondispatch \
324 vcl/source/helper/evntpost \
325 vcl/source/helper/lazydelete \
326 vcl/source/helper/strhelper \
327 vcl/source/helper/threadex \
328 vcl/source/app/brand \
329 vcl/source/app/dbggui \
330 vcl/source/app/dndhelp \
331 vcl/source/app/help \
332 vcl/source/app/i18nhelp \
333 vcl/source/app/idle \
334 vcl/source/app/salvtables \
335 vcl/source/app/scheduler \
336 vcl/source/app/session \
337 vcl/source/app/settings \
338 vcl/source/app/IconThemeInfo \
339 vcl/source/app/IconThemeScanner \
340 vcl/source/app/IconThemeSelector \
341 vcl/source/app/ITiledRenderable \
342 vcl/source/app/sound \
343 vcl/source/app/stdtext \
344 vcl/source/app/svapp \
345 vcl/source/app/svdata \
346 vcl/source/app/svmain \
347 vcl/source/app/svmainhook \
348 vcl/source/app/timer \
349 vcl/source/app/unohelp2 \
350 vcl/source/app/unohelp \
351 vcl/source/app/vclevent \
352 vcl/source/components/dtranscomp \
353 vcl/source/components/factory \
354 vcl/source/components/fontident \
355 vcl/source/filter/FilterConfigCache \
356 vcl/source/filter/FilterConfigItem \
357 vcl/source/filter/graphicfilter \
358 vcl/source/filter/graphicfilter2 \
359 vcl/source/filter/GraphicNativeTransform \
360 vcl/source/filter/GraphicNativeMetadata \
361 vcl/source/filter/sgfbram \
362 vcl/source/filter/sgvmain \
363 vcl/source/filter/sgvspln \
364 vcl/source/filter/sgvtext \
365 vcl/source/filter/igif/decode \
366 vcl/source/filter/igif/gifread \
367 vcl/source/filter/ipdf/pdfread \
368 vcl/source/filter/ipdf/pdfdocument \
369 vcl/source/filter/ixbm/xbmread \
370 vcl/source/filter/ixpm/xpmread \
371 vcl/source/filter/jpeg/Exif \
372 vcl/source/filter/jpeg/jpeg \
373 vcl/source/filter/jpeg/jpegc \
374 vcl/source/filter/jpeg/JpegReader \
375 vcl/source/filter/jpeg/JpegWriter \
376 vcl/source/filter/jpeg/JpegTransform \
377 vcl/source/filter/wmf/emfwr \
378 vcl/source/filter/wmf/enhwmf \
379 vcl/source/filter/wmf/winmtf \
380 vcl/source/filter/wmf/winwmf \
381 vcl/source/filter/wmf/wmf \
382 vcl/source/filter/wmf/wmfwr \
383 vcl/source/font/PhysicalFontCollection \
384 vcl/source/font/PhysicalFontFace \
385 vcl/source/font/PhysicalFontFamily \
386 vcl/source/font/fontattributes \
387 vcl/source/font/fontselect \
388 vcl/source/font/fontinstance \
389 vcl/source/font/fontcache \
390 vcl/source/font/fontcharmap \
391 vcl/source/font/fontmetric \
392 vcl/source/font/font \
393 vcl/source/fontsubset/cff \
394 vcl/source/fontsubset/fontsubset \
395 vcl/source/fontsubset/gsub \
396 vcl/source/fontsubset/list \
397 vcl/source/fontsubset/sft \
398 vcl/source/fontsubset/ttcr \
399 vcl/source/fontsubset/xlat \
400 vcl/source/uitest/uiobject \
401 vcl/source/uitest/uitest \
402 vcl/source/uitest/uno/uiobject_uno \
403 vcl/source/uitest/uno/uitest_uno \
404 vcl/backendtest/outputdevice/bitmap \
405 vcl/backendtest/outputdevice/common \
406 vcl/backendtest/outputdevice/gradient \
407 vcl/backendtest/outputdevice/line \
408 vcl/backendtest/outputdevice/outputdevice \
409 vcl/backendtest/outputdevice/pixel \
410 vcl/backendtest/outputdevice/polygon \
411 vcl/backendtest/outputdevice/polypolygon \
412 vcl/backendtest/outputdevice/polyline \
413 vcl/backendtest/outputdevice/rectangle \
416 $(eval $(call gb_Library_add_cobjects,vcl,\
417 vcl/source/filter/jpeg/transupp \
420 # optional parts
422 vcl_quartz_code= \
423 vcl/quartz/salbmp \
424 vcl/quartz/utils \
425 vcl/quartz/salgdicommon \
426 vcl/quartz/salvd \
428 vcl_coretext_code= \
429 vcl/quartz/ctfonts \
430 vcl/quartz/salgdi \
432 ifeq ($(OS),MACOSX)
434 $(eval $(call gb_Library_add_cxxflags,vcl,\
435 $(gb_OBJCXXFLAGS) \
438 $(eval $(call gb_Library_add_defs,vcl,\
439 -DMACOSX_BUNDLE_IDENTIFIER=\"$(MACOSX_BUNDLE_IDENTIFIER)\" \
442 $(eval $(call gb_Library_add_exception_objects,vcl,\
443 $(vcl_coretext_code) \
446 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
447 ApplicationServices \
450 $(eval $(call gb_Library_add_objcxxobjects,vcl,\
451 vcl/osx/a11yactionwrapper \
452 vcl/osx/a11ycomponentwrapper \
453 vcl/osx/a11yfactory \
454 vcl/osx/a11yrolehelper \
455 vcl/osx/a11yselectionwrapper \
456 vcl/osx/a11ytablewrapper \
457 vcl/osx/a11ytextattributeswrapper \
458 vcl/osx/a11ytextwrapper \
459 vcl/osx/a11yutil \
460 vcl/osx/a11yvaluewrapper \
461 vcl/osx/a11ywrapper \
462 vcl/osx/a11ywrapperbutton \
463 vcl/osx/a11ywrappercheckbox \
464 vcl/osx/a11ywrappercombobox \
465 vcl/osx/a11ywrappergroup \
466 vcl/osx/a11ywrapperlist \
467 vcl/osx/a11ywrapperradiobutton \
468 vcl/osx/a11ywrapperradiogroup \
469 vcl/osx/a11ywrapperrow \
470 vcl/osx/a11ywrapperscrollarea \
471 vcl/osx/a11ywrapperscrollbar \
472 vcl/osx/a11ywrappersplitter \
473 vcl/osx/a11ywrapperstatictext \
474 vcl/osx/a11ywrappertabgroup \
475 vcl/osx/a11ywrappertextarea \
476 vcl/osx/a11ywrappertoolbar \
477 vcl/osx/salnstimer \
478 vcl/osx/vclnsapp \
479 vcl/osx/printaccessoryview \
480 vcl/osx/printview \
481 vcl/osx/salframeview \
482 vcl/osx/salnsmenu \
484 $(eval $(call gb_Library_add_exception_objects,vcl,\
485 vcl/osx/a11yfocuslistener \
486 vcl/osx/a11yfocustracker \
487 vcl/osx/a11ylistener \
488 vcl/osx/documentfocuslistener \
489 vcl/osx/saldata \
490 vcl/osx/salinst \
491 vcl/osx/salsys \
492 vcl/osx/saltimer \
493 vcl/osx/DataFlavorMapping \
494 vcl/osx/DragActionConversion \
495 vcl/osx/DragSource \
496 vcl/osx/DragSourceContext \
497 vcl/osx/DropTarget \
498 vcl/osx/HtmlFmtFlt \
499 vcl/osx/OSXTransferable \
500 vcl/osx/PictToBmpFlt \
501 vcl/osx/clipboard \
502 vcl/osx/service_entry \
503 $(vcl_quartz_code) \
504 vcl/quartz/salgdiutils \
505 vcl/osx/salnativewidgets \
506 vcl/osx/salprn \
507 vcl/osx/salframe \
508 vcl/osx/salmenu \
509 vcl/osx/salobj \
511 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
512 $(if $(filter X86_64,$(CPUNAME)),,QuickTime) \
513 Cocoa \
514 Carbon \
515 CoreFoundation \
516 OpenGL \
519 ifneq ($(ENABLE_MACOSX_SANDBOX),TRUE)
520 $(eval $(call gb_Library_use_libraries,vcl,\
521 AppleRemote \
523 endif
525 endif
527 vcl_headless_code= \
528 vcl/headless/svpframe \
529 $(if $(filter-out IOS,$(OS)), \
530 vcl/headless/svpbmp \
531 vcl/headless/svpgdi \
532 vcl/headless/svpdata) \
533 vcl/headless/svpdummies \
534 vcl/headless/svpinst \
535 vcl/headless/svpvd \
536 vcl/unx/generic/app/gendisp \
537 vcl/unx/generic/app/geninst \
538 vcl/unx/generic/app/gensys \
540 vcl_headless_freetype_code=\
541 vcl/headless/svpprn \
542 vcl/headless/svptext \
543 vcl/headless/svpglyphcache \
544 vcl/unx/generic/gdi/cairotextrender \
545 vcl/unx/generic/glyphs/freetype_glyphcache \
546 vcl/unx/generic/glyphs/glyphcache \
547 vcl/unx/generic/fontmanager/fontsubst \
548 vcl/unx/generic/fontmanager/fontcache \
549 vcl/unx/generic/fontmanager/fontconfig \
550 vcl/unx/generic/fontmanager/fontmanager \
551 vcl/unx/generic/fontmanager/helper \
552 vcl/headless/svpcairotextrender \
553 vcl/unx/generic/print/bitmap_gfx \
554 vcl/unx/generic/print/common_gfx \
555 vcl/unx/generic/print/glyphset \
556 vcl/unx/generic/print/printerjob \
557 vcl/unx/generic/print/psputil \
558 vcl/unx/generic/print/genpspgraphics \
559 vcl/unx/generic/print/genprnpsp \
560 vcl/unx/generic/print/prtsetup \
561 vcl/unx/generic/print/text_gfx \
563 ifeq ($(USING_X11),TRUE)
564 $(eval $(call gb_Library_add_exception_objects,vcl,\
565 vcl/unx/generic/plugadapt/salplug \
566 vcl/unx/generic/printer/jobdata \
567 vcl/unx/generic/printer/ppdparser \
568 vcl/unx/generic/gdi/nativewindowhandleprovider \
569 vcl/unx/generic/window/screensaverinhibitor \
570 $(if $(filter TRUE,$(ENABLE_CUPS)),\
571 vcl/unx/generic/printer/cupsmgr \
572 vcl/unx/generic/printer/printerinfomanager \
574 vcl/null/printerinfomanager \
576 $(vcl_headless_code) \
577 $(vcl_headless_freetype_code) \
580 $(eval $(call gb_Library_use_externals,vcl,\
581 cairo \
582 cups \
583 dbus \
584 fontconfig \
585 freetype \
586 valgrind \
588 endif
590 ifeq ($(ENABLE_HEADLESS),TRUE)
591 $(eval $(call gb_Library_add_exception_objects,vcl,\
592 vcl/unx/generic/printer/jobdata \
593 vcl/unx/generic/printer/ppdparser \
594 vcl/null/printerinfomanager \
595 vcl/headless/headlessinst \
596 $(vcl_headless_code) \
597 $(vcl_headless_freetype_code) \
600 $(eval $(call gb_Library_use_externals,vcl,\
601 cairo \
602 freetype \
604 ifneq ($(OS),EMSCRIPTEN)
605 $(eval $(call gb_Library_use_externals,vcl,\
606 fontconfig \
608 endif
609 else
610 $(eval $(call gb_Library_add_exception_objects,vcl,\
611 vcl/opengl/DeviceInfo \
612 vcl/opengl/gdiimpl \
613 vcl/opengl/salbmp \
614 vcl/opengl/scale \
615 vcl/opengl/framebuffer \
616 vcl/opengl/program \
617 vcl/opengl/texture \
618 vcl/opengl/FixedTextureAtlas \
619 vcl/opengl/PackedTextureAtlas \
620 vcl/opengl/RenderList \
621 vcl/opengl/LineRenderUtils \
622 vcl/source/opengl/OpenGLContext \
623 vcl/source/opengl/OpenGLHelper \
624 vcl/source/window/openglwin \
626 ifeq ($(OS),LINUX)
627 $(eval $(call gb_Library_add_libs,vcl,\
628 -lm \
629 -ldl \
630 -lpthread \
631 -lGL \
632 -lX11 \
634 endif
635 endif
637 ifeq ($(OS),ANDROID)
638 $(eval $(call gb_Library_add_libs,vcl,\
639 -llog \
640 -landroid \
641 -llo-bootstrap \
643 $(eval $(call gb_Library_add_exception_objects,vcl,\
644 vcl/unx/generic/printer/jobdata \
645 vcl/unx/generic/printer/ppdparser \
646 vcl/null/printerinfomanager \
647 vcl/android/androidinst \
648 $(vcl_headless_code) \
649 $(vcl_headless_freetype_code) \
652 $(eval $(call gb_Library_use_externals,vcl,\
653 cairo \
654 fontconfig \
655 freetype \
656 expat \
658 endif
660 ifeq ($(OS),IOS)
661 $(eval $(call gb_Library_add_cxxflags,vcl,\
662 $(gb_OBJCXXFLAGS) \
664 $(eval $(call gb_Library_add_exception_objects,vcl,\
665 vcl/ios/iosinst \
666 vcl/ios/dummies \
667 $(vcl_really_generic_code) \
668 $(vcl_coretext_code) \
669 $(vcl_quartz_code) \
670 $(vcl_headless_code) \
672 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
673 UIKit \
674 CoreFoundation \
676 endif
678 # OS-specific stuff
680 ifeq ($(OS),WNT)
681 $(eval $(call gb_Library_add_exception_objects,vcl,\
682 vcl/opengl/win/gdiimpl \
683 vcl/opengl/win/WinDeviceInfo \
684 vcl/opengl/win/blocklist_parser \
685 vcl/win/app/saldata \
686 vcl/win/app/salinfo \
687 vcl/win/app/salinst \
688 vcl/win/app/salshl \
689 vcl/win/app/saltimer \
690 vcl/win/gdi/gdiimpl \
691 vcl/win/gdi/salbmp \
692 vcl/win/gdi/salgdi \
693 vcl/win/gdi/salgdi2 \
694 vcl/win/gdi/salfont \
695 vcl/win/gdi/salgdi_gdiplus \
696 vcl/win/gdi/salnativewidgets-luna \
697 vcl/win/gdi/salprn \
698 vcl/win/gdi/salvd \
699 vcl/win/gdi/winlayout \
700 vcl/win/gdi/wntgdi \
701 vcl/win/window/salframe \
702 vcl/win/window/keynames \
703 vcl/win/window/salmenu \
704 vcl/win/window/salobj \
707 $(eval $(call gb_Library_use_system_win32_libs,vcl,\
708 advapi32 \
709 crypt32 \
710 gdi32 \
711 gdiplus \
712 glu32 \
713 imm32 \
714 mpr \
715 opengl32 \
716 ole32 \
717 shell32 \
718 usp10 \
719 uuid \
720 version \
721 winspool \
722 setupapi \
723 shlwapi \
726 $(eval $(call gb_Library_add_nativeres,vcl,vcl/salsrc))
727 endif
729 ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS)))
730 $(eval $(call gb_Library_add_libs,vcl,\
731 -lm $(DLOPEN_LIBS) \
732 -lpthread \
733 -lGL \
734 -lX11 \
735 -lXext \
737 ifneq ($(ENABLE_HEADLESS),TRUE)
738 $(eval $(call gb_Library_add_exception_objects,vcl,\
739 vcl/opengl/x11/X11DeviceInfo \
741 endif
742 endif
744 # Runtime dependency for unit-tests
745 $(eval $(call gb_Library_use_restarget,vcl,vcl))
747 ifeq ($(OS),WNT)
748 # HACK: dependency on icon themes so running unit tests don't
749 # prevent delivering these by having open file handles on WNT
750 $(eval $(call gb_Library_use_package,vcl,postprocess_images))
751 endif
753 # vim: set noet sw=4 ts=4: