Finally remove non-native menu bar
[LibreOffice.git] / vcl / Library_vcl.mk
blob95c466d27f20d10fdce0e67c5704d80ee35e2d98
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 $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.common))
24 ifeq ($(OS),MACOSX)
25 $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.macosx))
26 else ifeq ($(OS),WNT)
27 $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.windows))
28 else ifeq ($(OS),ANDROID)
29 $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.android))
30 else ifeq ($(OS),IOS)
31 $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.ios))
32 else ifeq ($(ENABLE_HEADLESS),TRUE)
33 $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.headless))
34 else
35 $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.unx))
36 endif
38 $(eval $(call gb_Library_set_precompiled_header,vcl,$(SRCDIR)/vcl/inc/pch/precompiled_vcl))
40 $(eval $(call gb_Library_set_include,vcl,\
41 $$(INCLUDE) \
42 -I$(SRCDIR)/vcl/inc \
45 $(eval $(call gb_Library_add_defs,vcl,\
46 -DVCL_DLLIMPLEMENTATION \
47 -DDLLIMPLEMENTATION_UITEST \
48 -DCUI_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,cui))\" \
49 -DDESKTOP_DETECTOR_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,desktop_detector))\" \
50 -DTK_DLL_NAME=\"$(call gb_Library_get_runtime_filename,$(call gb_Library__get_name,tk))\" \
51 -DENABLE_MERGELIBS=$(if $(MERGELIBS),1,0) \
54 ifeq ($(SYSTEM_GLM),TRUE)
55 $(eval $(call gb_Library_add_defs,vcl,\
56 -DGLM_ENABLE_EXPERIMENTAL \
58 endif
60 $(eval $(call gb_Library_use_sdk_api,vcl))
62 $(eval $(call gb_Library_use_custom_headers,vcl,\
63 officecfg/registry \
66 $(eval $(call gb_Library_use_externals,vcl,\
67 libjpeg \
68 libeot \
69 $(if $(filter PDFIUM,$(BUILD_TYPE)),pdfium) \
72 $(eval $(call gb_Library_use_libraries,vcl,\
73 $(call gb_Helper_optional,BREAKPAD, \
74 crashreport) \
75 svl \
76 tl \
77 utl \
78 sot \
79 ucbhelper \
80 basegfx \
81 comphelper \
82 cppuhelper \
83 i18nlangtag \
84 i18nutil \
85 $(if $(filter OPENCL,$(BUILD_TYPE)),opencl) \
86 cppu \
87 sal \
88 salhelper \
89 xmlreader \
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 graphite \
119 harfbuzz \
120 icu_headers \
121 icuuc \
122 lcms2 \
123 mdds_headers \
125 ifeq ($(ENABLE_HEADLESS),)
126 $(eval $(call gb_Library_use_externals,vcl,\
127 epoxy \
129 endif
131 $(eval $(call gb_Library_add_exception_objects,vcl,\
132 vcl/source/window/errinf \
133 vcl/source/window/settings \
134 vcl/source/window/paint \
135 vcl/source/window/abstdlg \
136 vcl/source/window/accel \
137 vcl/source/window/accmgr \
138 vcl/source/window/brdwin \
139 vcl/source/window/accessibility \
140 vcl/source/window/legacyaccessibility \
141 vcl/source/window/clipping \
142 vcl/source/window/stacking \
143 vcl/source/window/debug \
144 vcl/source/window/globalization \
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/msgbox \
172 vcl/source/window/popupmenuwindow \
173 vcl/source/window/printdlg \
174 vcl/source/window/scrwnd \
175 vcl/source/window/seleng \
176 vcl/source/window/split \
177 vcl/source/window/splitwin \
178 vcl/source/window/status \
179 vcl/source/window/syschild \
180 vcl/source/window/syswin \
181 vcl/source/window/tabdlg \
182 vcl/source/window/tabpage \
183 vcl/source/window/taskpanelist \
184 vcl/source/window/toolbox2 \
185 vcl/source/window/toolbox \
186 vcl/source/window/window2 \
187 vcl/source/window/window3 \
188 vcl/source/window/window \
189 vcl/source/window/winproc \
190 vcl/source/window/wrkwin \
191 vcl/source/window/EnumContext \
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/listctrl \
203 vcl/source/control/longcurr \
204 vcl/source/control/imp_listbox \
205 vcl/source/control/listbox \
206 vcl/source/control/menubtn \
207 vcl/source/control/morebtn \
208 vcl/source/control/notebookbar \
209 vcl/source/control/quickselectionengine \
210 vcl/source/control/prgsbar \
211 vcl/source/control/scrbar \
212 vcl/source/control/slider \
213 vcl/source/control/spinbtn \
214 vcl/source/control/spinfld \
215 vcl/source/control/tabctrl \
216 vcl/source/control/throbber \
217 vcl/source/edit/vclmedit \
218 vcl/source/edit/textdata \
219 vcl/source/edit/textdoc \
220 vcl/source/edit/texteng \
221 vcl/source/edit/textundo \
222 vcl/source/edit/textview \
223 vcl/source/edit/txtattr \
224 vcl/source/edit/xtextedt \
225 vcl/source/outdev/outdev \
226 vcl/source/outdev/outdevstate \
227 vcl/source/outdev/outdevstatestack \
228 vcl/source/outdev/clipping \
229 vcl/source/outdev/polygon \
230 vcl/source/outdev/transparent \
231 vcl/source/outdev/mask \
232 vcl/source/outdev/bitmap \
233 vcl/source/outdev/font \
234 vcl/source/outdev/text \
235 vcl/source/outdev/textline \
236 vcl/source/outdev/pixel \
237 vcl/source/outdev/rect \
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/bitmapex \
252 vcl/source/gdi/bmpacc2 \
253 vcl/source/gdi/bmpacc3 \
254 vcl/source/gdi/bmpacc \
255 vcl/source/gdi/bmpfast \
256 vcl/source/gdi/configsettings \
257 vcl/source/gdi/cvtgrf \
258 vcl/source/gdi/svmconverter \
259 vcl/source/gdi/dibtools \
260 vcl/source/gdi/embeddedfontshelper \
261 vcl/source/gdi/extoutdevdata \
262 vcl/source/gdi/gdimtf \
263 vcl/source/gdi/gdimetafiletools \
264 vcl/source/gdi/gfxlink \
265 vcl/source/gdi/gradient \
266 vcl/source/gdi/graph \
267 vcl/source/gdi/graphictools \
268 vcl/source/gdi/hatch \
269 vcl/source/gdi/impanmvw \
270 vcl/source/gdi/impgraph \
271 vcl/source/gdi/impvect \
272 vcl/source/gdi/jobset \
273 vcl/source/gdi/lineinfo \
274 vcl/source/gdi/mapmod \
275 vcl/source/gdi/metaact \
276 vcl/source/gdi/octree \
277 vcl/source/gdi/oldprintadaptor \
278 vcl/source/gdi/pdfextoutdevdata \
279 vcl/source/gdi/pdffontcache \
280 vcl/source/gdi/pdfwriter \
281 vcl/source/gdi/pdfwriter_impl2 \
282 vcl/source/gdi/pdfwriter_impl \
283 vcl/source/gdi/pngread \
284 vcl/source/gdi/pngwrite \
285 vcl/source/gdi/print2 \
286 vcl/source/gdi/print3 \
287 vcl/source/gdi/print \
288 vcl/source/gdi/regband \
289 vcl/source/gdi/region \
290 vcl/source/gdi/regionband \
291 vcl/source/gdi/salgdilayout \
292 vcl/source/gdi/salgdiimpl \
293 vcl/source/gdi/sallayout \
294 vcl/source/gdi/salmisc \
295 vcl/source/gdi/salnativewidgets-none \
296 vcl/source/gdi/vectorgraphicdata \
297 vcl/source/gdi/textlayout \
298 vcl/source/gdi/virdev \
299 vcl/source/gdi/wall \
300 vcl/source/gdi/scrptrun \
301 vcl/source/gdi/CommonSalLayout \
302 vcl/source/graphic/GraphicLoader \
303 vcl/source/graphic/GraphicObject \
304 vcl/source/graphic/GraphicObject2 \
305 vcl/source/graphic/grfattr \
306 vcl/source/graphic/Manager \
307 vcl/source/graphic/UnoGraphic \
308 vcl/source/graphic/UnoGraphicDescriptor \
309 vcl/source/graphic/UnoGraphicObject \
310 vcl/source/graphic/UnoGraphicProvider \
311 vcl/source/graphic/UnoGraphicTransformer \
312 vcl/source/bitmap/bitmap \
313 vcl/source/bitmap/bitmapfilter \
314 vcl/source/bitmap/BitmapAlphaClampFilter \
315 vcl/source/bitmap/BitmapMonochromeFilter \
316 vcl/source/bitmap/BitmapSmoothenFilter \
317 vcl/source/bitmap/BitmapLightenFilter \
318 vcl/source/bitmap/BitmapDisabledImageFilter \
319 vcl/source/bitmap/BitmapColorizeFilter \
320 vcl/source/bitmap/bitmappaint \
321 vcl/source/bitmap/BitmapGaussianSeparableBlurFilter \
322 vcl/source/bitmap/BitmapSobelGreyFilter \
323 vcl/source/bitmap/BitmapSolarizeFilter \
324 vcl/source/bitmap/BitmapSepiaFilter \
325 vcl/source/bitmap/BitmapMosaicFilter \
326 vcl/source/bitmap/BitmapEmbossGreyFilter \
327 vcl/source/bitmap/BitmapPopArtFilter \
328 vcl/source/bitmap/BitmapDuoToneFilter \
329 vcl/source/bitmap/BitmapConvolutionMatrixFilter \
330 vcl/source/bitmap/BitmapMedianFilter \
331 vcl/source/bitmap/BitmapInterpolateScaleFilter \
332 vcl/source/bitmap/BitmapSeparableUnsharpenFilter \
333 vcl/source/bitmap/BitmapFastScaleFilter \
334 vcl/source/bitmap/BitmapScaleSuperFilter \
335 vcl/source/bitmap/BitmapScaleConvolutionFilter \
336 vcl/source/bitmap/BitmapSymmetryCheck \
337 vcl/source/bitmap/BitmapColorQuantizationFilter \
338 vcl/source/bitmap/BitmapSimpleColorQuantizationFilter \
339 vcl/source/bitmap/BitmapTools \
340 vcl/source/bitmap/checksum \
341 vcl/source/image/Image \
342 vcl/source/image/ImageTree \
343 vcl/source/image/ImageRepository \
344 vcl/source/image/ImplImage \
345 vcl/source/image/ImplImageTree \
346 vcl/source/helper/canvasbitmap \
347 vcl/source/helper/canvastools \
348 vcl/source/helper/commandinfoprovider \
349 vcl/source/helper/displayconnectiondispatch \
350 vcl/source/helper/errcode \
351 vcl/source/helper/evntpost \
352 vcl/source/helper/lazydelete \
353 vcl/source/helper/strhelper \
354 vcl/source/helper/threadex \
355 vcl/source/app/brand \
356 vcl/source/app/customweld \
357 vcl/source/app/dbggui \
358 vcl/source/app/dndhelp \
359 vcl/source/app/help \
360 vcl/source/app/i18nhelp \
361 vcl/source/app/idle \
362 vcl/source/app/salusereventlist \
363 vcl/source/app/salvtables \
364 vcl/source/app/scheduler \
365 vcl/source/app/session \
366 vcl/source/app/settings \
367 vcl/source/app/IconThemeInfo \
368 vcl/source/app/IconThemeScanner \
369 vcl/source/app/IconThemeSelector \
370 vcl/source/app/ITiledRenderable \
371 vcl/source/app/sound \
372 vcl/source/app/stdtext \
373 vcl/source/app/svapp \
374 vcl/source/app/svdata \
375 vcl/source/app/svmain \
376 vcl/source/app/svmainhook \
377 vcl/source/app/timer \
378 vcl/source/app/unohelp2 \
379 vcl/source/app/unohelp \
380 vcl/source/app/vclevent \
381 vcl/source/components/dtranscomp \
382 vcl/source/components/factory \
383 vcl/source/components/fontident \
384 vcl/source/filter/FilterConfigCache \
385 vcl/source/filter/FilterConfigItem \
386 vcl/source/filter/graphicfilter \
387 vcl/source/filter/graphicfilter2 \
388 vcl/source/filter/GraphicNativeTransform \
389 vcl/source/filter/GraphicNativeMetadata \
390 vcl/source/filter/igif/decode \
391 vcl/source/filter/igif/gifread \
392 vcl/source/filter/ipdf/pdfread \
393 vcl/source/filter/ipdf/pdfdocument \
394 vcl/source/filter/ixbm/xbmread \
395 vcl/source/filter/ixpm/xpmread \
396 vcl/source/filter/jpeg/Exif \
397 vcl/source/filter/jpeg/jpeg \
398 vcl/source/filter/jpeg/jpegc \
399 vcl/source/filter/jpeg/JpegReader \
400 vcl/source/filter/jpeg/JpegWriter \
401 vcl/source/filter/jpeg/JpegTransform \
402 vcl/source/filter/wmf/emfwr \
403 vcl/source/filter/wmf/wmf \
404 vcl/source/filter/wmf/wmfexternal \
405 vcl/source/filter/wmf/wmfwr \
406 vcl/source/font/Feature \
407 vcl/source/font/FeatureCollector \
408 vcl/source/font/FeatureParser \
409 vcl/source/font/OpenTypeFeatureDefinitonList \
410 vcl/source/font/PhysicalFontCollection \
411 vcl/source/font/PhysicalFontFace \
412 vcl/source/font/PhysicalFontFamily \
413 vcl/source/font/fontattributes \
414 vcl/source/font/fontselect \
415 vcl/source/font/fontinstance \
416 vcl/source/font/fontcache \
417 vcl/source/font/fontcharmap \
418 vcl/source/font/fontmetric \
419 vcl/source/font/font \
420 vcl/source/fontsubset/cff \
421 vcl/source/fontsubset/fontsubset \
422 vcl/source/fontsubset/list \
423 vcl/source/fontsubset/sft \
424 vcl/source/fontsubset/ttcr \
425 vcl/source/fontsubset/xlat \
426 vcl/source/uitest/logger \
427 vcl/source/uitest/uiobject \
428 vcl/source/uitest/uitest \
429 vcl/source/uitest/uno/uiobject_uno \
430 vcl/source/uitest/uno/uitest_uno \
431 vcl/backendtest/outputdevice/bitmap \
432 vcl/backendtest/outputdevice/common \
433 vcl/backendtest/outputdevice/gradient \
434 vcl/backendtest/outputdevice/line \
435 vcl/backendtest/outputdevice/outputdevice \
436 vcl/backendtest/outputdevice/pixel \
437 vcl/backendtest/outputdevice/polygon \
438 vcl/backendtest/outputdevice/polypolygon \
439 vcl/backendtest/outputdevice/polyline \
440 vcl/backendtest/outputdevice/rectangle \
443 $(eval $(call gb_Library_add_cobjects,vcl,\
444 vcl/source/filter/jpeg/transupp \
447 # optional parts
449 vcl_quartz_code= \
450 vcl/quartz/salbmp \
451 vcl/quartz/utils \
452 vcl/quartz/salgdicommon \
453 vcl/quartz/salvd \
455 vcl_coretext_code= \
456 vcl/quartz/ctfonts \
457 vcl/quartz/salgdi \
459 ifeq ($(OS),MACOSX)
461 $(eval $(call gb_Library_add_cxxflags,vcl,\
462 $(gb_OBJCXXFLAGS) \
465 $(eval $(call gb_Library_add_defs,vcl,\
466 -DMACOSX_BUNDLE_IDENTIFIER=\"$(MACOSX_BUNDLE_IDENTIFIER)\" \
469 $(eval $(call gb_Library_add_exception_objects,vcl,\
470 $(vcl_coretext_code) \
473 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
474 ApplicationServices \
477 $(eval $(call gb_Library_add_objcxxobjects,vcl,\
478 vcl/osx/a11yactionwrapper \
479 vcl/osx/a11ycomponentwrapper \
480 vcl/osx/a11yfactory \
481 vcl/osx/a11yrolehelper \
482 vcl/osx/a11yselectionwrapper \
483 vcl/osx/a11ytablewrapper \
484 vcl/osx/a11ytextattributeswrapper \
485 vcl/osx/a11ytextwrapper \
486 vcl/osx/a11yutil \
487 vcl/osx/a11yvaluewrapper \
488 vcl/osx/a11ywrapper \
489 vcl/osx/a11ywrapperbutton \
490 vcl/osx/a11ywrappercheckbox \
491 vcl/osx/a11ywrappercombobox \
492 vcl/osx/a11ywrappergroup \
493 vcl/osx/a11ywrapperlist \
494 vcl/osx/a11ywrapperradiobutton \
495 vcl/osx/a11ywrapperradiogroup \
496 vcl/osx/a11ywrapperrow \
497 vcl/osx/a11ywrapperscrollarea \
498 vcl/osx/a11ywrapperscrollbar \
499 vcl/osx/a11ywrappersplitter \
500 vcl/osx/a11ywrapperstatictext \
501 vcl/osx/a11ywrappertabgroup \
502 vcl/osx/a11ywrappertextarea \
503 vcl/osx/a11ywrappertoolbar \
504 vcl/osx/salnstimer \
505 vcl/osx/vclnsapp \
506 vcl/osx/printaccessoryview \
507 vcl/osx/printview \
508 vcl/osx/salframeview \
509 vcl/osx/salnsmenu \
511 $(eval $(call gb_Library_add_exception_objects,vcl,\
512 vcl/osx/a11yfocuslistener \
513 vcl/osx/a11yfocustracker \
514 vcl/osx/a11ylistener \
515 vcl/osx/documentfocuslistener \
516 vcl/osx/saldata \
517 vcl/osx/salinst \
518 vcl/osx/salsys \
519 vcl/osx/saltimer \
520 vcl/osx/DataFlavorMapping \
521 vcl/osx/DragActionConversion \
522 vcl/osx/DragSource \
523 vcl/osx/DragSourceContext \
524 vcl/osx/DropTarget \
525 vcl/osx/HtmlFmtFlt \
526 vcl/osx/OSXTransferable \
527 vcl/osx/PictToBmpFlt \
528 vcl/osx/clipboard \
529 vcl/osx/service_entry \
530 $(vcl_quartz_code) \
531 vcl/quartz/salgdiutils \
532 vcl/osx/salnativewidgets \
533 vcl/osx/salprn \
534 vcl/osx/salframe \
535 vcl/osx/salmenu \
536 vcl/osx/salobj \
538 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
539 $(if $(filter X86_64,$(CPUNAME)),,QuickTime) \
540 Cocoa \
541 Carbon \
542 CoreFoundation \
545 ifneq ($(ENABLE_MACOSX_SANDBOX),TRUE)
546 $(eval $(call gb_Library_use_libraries,vcl,\
547 AppleRemote \
549 endif
551 endif
553 vcl_headless_code= \
554 vcl/headless/svpframe \
555 $(if $(filter-out IOS,$(OS)), \
556 vcl/headless/svpbmp \
557 vcl/headless/svpgdi \
558 vcl/headless/svpdata) \
559 vcl/headless/svpdummies \
560 vcl/headless/svpinst \
561 vcl/headless/svpvd \
562 vcl/unx/generic/app/gendisp \
563 vcl/unx/generic/app/geninst \
564 vcl/unx/generic/app/gensys \
566 vcl_headless_freetype_code=\
567 vcl/headless/svpprn \
568 vcl/headless/svptext \
569 vcl/headless/svpglyphcache \
570 vcl/unx/generic/gdi/cairotextrender \
571 vcl/unx/generic/glyphs/freetype_glyphcache \
572 vcl/unx/generic/glyphs/glyphcache \
573 vcl/unx/generic/fontmanager/fontsubst \
574 vcl/unx/generic/fontmanager/fontconfig \
575 vcl/unx/generic/fontmanager/fontmanager \
576 vcl/unx/generic/fontmanager/helper \
577 vcl/headless/svpcairotextrender \
578 vcl/unx/generic/print/bitmap_gfx \
579 vcl/unx/generic/print/common_gfx \
580 vcl/unx/generic/print/glyphset \
581 vcl/unx/generic/print/printerjob \
582 vcl/unx/generic/print/psputil \
583 vcl/unx/generic/print/genpspgraphics \
584 vcl/unx/generic/print/genprnpsp \
585 vcl/unx/generic/print/prtsetup \
586 vcl/unx/generic/print/text_gfx \
588 ifeq ($(USING_X11),TRUE)
589 $(eval $(call gb_Library_add_exception_objects,vcl,\
590 vcl/unx/generic/plugadapt/salplug \
591 vcl/unx/generic/printer/jobdata \
592 vcl/unx/generic/printer/ppdparser \
593 vcl/unx/generic/gdi/nativewindowhandleprovider \
594 vcl/unx/generic/window/screensaverinhibitor \
595 vcl/unx/generic/printer/cpdmgr \
596 $(if $(filter TRUE,$(ENABLE_CUPS)),\
597 vcl/unx/generic/printer/cupsmgr \
598 vcl/unx/generic/printer/printerinfomanager \
600 vcl/null/printerinfomanager \
602 $(vcl_headless_code) \
603 $(vcl_headless_freetype_code) \
606 $(eval $(call gb_Library_use_externals,vcl,\
607 cairo \
608 cups \
609 dbus \
610 fontconfig \
611 freetype \
612 valgrind \
614 endif
616 ifeq ($(ENABLE_HEADLESS),TRUE)
617 $(eval $(call gb_Library_add_exception_objects,vcl,\
618 vcl/unx/generic/printer/jobdata \
619 vcl/unx/generic/printer/ppdparser \
620 vcl/null/printerinfomanager \
621 vcl/headless/headlessinst \
622 $(vcl_headless_code) \
623 $(vcl_headless_freetype_code) \
626 $(eval $(call gb_Library_use_externals,vcl,\
627 cairo \
628 freetype \
629 fontconfig \
631 ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS)))
632 $(eval $(call gb_Library_add_libs,vcl,\
633 -lpthread \
635 endif
636 else
637 $(eval $(call gb_Library_add_exception_objects,vcl,\
638 vcl/opengl/DeviceInfo \
639 vcl/opengl/gdiimpl \
640 vcl/opengl/salbmp \
641 vcl/opengl/scale \
642 vcl/opengl/framebuffer \
643 vcl/opengl/program \
644 vcl/opengl/texture \
645 vcl/opengl/FixedTextureAtlas \
646 vcl/opengl/PackedTextureAtlas \
647 vcl/opengl/RenderList \
648 vcl/opengl/LineRenderUtils \
649 vcl/source/opengl/OpenGLContext \
650 vcl/source/opengl/OpenGLHelper \
652 ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS)))
653 $(eval $(call gb_Library_add_libs,vcl,\
654 -lm $(DLOPEN_LIBS) \
655 -lpthread \
656 -lX11 \
657 -lXext \
659 $(eval $(call gb_Library_add_exception_objects,vcl,\
660 vcl/opengl/x11/X11DeviceInfo \
662 endif
663 endif
665 ifeq ($(OS),HAIKU)
666 $(eval $(call gb_Library_add_exception_objects,vcl,\
667 vcl/unx/generic/printer/jobdata \
668 vcl/unx/generic/printer/ppdparser \
669 vcl/null/printerinfomanager \
670 $(vcl_headless_code) \
671 $(vcl_headless_freetype_code) \
674 $(eval $(call gb_Library_add_libs,vcl,\
675 -lbe \
678 $(eval $(call gb_Library_add_exception_objects,vcl, \
679 $(if $(or $(ENABLE_QT5),$(ENABLE_KDE5)),vcl/unx/generic/plugadapt/salplug) \
682 $(eval $(call gb_Library_use_externals,vcl,\
683 cairo \
684 fontconfig \
685 freetype \
686 expat \
688 endif
690 ifeq ($(OS),ANDROID)
691 $(eval $(call gb_Library_add_libs,vcl,\
692 -llog \
693 -landroid \
694 -llo-bootstrap \
696 $(eval $(call gb_Library_add_exception_objects,vcl,\
697 vcl/unx/generic/printer/jobdata \
698 vcl/unx/generic/printer/ppdparser \
699 vcl/null/printerinfomanager \
700 vcl/android/androidinst \
701 $(vcl_headless_code) \
702 $(vcl_headless_freetype_code) \
705 $(eval $(call gb_Library_use_externals,vcl,\
706 cairo \
707 fontconfig \
708 freetype \
709 expat \
711 endif
713 ifeq ($(OS),IOS)
714 $(eval $(call gb_Library_add_cxxflags,vcl,\
715 $(gb_OBJCXXFLAGS) \
717 $(eval $(call gb_Library_add_exception_objects,vcl,\
718 vcl/ios/iosinst \
719 vcl/ios/dummies \
720 $(vcl_really_generic_code) \
721 $(vcl_coretext_code) \
722 $(vcl_quartz_code) \
723 $(vcl_headless_code) \
725 $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
726 UIKit \
727 CoreFoundation \
729 endif
731 # OS-specific stuff
733 ifeq ($(OS),WNT)
734 $(eval $(call gb_Library_add_exception_objects,vcl,\
735 vcl/opengl/win/gdiimpl \
736 vcl/opengl/win/WinDeviceInfo \
737 vcl/opengl/win/blocklist_parser \
738 vcl/win/app/saldata \
739 vcl/win/app/salinfo \
740 vcl/win/app/salinst \
741 vcl/win/app/salshl \
742 vcl/win/app/saltimer \
743 vcl/win/gdi/gdiimpl \
744 vcl/win/gdi/salbmp \
745 vcl/win/gdi/salgdi \
746 vcl/win/gdi/salgdi2 \
747 vcl/win/gdi/salfont \
748 vcl/win/gdi/salgdi_gdiplus \
749 vcl/win/gdi/salnativewidgets-luna \
750 vcl/win/gdi/salprn \
751 vcl/win/gdi/salvd \
752 vcl/win/gdi/winlayout \
753 vcl/win/gdi/DWriteTextRenderer \
754 vcl/win/window/salframe \
755 vcl/win/window/keynames \
756 vcl/win/window/salmenu \
757 vcl/win/window/salobj \
760 $(eval $(call gb_Library_use_system_win32_libs,vcl,\
761 advapi32 \
762 crypt32 \
763 gdi32 \
764 gdiplus \
765 imm32 \
766 mpr \
767 ole32 \
768 shell32 \
769 usp10 \
770 uuid \
771 version \
772 winspool \
773 setupapi \
774 shlwapi \
777 $(eval $(call gb_Library_add_nativeres,vcl,vcl/salsrc))
778 endif
780 ifeq ($(OS),WNT)
781 # HACK: dependency on icon themes so running unit tests don't
782 # prevent delivering these by having open file handles on WNT
783 $(eval $(call gb_Library_use_package,vcl,postprocess_images))
784 endif
786 # vim: set noet sw=4 ts=4: