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 84ifeq ($(GUIBASE),unx) 85$(eval $(call gb_Library_add_linked_libs,vcl,\ 86 freetype \ 87)) 88endif 89 90ifeq ($(GUIBASE),aqua) 91$(eval $(call gb_Library_set_cxxflags,vcl,\ 92 $$(CXXFLAGS) \ 93 $$(OBJCXXFLAGS) \ 94)) 95ifeq ($(ENABLE_CAIRO),TRUE) 96$(eval $(call gb_Library_set_defs,vclplug_gen,\ 97 $$(DEFS) \ 98 -DCAIRO \ 99)) 100endif 101$(eval $(call gb_Library_add_objcxxobjects,vcl,\ 102 vcl/aqua/source/a11y/aqua11yactionwrapper \ 103 vcl/aqua/source/a11y/aqua11ycomponentwrapper \ 104 vcl/aqua/source/a11y/aqua11yfactory \ 105 vcl/aqua/source/a11y/aqua11yrolehelper \ 106 vcl/aqua/source/a11y/aqua11yselectionwrapper \ 107 vcl/aqua/source/a11y/aqua11ytablewrapper \ 108 vcl/aqua/source/a11y/aqua11ytextattributeswrapper \ 109 vcl/aqua/source/a11y/aqua11ytextwrapper \ 110 vcl/aqua/source/a11y/aqua11yutil \ 111 vcl/aqua/source/a11y/aqua11yvaluewrapper \ 112 vcl/aqua/source/a11y/aqua11ywrapper \ 113 vcl/aqua/source/a11y/aqua11ywrapperbutton \ 114 vcl/aqua/source/a11y/aqua11ywrappercheckbox \ 115 vcl/aqua/source/a11y/aqua11ywrappercombobox \ 116 vcl/aqua/source/a11y/aqua11ywrappergroup \ 117 vcl/aqua/source/a11y/aqua11ywrapperlist \ 118 vcl/aqua/source/a11y/aqua11ywrapperradiobutton \ 119 vcl/aqua/source/a11y/aqua11ywrapperradiogroup \ 120 vcl/aqua/source/a11y/aqua11ywrapperrow \ 121 vcl/aqua/source/a11y/aqua11ywrapperscrollarea \ 122 vcl/aqua/source/a11y/aqua11ywrapperscrollbar \ 123 vcl/aqua/source/a11y/aqua11ywrappersplitter \ 124 vcl/aqua/source/a11y/aqua11ywrapperstatictext \ 125 vcl/aqua/source/a11y/aqua11ywrappertabgroup \ 126 vcl/aqua/source/a11y/aqua11ywrappertextarea \ 127 vcl/aqua/source/a11y/aqua11ywrappertoolbar \ 128 vcl/aqua/source/app/salnstimer \ 129 vcl/aqua/source/app/vclnsapp \ 130 vcl/aqua/source/gdi/aquaprintaccessoryview \ 131 vcl/aqua/source/gdi/aquaprintview \ 132 vcl/aqua/source/window/salframeview \ 133 vcl/aqua/source/window/salnsmenu \ 134)) 135$(eval $(call gb_Library_add_exception_objects,vcl,\ 136 vcl/aqua/source/a11y/aqua11yfocuslistener \ 137 vcl/aqua/source/a11y/aqua11yfocustracker \ 138 vcl/aqua/source/a11y/aqua11ylistener \ 139 vcl/aqua/source/a11y/documentfocuslistener \ 140 vcl/aqua/source/app/saldata \ 141 vcl/aqua/source/app/salinst \ 142 vcl/aqua/source/app/salsys \ 143 vcl/aqua/source/app/saltimer \ 144 vcl/aqua/source/dtrans/DataFlavorMapping \ 145 vcl/aqua/source/dtrans/DragActionConversion \ 146 vcl/aqua/source/dtrans/DragSource \ 147 vcl/aqua/source/dtrans/DragSourceContext \ 148 vcl/aqua/source/dtrans/DropTarget \ 149 vcl/aqua/source/dtrans/HtmlFmtFlt \ 150 vcl/aqua/source/dtrans/OSXTransferable \ 151 vcl/aqua/source/dtrans/PictToBmpFlt \ 152 vcl/aqua/source/dtrans/aqua_clipboard \ 153 vcl/aqua/source/dtrans/service_entry \ 154 vcl/aqua/source/gdi/salatslayout \ 155 vcl/aqua/source/gdi/salatsuifontutils \ 156 vcl/aqua/source/gdi/salbmp \ 157 vcl/aqua/source/gdi/salcolorutils \ 158 vcl/aqua/source/gdi/salgdi \ 159 vcl/aqua/source/gdi/salgdiutils \ 160 vcl/aqua/source/gdi/salmathutils \ 161 vcl/aqua/source/gdi/salnativewidgets \ 162 vcl/aqua/source/gdi/salprn \ 163 vcl/aqua/source/gdi/salvd \ 164 vcl/aqua/source/window/salframe \ 165 vcl/aqua/source/window/salmenu \ 166 vcl/aqua/source/window/salobj \ 167)) 168endif 169 170ifeq ($(GUIBASE),unx) 171$(eval $(call gb_Library_set_defs,vcl,\ 172 $$(DEFS) \ 173 -DSAL_DLLPREFIX=\"$(gb_Library_SYSPRE)\" \ 174 -DSAL_DLLPOSTFIX=\"$(gb_Library_OOOEXT)\" \ 175 -D_XSALSET_LIBNAME=\"$(call gb_Library_get_runtime_filename,spa)\" \ 176)) 177## handle fontconfig 178ifneq ($(ENABLE_FONTCONFIG),) 179$(eval $(call gb_Library_set_defs,vcl,\ 180 $$(DEFS) \ 181 -DENABLE_FONTCONFIG \ 182)) 183## handle CUPS 184ifneq ($(ENABLE_CUPS),) 185$(eval $(call gb_Library_set_defs,vcl,\ 186 $$(DEFS) \ 187 -DENABLE_CUPS \ 188)) 189endif 190endif 191$(eval $(call gb_Library_add_exception_objects,vcl,\ 192 vcl/source/glyphs/gcach_ftyp \ 193 vcl/source/glyphs/gcach_layout \ 194 vcl/source/glyphs/gcach_rbmp \ 195 vcl/source/glyphs/glyphcache \ 196 vcl/unx/generic/fontmanager/fontcache \ 197 vcl/unx/generic/fontmanager/fontconfig \ 198 vcl/unx/generic/fontmanager/fontmanager \ 199 vcl/unx/generic/fontmanager/helper \ 200 vcl/unx/generic/fontmanager/parseAFM \ 201 vcl/unx/generic/plugadapt/salplug \ 202 vcl/unx/generic/printer/cupsmgr \ 203 vcl/unx/generic/printer/jobdata \ 204 vcl/unx/generic/printer/ppdparser \ 205 vcl/unx/generic/printer/printerinfomanager \ 206)) 207endif 208 209ifeq ($(OS),WNT) 210$(eval $(call gb_Library_add_exception_objects,vcl,\ 211 vcl/win/source/app/saldata \ 212 vcl/win/source/app/salinfo \ 213 vcl/win/source/app/salinst \ 214 vcl/win/source/app/salshl \ 215 vcl/win/source/app/saltimer \ 216 vcl/win/source/gdi/salbmp \ 217 vcl/win/source/gdi/salgdi \ 218 vcl/win/source/gdi/salgdi2 \ 219 vcl/win/source/gdi/salgdi3 \ 220 vcl/win/source/gdi/salgdi_gdiplus \ 221 vcl/win/source/gdi/salnativewidgets-luna \ 222 vcl/win/source/gdi/salprn \ 223 vcl/win/source/gdi/salvd \ 224 vcl/win/source/gdi/winlayout \ 225 vcl/win/source/gdi/wntgdi \ 226 vcl/win/source/window/salframe \ 227 vcl/win/source/window/salmenu \ 228 vcl/win/source/window/salobj \ 229)) 230 231$(eval $(call gb_Library_add_nativeres,vcl,src)) 232 233endif 234 235$(eval $(call gb_Library_add_cobjects,vcl,\ 236 vcl/source/fontsubset/list \ 237)) 238$(eval $(call gb_Library_add_exception_objects,vcl,\ 239 vcl/source/app/dbggui \ 240 vcl/source/app/dndhelp \ 241 vcl/source/app/help \ 242 vcl/source/app/i18nhelp \ 243 vcl/source/app/idlemgr \ 244 vcl/source/app/salvtables \ 245 vcl/source/app/session \ 246 vcl/source/app/settings \ 247 vcl/source/app/sound \ 248 vcl/source/app/stdtext \ 249 vcl/source/app/svapp \ 250 vcl/source/app/svdata \ 251 vcl/source/app/svmain \ 252 vcl/source/app/svmainhook \ 253 vcl/source/app/timer \ 254 vcl/source/app/unohelp2 \ 255 vcl/source/app/unohelp \ 256 vcl/source/app/vclevent \ 257 vcl/source/components/display \ 258 vcl/source/components/dtranscomp \ 259 vcl/source/components/factory \ 260 vcl/source/components/fontident \ 261 vcl/source/components/rasterizer_rsvg \ 262 vcl/source/components/stringmirror \ 263 vcl/source/control/button \ 264 vcl/source/control/combobox \ 265 vcl/source/control/ctrl \ 266 vcl/source/control/edit \ 267 vcl/source/control/field2 \ 268 vcl/source/control/field \ 269 vcl/source/control/fixbrd \ 270 vcl/source/control/fixed \ 271 vcl/source/control/group \ 272 vcl/source/control/ilstbox \ 273 vcl/source/control/imgctrl \ 274 vcl/source/control/longcurr \ 275 vcl/source/control/lstbox \ 276 vcl/source/control/menubtn \ 277 vcl/source/control/morebtn \ 278 vcl/source/control/quickselectionengine \ 279 vcl/source/control/scrbar \ 280 vcl/source/control/slider \ 281 vcl/source/control/spinbtn \ 282 vcl/source/control/spinfld \ 283 vcl/source/control/tabctrl \ 284 vcl/source/control/throbber \ 285 vcl/source/fontsubset/cff \ 286 vcl/source/fontsubset/fontsubset \ 287 vcl/source/fontsubset/gsub \ 288 vcl/source/fontsubset/sft \ 289 vcl/source/fontsubset/ttcr \ 290 vcl/source/fontsubset/xlat \ 291 vcl/source/gdi/alpha \ 292 vcl/source/gdi/animate \ 293 vcl/source/gdi/base14 \ 294 vcl/source/gdi/bitmap2 \ 295 vcl/source/gdi/bitmap3 \ 296 vcl/source/gdi/bitmap4 \ 297 vcl/source/gdi/bitmap \ 298 vcl/source/gdi/bitmapex \ 299 vcl/source/gdi/bmpacc2 \ 300 vcl/source/gdi/bmpacc3 \ 301 vcl/source/gdi/bmpacc \ 302 vcl/source/gdi/bmpconv \ 303 vcl/source/gdi/bmpfast \ 304 vcl/source/gdi/configsettings \ 305 vcl/source/gdi/cvtgrf \ 306 vcl/source/gdi/cvtsvm \ 307 vcl/source/gdi/extoutdevdata \ 308 vcl/source/gdi/font \ 309 vcl/source/gdi/gdimtf \ 310 vcl/source/gdi/gfxlink \ 311 vcl/source/gdi/gradient \ 312 vcl/source/gdi/graph \ 313 vcl/source/gdi/graphictools \ 314 vcl/source/gdi/hatch \ 315 vcl/source/gdi/image \ 316 vcl/source/gdi/imagerepository \ 317 vcl/source/gdi/impanmvw \ 318 vcl/source/gdi/impbmp \ 319 vcl/source/gdi/impgraph \ 320 vcl/source/gdi/impimage \ 321 vcl/source/gdi/impimagetree \ 322 vcl/source/gdi/impvect \ 323 vcl/source/gdi/jobset \ 324 vcl/source/gdi/lineinfo \ 325 vcl/source/gdi/mapmod \ 326 vcl/source/gdi/metaact \ 327 vcl/source/gdi/metric \ 328 vcl/source/gdi/octree \ 329 vcl/source/gdi/oldprintadaptor \ 330 vcl/source/gdi/outdev2 \ 331 vcl/source/gdi/outdev3 \ 332 vcl/source/gdi/outdev4 \ 333 vcl/source/gdi/outdev5 \ 334 vcl/source/gdi/outdev6 \ 335 vcl/source/gdi/outdev \ 336 vcl/source/gdi/outdevnative \ 337 vcl/source/gdi/outmap \ 338 vcl/source/gdi/pdfextoutdevdata \ 339 vcl/source/gdi/pdffontcache \ 340 vcl/source/gdi/pdfwriter \ 341 vcl/source/gdi/pdfwriter_impl2 \ 342 vcl/source/gdi/pdfwriter_impl \ 343 vcl/source/gdi/pngread \ 344 vcl/source/gdi/pngwrite \ 345 vcl/source/gdi/print2 \ 346 vcl/source/gdi/print3 \ 347 vcl/source/gdi/print \ 348 vcl/source/gdi/regband \ 349 vcl/source/gdi/region \ 350 vcl/source/gdi/rendergraphic \ 351 vcl/source/gdi/rendergraphicrasterizer \ 352 vcl/source/gdi/salgdilayout \ 353 vcl/source/gdi/sallayout \ 354 vcl/source/gdi/salmisc \ 355 vcl/source/gdi/salnativewidgets-none \ 356 vcl/source/gdi/svgread \ 357 vcl/source/gdi/textlayout \ 358 vcl/source/gdi/virdev \ 359 vcl/source/gdi/wall \ 360 vcl/source/helper/canvasbitmap \ 361 vcl/source/helper/canvastools \ 362 vcl/source/helper/evntpost \ 363 vcl/source/helper/lazydelete \ 364 vcl/source/helper/strhelper \ 365 vcl/source/helper/threadex \ 366 vcl/source/helper/xconnection \ 367 vcl/source/salmain/salmain \ 368 vcl/source/window/abstdlg \ 369 vcl/source/window/accel \ 370 vcl/source/window/accmgr \ 371 vcl/source/window/arrange \ 372 vcl/source/window/brdwin \ 373 vcl/source/window/btndlg \ 374 vcl/source/window/cmdevt \ 375 vcl/source/window/cursor \ 376 vcl/source/window/decoview \ 377 vcl/source/window/dialog \ 378 vcl/source/window/dlgctrl \ 379 vcl/source/window/dndevdis \ 380 vcl/source/window/dndlcon \ 381 vcl/source/window/dockingarea \ 382 vcl/source/window/dockmgr \ 383 vcl/source/window/dockwin \ 384 vcl/source/window/floatwin \ 385 vcl/source/window/introwin \ 386 vcl/source/window/javachild \ 387 vcl/source/window/keycod \ 388 vcl/source/window/keyevent \ 389 vcl/source/window/menu \ 390 vcl/source/window/mnemonic \ 391 vcl/source/window/mnemonicengine \ 392 vcl/source/window/mouseevent \ 393 vcl/source/window/msgbox \ 394 vcl/source/window/popupmenuwindow \ 395 vcl/source/window/printdlg \ 396 vcl/source/window/scrwnd \ 397 vcl/source/window/seleng \ 398 vcl/source/window/split \ 399 vcl/source/window/splitwin \ 400 vcl/source/window/status \ 401 vcl/source/window/syschild \ 402 vcl/source/window/syswin \ 403 vcl/source/window/tabdlg \ 404 vcl/source/window/tabpage \ 405 vcl/source/window/taskpanelist \ 406 vcl/source/window/toolbox2 \ 407 vcl/source/window/toolbox \ 408 vcl/source/window/window2 \ 409 vcl/source/window/window3 \ 410 vcl/source/window/window4 \ 411 vcl/source/window/window \ 412 vcl/source/window/winproc \ 413 vcl/source/window/wpropset \ 414 vcl/source/window/wrkwin \ 415)) 416 417## handle Graphite 418ifneq ($(ENABLE_GRAPHITE),) 419# add defines, graphite sources for all platforms 420$(eval $(call gb_Library_set_defs,vcl,\ 421 $$(DEFS) \ 422 -DENABLE_GRAPHITE \ 423)) 424$(eval $(call gb_Library_add_exception_objects,vcl,\ 425 vcl/source/glyphs/graphite_cache \ 426 vcl/source/glyphs/graphite_features \ 427 vcl/source/glyphs/graphite_layout \ 428 vcl/source/glyphs/graphite_textsrc \ 429)) 430 431#building with stlport, but graphite was not built with stlport 432ifneq ($(USE_SYSTEM_STL),YES) 433ifeq ($(SYSTEM_GRPAHITE),YES) 434$(eval $(call gb_Library_set_defs,vcl,\ 435 $$(DEFS) \ 436 -DADAPT_EXT_STL \ 437)) 438endif 439endif 440 441# handle X11 platforms, which have additional files and possibly system graphite 442ifeq ($(GUIBASE),unx) 443$(eval $(call gb_Library_add_exception_objects,vcl,\ 444 vcl/source/glyphs/graphite_adaptors \ 445 vcl/source/glyphs/graphite_serverfont \ 446)) 447ifeq ($(SYSTEM_GRAPHITE),YES) 448$(eval $(call gb_Library_set_ldflags,vcl,\ 449 $$(LDFLAGS) \ 450 $(GRAPHITE_LIBS) \ 451)) 452else 453$(eval $(call gb_Library_add_linked_static_libs,vcl,\ 454 graphite \ 455)) 456endif 457endif 458# on windows link static graphite library 459ifeq ($(OS),WNT) 460$(eval $(call gb_Library_add_linked_static_libs,vcl,\ 461 graphite \ 462)) 463endif 464endif 465 466ifeq ($(OS),LINUX) 467$(eval $(call gb_Library_add_linked_libs,vcl,\ 468 dl \ 469 m \ 470 pthread \ 471)) 472endif 473 474ifeq ($(OS),SOLARIS) 475ifeq ($(CPUNAME)$(CPU),SPARCU) 476$(eval $(call gb_Library_set_ldflags,vcl,\ 477 $$(LDFLAGS) \ 478 -R/usr/sfw/lib/64 \ 479)) 480else 481$(eval $(call gb_Library_set_ldflags,vcl,\ 482 $$(LDFLAGS) \ 483 -R/usr/sfw/lib \ 484)) 485endif 486endif 487 488ifeq ($(GUIBASE),aqua) 489$(eval $(call gb_Library_add_linked_libs,vcl,\ 490 AppleRemote \ 491)) 492$(eval $(call gb_Library_set_ldflags,vcl,\ 493 $$(LDFLAGS) \ 494 -framework QuickTime \ 495 -framework Cocoa \ 496 -framework Carbon \ 497 -framework CoreFoundation \ 498)) 499endif 500 501ifeq ($(OS),WNT) 502$(eval $(call gb_Library_set_ldflags,vcl,\ 503 $$(LDFLAGS) \ 504 /ENTRY:LibMain@12 \ 505)) 506$(eval $(call gb_Library_add_linked_libs,vcl,\ 507 advapi32 \ 508 gdi32 \ 509 gdiplus \ 510 imm32 \ 511 kernel32 \ 512 mpr \ 513 msimg32 \ 514 msvcrt \ 515 oldnames \ 516 ole32 \ 517 shell32 \ 518 user32 \ 519 uuid \ 520 uwinapi \ 521 winspool \ 522)) 523endif 524# vim: set noet sw=4 ts=4: 525