1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 11# OpenOffice.org is free software: you can redistribute it and/or modify 12# it under the terms of the GNU Lesser General Public License version 3 13# only, as published by the Free Software Foundation. 14# 15# OpenOffice.org is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU Lesser General Public License version 3 for more details 19# (a copy is included in the LICENSE file that accompanied this code). 20# 21# You should have received a copy of the GNU Lesser General Public License 22# version 3 along with OpenOffice.org. If not, see 23# <http://www.openoffice.org/license.html> 24# for a copy of the LGPLv3 License. 25# 26#************************************************************************* 27 28$(eval $(call gb_Library_Library,vcl)) 29 30ifeq ($(OS),MACOSX) 31$(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.macosx)) 32else ifeq ($(OS),WNT) 33$(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.windows)) 34else 35$(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.unx)) 36endif 37 38$(eval $(call gb_Library_add_package_headers,vcl,vcl_inc)) 39 40$(eval $(call gb_Library_set_include,vcl,\ 41 $$(INCLUDE) \ 42 -I$(SRCDIR)/vcl/inc \ 43 -I$(SRCDIR)/vcl/inc/pch \ 44 -I$(SRCDIR)/solenv/inc \ 45 -I$(OUTDIR)/inc/offuh \ 46 -I$(OUTDIR)/inc/stl \ 47 -I$(OUTDIR)/inc \ 48)) 49ifeq ($(GUIBASE),unx) 50$(eval $(call gb_Library_set_cxxflags,vcl,\ 51 $$(CXXFLAGS) \ 52 $$(FREETYPE_CFLAGS) \ 53)) 54endif 55 56$(eval $(call gb_Library_set_defs,vcl,\ 57 $$(DEFS) \ 58 -DVCL_DLLIMPLEMENTATION \ 59 -DCUI_DLL_NAME=\"$(call gb_Library_get_runtime_filename,cui)\" \ 60 -DDLLPOSTFIX=$(subst $(or $(gb_Library_DLLEXT),$(gb_Library_PLAINEXT)),,$(gb_Library_OOOEXT)) \ 61)) 62 63$(eval $(call gb_Library_add_linked_libs,vcl,\ 64 tl \ 65 utl \ 66 sot \ 67 ucbhelper \ 68 basegfx \ 69 comphelper \ 70 cppuhelper \ 71 icuuc \ 72 icule \ 73 i18nisolang1 \ 74 i18npaper \ 75 i18nutil \ 76 jvmaccess \ 77 stl \ 78 cppu \ 79 sal \ 80 vos3 \ 81 $(gb_STDLIBS) \ 82)) 83 84ifneq ($(ENABLE_GRAPHITE),) 85ifeq ($(OS),WNT) 86$(eval $(call gb_Library_add_linked_libs,vcl,\ 87 graphite_dll \ 88)) 89endif 90endif 91ifeq ($(GUIBASE),unx) 92$(eval $(call gb_Library_add_linked_libs,vcl,\ 93 freetype \ 94)) 95endif 96 97ifeq ($(GUIBASE),aqua) 98$(eval $(call gb_Library_set_cxxflags,vcl,\ 99 $$(CXXFLAGS) \ 100 $$(OBJCXXFLAGS) \ 101)) 102ifeq ($(ENABLE_CAIRO),TRUE) 103$(eval $(call gb_Library_set_defs,vclplug_gen,\ 104 $$(DEFS) \ 105 -DCAIRO \ 106)) 107endif 108$(eval $(call gb_Library_add_objcxxobjects,vcl,\ 109 vcl/aqua/source/a11y/aqua11yactionwrapper \ 110 vcl/aqua/source/a11y/aqua11ycomponentwrapper \ 111 vcl/aqua/source/a11y/aqua11yfactory \ 112 vcl/aqua/source/a11y/aqua11yrolehelper \ 113 vcl/aqua/source/a11y/aqua11yselectionwrapper \ 114 vcl/aqua/source/a11y/aqua11ytablewrapper \ 115 vcl/aqua/source/a11y/aqua11ytextattributeswrapper \ 116 vcl/aqua/source/a11y/aqua11ytextwrapper \ 117 vcl/aqua/source/a11y/aqua11yutil \ 118 vcl/aqua/source/a11y/aqua11yvaluewrapper \ 119 vcl/aqua/source/a11y/aqua11ywrapper \ 120 vcl/aqua/source/a11y/aqua11ywrapperbutton \ 121 vcl/aqua/source/a11y/aqua11ywrappercheckbox \ 122 vcl/aqua/source/a11y/aqua11ywrappercombobox \ 123 vcl/aqua/source/a11y/aqua11ywrappergroup \ 124 vcl/aqua/source/a11y/aqua11ywrapperlist \ 125 vcl/aqua/source/a11y/aqua11ywrapperradiobutton \ 126 vcl/aqua/source/a11y/aqua11ywrapperradiogroup \ 127 vcl/aqua/source/a11y/aqua11ywrapperrow \ 128 vcl/aqua/source/a11y/aqua11ywrapperscrollarea \ 129 vcl/aqua/source/a11y/aqua11ywrapperscrollbar \ 130 vcl/aqua/source/a11y/aqua11ywrappersplitter \ 131 vcl/aqua/source/a11y/aqua11ywrapperstatictext \ 132 vcl/aqua/source/a11y/aqua11ywrappertabgroup \ 133 vcl/aqua/source/a11y/aqua11ywrappertextarea \ 134 vcl/aqua/source/a11y/aqua11ywrappertoolbar \ 135 vcl/aqua/source/app/salnstimer \ 136 vcl/aqua/source/app/vclnsapp \ 137 vcl/aqua/source/gdi/aquaprintaccessoryview \ 138 vcl/aqua/source/gdi/aquaprintview \ 139 vcl/aqua/source/window/salframeview \ 140 vcl/aqua/source/window/salnsmenu \ 141)) 142$(eval $(call gb_Library_add_exception_objects,vcl,\ 143 vcl/aqua/source/a11y/aqua11yfocuslistener \ 144 vcl/aqua/source/a11y/aqua11yfocustracker \ 145 vcl/aqua/source/a11y/aqua11ylistener \ 146 vcl/aqua/source/a11y/documentfocuslistener \ 147 vcl/aqua/source/app/saldata \ 148 vcl/aqua/source/app/salinst \ 149 vcl/aqua/source/app/salsys \ 150 vcl/aqua/source/app/saltimer \ 151 vcl/aqua/source/dtrans/DataFlavorMapping \ 152 vcl/aqua/source/dtrans/DragActionConversion \ 153 vcl/aqua/source/dtrans/DragSource \ 154 vcl/aqua/source/dtrans/DragSourceContext \ 155 vcl/aqua/source/dtrans/DropTarget \ 156 vcl/aqua/source/dtrans/HtmlFmtFlt \ 157 vcl/aqua/source/dtrans/OSXTransferable \ 158 vcl/aqua/source/dtrans/PictToBmpFlt \ 159 vcl/aqua/source/dtrans/aqua_clipboard \ 160 vcl/aqua/source/dtrans/service_entry \ 161 vcl/aqua/source/gdi/salatslayout \ 162 vcl/aqua/source/gdi/salatsuifontutils \ 163 vcl/aqua/source/gdi/salbmp \ 164 vcl/aqua/source/gdi/salcolorutils \ 165 vcl/aqua/source/gdi/salgdi \ 166 vcl/aqua/source/gdi/salgdiutils \ 167 vcl/aqua/source/gdi/salmathutils \ 168 vcl/aqua/source/gdi/salnativewidgets \ 169 vcl/aqua/source/gdi/salprn \ 170 vcl/aqua/source/gdi/salvd \ 171 vcl/aqua/source/window/salframe \ 172 vcl/aqua/source/window/salmenu \ 173 vcl/aqua/source/window/salobj \ 174)) 175endif 176 177ifeq ($(GUIBASE),unx) 178$(eval $(call gb_Library_set_defs,vcl,\ 179 $$(DEFS) \ 180 -DSAL_DLLPREFIX=\"$(gb_Library_SYSPRE)\" \ 181 -DSAL_DLLPOSTFIX=\"$(gb_Library_OOOEXT)\" \ 182 -D_XSALSET_LIBNAME=\"$(call gb_Library_get_runtime_filename,spa)\" \ 183)) 184## handle fontconfig 185ifneq ($(ENABLE_FONTCONFIG),) 186$(eval $(call gb_Library_set_defs,vcl,\ 187 $$(DEFS) \ 188 -DENABLE_FONTCONFIG \ 189)) 190## handle CUPS 191ifneq ($(ENABLE_CUPS),) 192$(eval $(call gb_Library_set_defs,vcl,\ 193 $$(DEFS) \ 194 -DENABLE_CUPS \ 195)) 196endif 197endif 198$(eval $(call gb_Library_add_exception_objects,vcl,\ 199 vcl/source/glyphs/gcach_ftyp \ 200 vcl/source/glyphs/gcach_layout \ 201 vcl/source/glyphs/gcach_rbmp \ 202 vcl/source/glyphs/glyphcache \ 203 vcl/unx/generic/fontmanager/fontcache \ 204 vcl/unx/generic/fontmanager/fontconfig \ 205 vcl/unx/generic/fontmanager/fontmanager \ 206 vcl/unx/generic/fontmanager/helper \ 207 vcl/unx/generic/fontmanager/parseAFM \ 208 vcl/unx/generic/plugadapt/salplug \ 209 vcl/unx/generic/printer/cupsmgr \ 210 vcl/unx/generic/printer/jobdata \ 211 vcl/unx/generic/printer/ppdparser \ 212 vcl/unx/generic/printer/printerinfomanager \ 213)) 214endif 215 216ifeq ($(OS),WNT) 217$(eval $(call gb_Library_add_exception_objects,vcl,\ 218 vcl/win/source/app/saldata \ 219 vcl/win/source/app/salinfo \ 220 vcl/win/source/app/salinst \ 221 vcl/win/source/app/salshl \ 222 vcl/win/source/app/saltimer \ 223 vcl/win/source/gdi/salbmp \ 224 vcl/win/source/gdi/salgdi \ 225 vcl/win/source/gdi/salgdi2 \ 226 vcl/win/source/gdi/salgdi3 \ 227 vcl/win/source/gdi/salgdi_gdiplus \ 228 vcl/win/source/gdi/salnativewidgets-luna \ 229 vcl/win/source/gdi/salprn \ 230 vcl/win/source/gdi/salvd \ 231 vcl/win/source/gdi/winlayout \ 232 vcl/win/source/gdi/wntgdi \ 233 vcl/win/source/window/salframe \ 234 vcl/win/source/window/salmenu \ 235 vcl/win/source/window/salobj \ 236)) 237 238$(eval $(call gb_Library_add_nativeres,vcl,src)) 239 240endif 241 242$(eval $(call gb_Library_add_cobjects,vcl,\ 243 vcl/source/fontsubset/list \ 244)) 245$(eval $(call gb_Library_add_exception_objects,vcl,\ 246 vcl/source/app/dbggui \ 247 vcl/source/app/dndhelp \ 248 vcl/source/app/help \ 249 vcl/source/app/i18nhelp \ 250 vcl/source/app/idlemgr \ 251 vcl/source/app/salvtables \ 252 vcl/source/app/session \ 253 vcl/source/app/settings \ 254 vcl/source/app/sound \ 255 vcl/source/app/stdtext \ 256 vcl/source/app/svapp \ 257 vcl/source/app/svdata \ 258 vcl/source/app/svmain \ 259 vcl/source/app/svmainhook \ 260 vcl/source/app/timer \ 261 vcl/source/app/unohelp2 \ 262 vcl/source/app/unohelp \ 263 vcl/source/app/vclevent \ 264 vcl/source/components/display \ 265 vcl/source/components/dtranscomp \ 266 vcl/source/components/factory \ 267 vcl/source/components/fontident \ 268 vcl/source/components/rasterizer_rsvg \ 269 vcl/source/components/stringmirror \ 270 vcl/source/control/button \ 271 vcl/source/control/combobox \ 272 vcl/source/control/ctrl \ 273 vcl/source/control/edit \ 274 vcl/source/control/field2 \ 275 vcl/source/control/field \ 276 vcl/source/control/fixbrd \ 277 vcl/source/control/fixed \ 278 vcl/source/control/group \ 279 vcl/source/control/ilstbox \ 280 vcl/source/control/imgctrl \ 281 vcl/source/control/longcurr \ 282 vcl/source/control/lstbox \ 283 vcl/source/control/menubtn \ 284 vcl/source/control/morebtn \ 285 vcl/source/control/quickselectionengine \ 286 vcl/source/control/scrbar \ 287 vcl/source/control/slider \ 288 vcl/source/control/spinbtn \ 289 vcl/source/control/spinfld \ 290 vcl/source/control/tabctrl \ 291 vcl/source/control/throbber \ 292 vcl/source/fontsubset/cff \ 293 vcl/source/fontsubset/fontsubset \ 294 vcl/source/fontsubset/gsub \ 295 vcl/source/fontsubset/sft \ 296 vcl/source/fontsubset/ttcr \ 297 vcl/source/fontsubset/xlat \ 298 vcl/source/gdi/alpha \ 299 vcl/source/gdi/animate \ 300 vcl/source/gdi/base14 \ 301 vcl/source/gdi/bitmap2 \ 302 vcl/source/gdi/bitmap3 \ 303 vcl/source/gdi/bitmap4 \ 304 vcl/source/gdi/bitmap \ 305 vcl/source/gdi/bitmapex \ 306 vcl/source/gdi/bmpacc2 \ 307 vcl/source/gdi/bmpacc3 \ 308 vcl/source/gdi/bmpacc \ 309 vcl/source/gdi/bmpconv \ 310 vcl/source/gdi/bmpfast \ 311 vcl/source/gdi/configsettings \ 312 vcl/source/gdi/cvtgrf \ 313 vcl/source/gdi/cvtsvm \ 314 vcl/source/gdi/extoutdevdata \ 315 vcl/source/gdi/font \ 316 vcl/source/gdi/gdimtf \ 317 vcl/source/gdi/gfxlink \ 318 vcl/source/gdi/gradient \ 319 vcl/source/gdi/graph \ 320 vcl/source/gdi/graphictools \ 321 vcl/source/gdi/hatch \ 322 vcl/source/gdi/image \ 323 vcl/source/gdi/imagerepository \ 324 vcl/source/gdi/impanmvw \ 325 vcl/source/gdi/impbmp \ 326 vcl/source/gdi/impgraph \ 327 vcl/source/gdi/impimage \ 328 vcl/source/gdi/impimagetree \ 329 vcl/source/gdi/impvect \ 330 vcl/source/gdi/jobset \ 331 vcl/source/gdi/lineinfo \ 332 vcl/source/gdi/mapmod \ 333 vcl/source/gdi/metaact \ 334 vcl/source/gdi/metric \ 335 vcl/source/gdi/octree \ 336 vcl/source/gdi/oldprintadaptor \ 337 vcl/source/gdi/outdev2 \ 338 vcl/source/gdi/outdev3 \ 339 vcl/source/gdi/outdev4 \ 340 vcl/source/gdi/outdev5 \ 341 vcl/source/gdi/outdev6 \ 342 vcl/source/gdi/outdev \ 343 vcl/source/gdi/outdevnative \ 344 vcl/source/gdi/outmap \ 345 vcl/source/gdi/pdfextoutdevdata \ 346 vcl/source/gdi/pdffontcache \ 347 vcl/source/gdi/pdfwriter \ 348 vcl/source/gdi/pdfwriter_impl2 \ 349 vcl/source/gdi/pdfwriter_impl \ 350 vcl/source/gdi/pngread \ 351 vcl/source/gdi/pngwrite \ 352 vcl/source/gdi/print2 \ 353 vcl/source/gdi/print3 \ 354 vcl/source/gdi/print \ 355 vcl/source/gdi/regband \ 356 vcl/source/gdi/region \ 357 vcl/source/gdi/rendergraphic \ 358 vcl/source/gdi/rendergraphicrasterizer \ 359 vcl/source/gdi/salgdilayout \ 360 vcl/source/gdi/sallayout \ 361 vcl/source/gdi/salmisc \ 362 vcl/source/gdi/salnativewidgets-none \ 363 vcl/source/gdi/svgread \ 364 vcl/source/gdi/textlayout \ 365 vcl/source/gdi/virdev \ 366 vcl/source/gdi/wall \ 367 vcl/source/helper/canvasbitmap \ 368 vcl/source/helper/canvastools \ 369 vcl/source/helper/evntpost \ 370 vcl/source/helper/lazydelete \ 371 vcl/source/helper/strhelper \ 372 vcl/source/helper/threadex \ 373 vcl/source/helper/xconnection \ 374 vcl/source/salmain/salmain \ 375 vcl/source/window/abstdlg \ 376 vcl/source/window/accel \ 377 vcl/source/window/accmgr \ 378 vcl/source/window/arrange \ 379 vcl/source/window/brdwin \ 380 vcl/source/window/btndlg \ 381 vcl/source/window/cmdevt \ 382 vcl/source/window/cursor \ 383 vcl/source/window/decoview \ 384 vcl/source/window/dialog \ 385 vcl/source/window/dlgctrl \ 386 vcl/source/window/dndevdis \ 387 vcl/source/window/dndlcon \ 388 vcl/source/window/dockingarea \ 389 vcl/source/window/dockmgr \ 390 vcl/source/window/dockwin \ 391 vcl/source/window/floatwin \ 392 vcl/source/window/introwin \ 393 vcl/source/window/javachild \ 394 vcl/source/window/keycod \ 395 vcl/source/window/keyevent \ 396 vcl/source/window/menu \ 397 vcl/source/window/mnemonic \ 398 vcl/source/window/mnemonicengine \ 399 vcl/source/window/mouseevent \ 400 vcl/source/window/msgbox \ 401 vcl/source/window/popupmenuwindow \ 402 vcl/source/window/printdlg \ 403 vcl/source/window/scrwnd \ 404 vcl/source/window/seleng \ 405 vcl/source/window/split \ 406 vcl/source/window/splitwin \ 407 vcl/source/window/status \ 408 vcl/source/window/syschild \ 409 vcl/source/window/syswin \ 410 vcl/source/window/tabdlg \ 411 vcl/source/window/tabpage \ 412 vcl/source/window/taskpanelist \ 413 vcl/source/window/toolbox2 \ 414 vcl/source/window/toolbox \ 415 vcl/source/window/window2 \ 416 vcl/source/window/window3 \ 417 vcl/source/window/window4 \ 418 vcl/source/window/window \ 419 vcl/source/window/winproc \ 420 vcl/source/window/wpropset \ 421 vcl/source/window/wrkwin \ 422)) 423 424## handle Graphite 425ifneq ($(ENABLE_GRAPHITE),) 426$(eval $(call gb_Library_set_defs,vcl,\ 427 $$(DEFS) \ 428 -DENABLE_GRAPHITE \ 429)) 430$(eval $(call gb_Library_add_exception_objects,vcl,\ 431 vcl/source/glyphs/graphite_cache \ 432 vcl/source/glyphs/graphite_features \ 433 vcl/source/glyphs/graphite_layout \ 434 vcl/source/glyphs/graphite_textsrc \ 435)) 436ifeq ($(GUIBASE),unx) 437$(eval $(call gb_Library_add_exception_objects,vcl,\ 438 vcl/source/glyphs/graphite_adaptors \ 439 vcl/source/glyphs/graphite_serverfont \ 440)) 441ifeq ($(SYSTEM_GRAPHITE),YES) 442$(eval $(call gb_Library_set_ldflags,vcl,\ 443 $$(LDFLAGS) \ 444 $(GRAPHITE_LIBS) 445)) 446else 447$(eval $(call gb_Library_add_linked_static_libs,vcl,\ 448 graphite \ 449)) 450endif 451endif 452endif 453 454ifeq ($(OS),LINUX) 455$(eval $(call gb_Library_add_linked_libs,vcl,\ 456 dl \ 457 m \ 458 pthread \ 459)) 460endif 461 462ifeq ($(OS),SOLARIS) 463ifeq ($(CPUNAME)$(CPU),SPARCU) 464$(eval $(call gb_Library_set_ldflags,vcl,\ 465 $$(LDFLAGS) \ 466 -R/usr/sfw/lib/64 \ 467)) 468else 469$(eval $(call gb_Library_set_ldflags,vcl,\ 470 $$(LDFLAGS) \ 471 -R/usr/sfw/lib \ 472)) 473endif 474endif 475 476ifeq ($(GUIBASE),aqua) 477$(eval $(call gb_Library_add_linked_libs,vcl,\ 478 AppleRemote \ 479)) 480$(eval $(call gb_Library_set_ldflags,vcl,\ 481 $$(LDFLAGS) \ 482 -framework QuickTime \ 483 -framework Cocoa \ 484 -framework Carbon \ 485 -framework CoreFoundation \ 486)) 487endif 488 489ifeq ($(OS),WNT) 490$(eval $(call gb_Library_set_ldflags,vcl,\ 491 $$(LDFLAGS) \ 492 /ENTRY:LibMain@12 \ 493)) 494$(eval $(call gb_Library_add_linked_libs,vcl,\ 495 advapi32 \ 496 gdi32 \ 497 gdiplus \ 498 imm32 \ 499 kernel32 \ 500 mpr \ 501 msimg32 \ 502 msvcrt \ 503 oldnames \ 504 ole32 \ 505 shell32 \ 506 user32 \ 507 uuid \ 508 uwinapi \ 509 winspool \ 510)) 511endif 512# vim: set noet sw=4 ts=4: 513