Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / vcl / Library_vcl.mk
blob761fcbe90036816d55c04c0ac5f7e7a4429e090c
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_use_custom_headers,vcl,officecfg/registry vcl/unx/generic/fontmanager))
40 $(eval $(call gb_Library_set_include,vcl,\
41 $$(INCLUDE) \
42 -I$(SRCDIR)/vcl/inc \
43 $(if $(filter WNTGCC,$(OS)$(COM)),-I$(MINGW_SYSROOT)/include/gdiplus) \
44 $(if $(filter WNT,$(OS)),-I$(SRCDIR)/vcl/inc/glyphy/demo) \
47 $(eval $(call gb_Library_add_defs,vcl,\
48 -DVCL_DLLIMPLEMENTATION \
49 -DCUI_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,cui))\" \
50 -DDESKTOP_DETECTOR_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,desktop_detector))\" \
51 -DTK_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,tk))\" \
52 -DENABLE_MERGELIBS=$(if $(MERGELIBS),1,0) \
55 $(eval $(call gb_Library_use_sdk_api,vcl))
57 $(eval $(call gb_Library_use_custom_headers,vcl,\
58 officecfg/registry \
61 $(eval $(call gb_Library_use_externals,vcl,\
62 $(if $(filter LINUX MACOSX %BSD SOLARIS,$(OS)), \
63 curl) \
64 jpeg \
65 $(if $(filter-out IOS WNT,$(OS)), \
66 nss3 \
67 plc4) \
68 libeot \
71 $(eval $(call gb_Library_use_libraries,vcl,\
72 $(call gb_Helper_optional,BREAKPAD, \
73 crashreport) \
74 svl \
75 tl \
76 utl \
77 sot \
78 ucbhelper \
79 basegfx \
80 comphelper \
81 cppuhelper \
82 i18nlangtag \
83 i18nutil \
84 $(if $(filter OPENCL,$(BUILD_TYPE)),opencl) \
85 cppu \
86 sal \
87 salhelper \
88 xmlreader \
89 $(gb_UWINAPI) \
92 ifeq ($(OS),MACOSX)
93 $(eval $(call gb_Library_add_libs,vcl,\
94 -framework IOKit \
95 -F/System/Library/PrivateFrameworks \
96 -framework CoreUI \
97 -lobjc \
99 endif
100 ifeq ($(OS),MACOSX)
102 $(eval $(call gb_Library_add_cxxflags,vcl,\
103 $(gb_OBJCXXFLAGS) \
106 endif
108 ifeq ($(ENABLE_JAVA),TRUE)
109 $(eval $(call gb_Library_use_libraries,vcl,\
110 jvmaccess \
112 endif
114 $(eval $(call gb_Library_use_externals,vcl,\
115 boost_headers \
116 gio \
117 glm_headers \
118 harfbuzz \
119 icu_headers \
120 icuuc \
121 lcms2 \
122 mdds_headers \
124 ifneq ($(ENABLE_OPENGL)$(if $(filter ANDROID,$(OS)),TRUE),)
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/resource \
134 vcl/source/window/abstdlg \
135 vcl/source/window/accel \
136 vcl/source/window/accmgr \
137 vcl/source/window/brdwin \
138 vcl/source/window/accessibility \
139 vcl/source/window/legacyaccessibility \
140 vcl/source/window/clipping \
141 vcl/source/window/stacking \
142 vcl/source/window/debug \
143 vcl/source/window/globalization \
144 vcl/source/window/btndlg \
145 vcl/source/window/builder \
146 vcl/source/window/commandevent \
147 vcl/source/window/cursor \
148 vcl/source/window/debugevent \
149 vcl/source/window/decoview \
150 vcl/source/window/dialog \
151 vcl/source/window/dlgctrl \
152 vcl/source/window/dndeventdispatcher \
153 vcl/source/window/dndlistenercontainer \
154 vcl/source/window/dockingarea \
155 vcl/source/window/dockmgr \
156 vcl/source/window/dockwin \
157 vcl/source/window/event \
158 vcl/source/window/floatwin \
159 vcl/source/window/introwin \
160 vcl/source/window/keycod \
161 vcl/source/window/keyevent \
162 vcl/source/window/layout \
163 vcl/source/window/menu \
164 vcl/source/window/menubarwindow \
165 vcl/source/window/menufloatingwindow \
166 vcl/source/window/menuitemlist \
167 vcl/source/window/menuwindow \
168 vcl/source/window/mnemonic \
169 vcl/source/window/mnemonicengine \
170 vcl/source/window/mouse \
171 vcl/source/window/mouseevent \
172 vcl/source/window/msgbox \
173 vcl/source/window/popupmenuwindow \
174 vcl/source/window/printdlg \
175 vcl/source/window/scrwnd \
176 vcl/source/window/seleng \
177 vcl/source/window/split \
178 vcl/source/window/splitwin \
179 vcl/source/window/status \
180 vcl/source/window/syschild \
181 vcl/source/window/syswin \
182 vcl/source/window/tabdlg \
183 vcl/source/window/tabpage \
184 vcl/source/window/taskpanelist \
185 vcl/source/window/toolbox2 \
186 vcl/source/window/toolbox \
187 vcl/source/window/window2 \
188 vcl/source/window/window3 \
189 vcl/source/window/window \
190 vcl/source/window/winproc \
191 vcl/source/window/wrkwin \
192 vcl/source/control/button \
193 vcl/source/control/combobox \
194 vcl/source/control/ctrl \
195 vcl/source/control/edit \
196 vcl/source/control/field2 \
197 vcl/source/control/field \
198 vcl/source/control/fixed \
199 vcl/source/control/fixedhyper \
200 vcl/source/control/group \
201 vcl/source/control/imgctrl \
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/rendersettings \
238 vcl/source/outdev/line \
239 vcl/source/outdev/polyline \
240 vcl/source/outdev/hatch \
241 vcl/source/outdev/gradient \
242 vcl/source/outdev/curvedshapes \
243 vcl/source/outdev/wallpaper \
244 vcl/source/outdev/vclreferencebase \
245 vcl/source/outdev/nativecontrols \
246 vcl/source/outdev/map \
247 vcl/source/gdi/alpha \
248 vcl/source/gdi/animate \
249 vcl/source/gdi/base14 \
250 vcl/source/gdi/bitmap3 \
251 vcl/source/gdi/bitmap4 \
252 vcl/source/gdi/bitmap \
253 vcl/source/gdi/bitmapex \
254 vcl/source/gdi/bmpacc2 \
255 vcl/source/gdi/bmpacc3 \
256 vcl/source/gdi/bmpacc \
257 vcl/source/gdi/bmpfast \
258 vcl/source/gdi/configsettings \
259 vcl/source/gdi/cvtgrf \
260 vcl/source/gdi/svmconverter \
261 vcl/source/gdi/dibtools \
262 vcl/source/gdi/embeddedfontshelper \
263 vcl/source/gdi/extoutdevdata \
264 vcl/source/gdi/gdimtf \
265 vcl/source/gdi/gdimetafiletools \
266 vcl/source/gdi/gfxlink \
267 vcl/source/gdi/gradient \
268 vcl/source/gdi/graph \
269 vcl/source/gdi/graphictools \
270 vcl/source/gdi/hatch \
271 vcl/source/gdi/impanmvw \
272 vcl/source/gdi/impbmp \
273 vcl/source/gdi/impgraph \
274 vcl/source/gdi/impvect \
275 vcl/source/gdi/jobset \
276 vcl/source/gdi/lineinfo \
277 vcl/source/gdi/mapmod \
278 vcl/source/gdi/metaact \
279 vcl/source/gdi/octree \
280 vcl/source/gdi/oldprintadaptor \
281 vcl/source/gdi/pdfextoutdevdata \
282 vcl/source/gdi/pdffontcache \
283 vcl/source/gdi/pdfwriter \
284 vcl/source/gdi/pdfwriter_impl2 \
285 vcl/source/gdi/pdfwriter_impl \
286 vcl/source/gdi/pngread \
287 vcl/source/gdi/pngwrite \
288 vcl/source/gdi/print2 \
289 vcl/source/gdi/print3 \
290 vcl/source/gdi/print \
291 vcl/source/gdi/regband \
292 vcl/source/gdi/region \
293 vcl/source/gdi/regionband \
294 vcl/source/gdi/salgdilayout \
295 vcl/source/gdi/salgdiimpl \
296 vcl/source/gdi/sallayout \
297 vcl/source/gdi/salmisc \
298 vcl/source/gdi/salnativewidgets-none \
299 vcl/source/gdi/svgdata \
300 vcl/source/gdi/textlayout \
301 vcl/source/gdi/virdev \
302 vcl/source/gdi/wall \
303 vcl/source/bitmap/bitmapfilter \
304 vcl/source/bitmap/bitmapscalesuper \
305 vcl/source/bitmap/BitmapScaleConvolution \
306 vcl/source/bitmap/BitmapSymmetryCheck \
307 vcl/source/bitmap/BitmapProcessor \
308 vcl/source/bitmap/BitmapTools \
309 vcl/source/bitmap/checksum \
310 vcl/source/bitmap/CommandImageResolver \
311 vcl/source/image/Image \
312 vcl/source/image/ImageArrayData \
313 vcl/source/image/ImageList \
314 vcl/source/image/ImageRepository \
315 vcl/source/image/ImplImage \
316 vcl/source/image/ImplImageList \
317 vcl/source/image/ImplImageTree \
318 vcl/source/helper/canvasbitmap \
319 vcl/source/helper/canvastools \
320 vcl/source/helper/commandinfoprovider \
321 vcl/source/helper/evntpost \
322 vcl/source/helper/lazydelete \
323 vcl/source/helper/strhelper \
324 vcl/source/helper/threadex \
325 vcl/source/helper/xconnection \
326 vcl/source/app/brand \
327 vcl/source/app/dbggui \
328 vcl/source/app/dndhelp \
329 vcl/source/app/help \
330 vcl/source/app/i18nhelp \
331 vcl/source/app/idle \
332 vcl/source/app/idlemgr \
333 vcl/source/app/salvtables \
334 vcl/source/app/scheduler \
335 vcl/source/app/session \
336 vcl/source/app/settings \
337 vcl/source/app/IconThemeInfo \
338 vcl/source/app/IconThemeScanner \
339 vcl/source/app/IconThemeSelector \
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/sgfbram \
360 vcl/source/filter/sgvmain \
361 vcl/source/filter/sgvspln \
362 vcl/source/filter/sgvtext \
363 vcl/source/filter/igif/decode \
364 vcl/source/filter/igif/gifread \
365 vcl/source/filter/ixbm/xbmread \
366 vcl/source/filter/ixpm/xpmread \
367 vcl/source/filter/jpeg/Exif \
368 vcl/source/filter/jpeg/jpeg \
369 vcl/source/filter/jpeg/jpegc \
370 vcl/source/filter/jpeg/JpegReader \
371 vcl/source/filter/jpeg/JpegWriter \
372 vcl/source/filter/jpeg/JpegTransform \
373 vcl/source/filter/wmf/emfwr \
374 vcl/source/filter/wmf/enhwmf \
375 vcl/source/filter/wmf/winmtf \
376 vcl/source/filter/wmf/winwmf \
377 vcl/source/filter/wmf/wmf \
378 vcl/source/filter/wmf/wmfwr \
379 vcl/source/font/PhysicalFontCollection \
380 vcl/source/font/PhysicalFontFace \
381 vcl/source/font/PhysicalFontFamily \
382 vcl/source/font/fontattributes \
383 vcl/source/font/fontselect \
384 vcl/source/font/fontinstance \
385 vcl/source/font/fontcache \
386 vcl/source/font/fontcharmap \
387 vcl/source/font/fontmetric \
388 vcl/source/font/font \
389 vcl/source/fontsubset/cff \
390 vcl/source/fontsubset/fontsubset \
391 vcl/source/fontsubset/gsub \
392 vcl/source/fontsubset/list \
393 vcl/source/fontsubset/sft \
394 vcl/source/fontsubset/ttcr \
395 vcl/source/fontsubset/xlat \
398 $(eval $(call gb_Library_add_cobjects,vcl,\
399 vcl/source/filter/jpeg/transupp \
402 # optional parts
404 ## handle Graphite
405 ifeq ($(ENABLE_GRAPHITE),TRUE)
406 # add graphite sources for all platforms
407 $(eval $(call gb_Library_add_exception_objects,vcl,\
408 vcl/source/glyphs/graphite_features \
409 vcl/source/glyphs/graphite_layout \
412 # handle X11 platforms, which have additional files and possibly system graphite
413 ifneq (,$(or $(USING_X11),$(ENABLE_HEADLESS)))
414 $(eval $(call gb_Library_add_exception_objects,vcl,\
415 vcl/unx/generic/glyphs/graphite_serverfont \
417 endif
419 $(eval $(call gb_Library_use_external,vcl,graphite))
421 endif
423 vcl_quartz_code= \
424 vcl/quartz/salbmp \
425 vcl/quartz/utils \
426 vcl/quartz/salgdicommon \
427 vcl/quartz/salvd \
429 vcl_coretext_code= \
430 vcl/quartz/CTRunData \
431 vcl/quartz/ctfonts \
432 vcl/quartz/ctlayout \
433 vcl/quartz/salgdi \
435 ifeq ($(OS),MACOSX)
437 $(eval $(call gb_Library_add_cxxflags,vcl,\
438 $(gb_OBJCXXFLAGS) \
441 $(eval $(call gb_Library_add_defs,vcl,\
442 -DMACOSX_BUNDLE_IDENTIFIER=\"$(MACOSX_BUNDLE_IDENTIFIER)\" \
445 $(eval $(call gb_Library_add_exception_objects,vcl,\
446 $(vcl_coretext_code) \
449 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
450 ApplicationServices \
453 $(eval $(call gb_Library_add_objcxxobjects,vcl,\
454 vcl/osx/a11yactionwrapper \
455 vcl/osx/a11ycomponentwrapper \
456 vcl/osx/a11yfactory \
457 vcl/osx/a11yrolehelper \
458 vcl/osx/a11yselectionwrapper \
459 vcl/osx/a11ytablewrapper \
460 vcl/osx/a11ytextattributeswrapper \
461 vcl/osx/a11ytextwrapper \
462 vcl/osx/a11yutil \
463 vcl/osx/a11yvaluewrapper \
464 vcl/osx/a11ywrapper \
465 vcl/osx/a11ywrapperbutton \
466 vcl/osx/a11ywrappercheckbox \
467 vcl/osx/a11ywrappercombobox \
468 vcl/osx/a11ywrappergroup \
469 vcl/osx/a11ywrapperlist \
470 vcl/osx/a11ywrapperradiobutton \
471 vcl/osx/a11ywrapperradiogroup \
472 vcl/osx/a11ywrapperrow \
473 vcl/osx/a11ywrapperscrollarea \
474 vcl/osx/a11ywrapperscrollbar \
475 vcl/osx/a11ywrappersplitter \
476 vcl/osx/a11ywrapperstatictext \
477 vcl/osx/a11ywrappertabgroup \
478 vcl/osx/a11ywrappertextarea \
479 vcl/osx/a11ywrappertoolbar \
480 vcl/osx/salnstimer \
481 vcl/osx/vclnsapp \
482 vcl/osx/printaccessoryview \
483 vcl/osx/printview \
484 vcl/osx/salframeview \
485 vcl/osx/salnsmenu \
487 $(eval $(call gb_Library_add_exception_objects,vcl,\
488 vcl/osx/a11yfocuslistener \
489 vcl/osx/a11yfocustracker \
490 vcl/osx/a11ylistener \
491 vcl/osx/documentfocuslistener \
492 vcl/osx/saldata \
493 vcl/osx/salinst \
494 vcl/osx/salsys \
495 vcl/osx/saltimer \
496 vcl/osx/DataFlavorMapping \
497 vcl/osx/DragActionConversion \
498 vcl/osx/DragSource \
499 vcl/osx/DragSourceContext \
500 vcl/osx/DropTarget \
501 vcl/osx/HtmlFmtFlt \
502 vcl/osx/OSXTransferable \
503 vcl/osx/PictToBmpFlt \
504 vcl/osx/clipboard \
505 vcl/osx/service_entry \
506 $(vcl_quartz_code) \
507 vcl/quartz/salgdiutils \
508 vcl/osx/salnativewidgets \
509 vcl/osx/salprn \
510 vcl/osx/salframe \
511 vcl/osx/salmenu \
512 vcl/osx/salobj \
514 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
515 $(if $(filter X86_64,$(CPUNAME)),,QuickTime) \
516 Cocoa \
517 Carbon \
518 CoreFoundation \
519 OpenGL \
522 ifneq ($(ENABLE_MACOSX_SANDBOX),TRUE)
523 $(eval $(call gb_Library_use_libraries,vcl,\
524 AppleRemote \
526 endif
528 endif
530 vcl_headless_code= \
531 vcl/headless/svpbmp \
532 vcl/headless/svpdummies \
533 vcl/headless/svpframe \
534 vcl/headless/svpgdi \
535 vcl/headless/svpinst \
536 vcl/headless/svpdata \
537 vcl/headless/svpvd \
538 vcl/unx/generic/app/gendisp \
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/gcach_layout \
547 vcl/unx/generic/glyphs/glyphcache \
548 vcl/unx/generic/glyphs/scrptrun \
549 vcl/unx/generic/fontmanager/fontsubst \
550 vcl/unx/generic/fontmanager/fontcache \
551 vcl/unx/generic/fontmanager/fontconfig \
552 vcl/unx/generic/fontmanager/fontmanager \
553 vcl/unx/generic/fontmanager/helper \
554 vcl/unx/generic/fontmanager/parseAFM \
555 vcl/headless/svpcairotextrender \
556 vcl/unx/generic/print/bitmap_gfx \
557 vcl/unx/generic/print/common_gfx \
558 vcl/unx/generic/print/glyphset \
559 vcl/unx/generic/print/printerjob \
560 vcl/unx/generic/print/psputil \
561 vcl/unx/generic/print/genpspgraphics \
562 vcl/unx/generic/print/genprnpsp \
563 vcl/unx/generic/print/prtsetup \
564 vcl/unx/generic/print/text_gfx \
565 vcl/unx/generic/app/gensys \
566 vcl/unx/generic/app/geninst \
568 ifeq ($(USING_X11),TRUE)
569 $(eval $(call gb_Library_add_exception_objects,vcl,\
570 vcl/unx/generic/plugadapt/salplug \
571 vcl/unx/generic/printer/jobdata \
572 vcl/unx/generic/printer/ppdparser \
573 vcl/unx/generic/gdi/nativewindowhandleprovider \
574 vcl/unx/generic/window/screensaverinhibitor \
575 $(if $(filter TRUE,$(ENABLE_CUPS)),\
576 vcl/unx/generic/printer/cupsmgr \
577 vcl/unx/generic/printer/printerinfomanager \
579 vcl/null/printerinfomanager \
581 $(vcl_headless_code) \
582 $(vcl_headless_freetype_code) \
585 $(eval $(call gb_Library_use_externals,vcl,\
586 cairo \
587 cups \
588 dbus \
589 fontconfig \
590 freetype \
591 valgrind \
593 endif
595 ifeq ($(ENABLE_HEADLESS),TRUE)
596 $(eval $(call gb_Library_add_exception_objects,vcl,\
597 vcl/unx/generic/printer/jobdata \
598 vcl/unx/generic/printer/ppdparser \
599 vcl/null/printerinfomanager \
600 vcl/headless/headlessinst \
601 $(vcl_headless_code) \
602 $(vcl_headless_freetype_code) \
605 $(eval $(call gb_Library_use_externals,vcl,\
606 cairo \
607 freetype \
609 ifneq ($(OS),EMSCRIPTEN)
610 $(eval $(call gb_Library_use_externals,vcl,\
611 fontconfig \
613 endif
614 else
615 $(eval $(call gb_Library_add_exception_objects,vcl,\
616 vcl/opengl/DeviceInfo \
617 vcl/opengl/gdiimpl \
618 vcl/opengl/salbmp \
619 vcl/opengl/scale \
620 vcl/opengl/framebuffer \
621 vcl/opengl/program \
622 vcl/opengl/texture \
623 vcl/opengl/FixedTextureAtlas \
624 vcl/opengl/PackedTextureAtlas \
625 vcl/source/opengl/OpenGLContext \
626 vcl/source/opengl/OpenGLHelper \
627 vcl/source/window/openglwin \
629 ifeq ($(OS),LINUX)
630 $(eval $(call gb_Library_add_libs,vcl,\
631 -lm \
632 -ldl \
633 -lpthread \
634 -lGL \
635 -lX11 \
637 endif
638 endif
640 ifeq ($(OS),ANDROID)
641 $(eval $(call gb_Library_add_libs,vcl,\
642 -llog \
643 -landroid \
644 -llo-bootstrap \
646 $(eval $(call gb_Library_add_exception_objects,vcl,\
647 vcl/unx/generic/printer/jobdata \
648 vcl/unx/generic/printer/ppdparser \
649 vcl/null/printerinfomanager \
650 vcl/android/androidinst \
651 $(vcl_headless_code) \
652 $(vcl_headless_freetype_code) \
655 $(eval $(call gb_Library_use_externals,vcl,\
656 cairo \
657 fontconfig \
658 freetype \
659 expat \
661 endif
663 ifeq ($(OS),IOS)
664 $(eval $(call gb_Library_add_cxxflags,vcl,\
665 $(gb_OBJCXXFLAGS) \
667 $(eval $(call gb_Library_add_exception_objects,vcl,\
668 vcl/ios/iosinst \
669 vcl/ios/dummies \
670 $(vcl_really_generic_code) \
671 $(vcl_coretext_code) \
672 $(vcl_quartz_code) \
673 $(vcl_headless_code) \
675 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
676 UIKit \
677 CoreFoundation \
679 endif
681 # OS-specific stuff
683 ifeq ($(OS),WNT)
684 $(eval $(call gb_Library_add_exception_objects,vcl,\
685 vcl/glyphy/demo \
686 vcl/opengl/win/gdiimpl \
687 vcl/opengl/win/WinDeviceInfo \
688 vcl/opengl/win/blocklist_parser \
689 vcl/win/app/saldata \
690 vcl/win/app/salinfo \
691 vcl/win/app/salinst \
692 vcl/win/app/salshl \
693 vcl/win/app/saltimer \
694 vcl/win/gdi/gdiimpl \
695 vcl/win/gdi/salbmp \
696 vcl/win/gdi/salgdi \
697 vcl/win/gdi/salgdi2 \
698 vcl/win/gdi/salfont \
699 vcl/win/gdi/salgdi_gdiplus \
700 vcl/win/gdi/salnativewidgets-luna \
701 vcl/win/gdi/salprn \
702 vcl/win/gdi/salvd \
703 vcl/win/gdi/winlayout \
704 vcl/win/gdi/wntgdi \
705 vcl/win/window/salframe \
706 vcl/win/window/keynames \
707 vcl/win/window/salmenu \
708 vcl/win/window/salobj \
711 $(eval $(call gb_Library_use_system_win32_libs,vcl,\
712 advapi32 \
713 crypt32 \
714 gdi32 \
715 gdiplus \
716 glu32 \
717 imm32 \
718 mpr \
719 msimg32 \
720 opengl32 \
721 ole32 \
722 shell32 \
723 usp10 \
724 uuid \
725 version \
726 winspool \
727 setupapi \
728 shlwapi \
731 $(eval $(call gb_Library_add_nativeres,vcl,vcl/salsrc))
732 endif
734 ifeq ($(OS), WNT)
735 $(eval $(call gb_Library_use_externals,vcl,\
736 glyphy \
738 endif
740 ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS)))
741 $(eval $(call gb_Library_add_libs,vcl,\
742 -lm $(DLOPEN_LIBS) \
743 -lpthread \
744 -lGL \
745 -lX11 \
746 -lXext \
748 ifneq ($(ENABLE_HEADLESS),TRUE)
749 $(eval $(call gb_Library_add_exception_objects,vcl,\
750 vcl/opengl/x11/X11DeviceInfo \
752 endif
753 endif
755 # Runtime dependency for unit-tests
756 $(eval $(call gb_Library_use_restarget,vcl,vcl))
758 ifeq ($(OS),WNT)
759 # HACK: dependency on icon themes so running unit tests don't
760 # prevent delivering these by having open file handles on WNT
761 $(eval $(call gb_Library_use_package,vcl,postprocess_images))
762 endif
764 # vim: set noet sw=4 ts=4: