widget/xpwidgets/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/widget/xpwidgets/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,101 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +EXPORTS += [
    1.11 +    'ContentHelper.h',
    1.12 +    'GfxDriverInfo.h',
    1.13 +    'GfxInfoBase.h',
    1.14 +    'GfxInfoCollector.h',
    1.15 +]
    1.16 +
    1.17 +UNIFIED_SOURCES += [
    1.18 +    'ContentHelper.cpp',
    1.19 +    'GfxDriverInfo.cpp',
    1.20 +    'GfxInfoBase.cpp',
    1.21 +    'GfxInfoCollector.cpp',
    1.22 +    'GfxInfoWebGL.cpp',
    1.23 +    'InputData.cpp',
    1.24 +    'nsBaseAppShell.cpp',
    1.25 +    'nsBaseDragService.cpp',
    1.26 +    'nsBaseScreen.cpp',
    1.27 +    'nsClipboardHelper.cpp',
    1.28 +    'nsClipboardPrivacyHandler.cpp',
    1.29 +    'nsClipboardProxy.cpp',
    1.30 +    'nsColorPickerProxy.cpp',
    1.31 +    'nsContentProcessWidgetFactory.cpp',
    1.32 +    'nsFilePickerProxy.cpp',
    1.33 +    'nsHTMLFormatConverter.cpp',
    1.34 +    'nsIdleService.cpp',
    1.35 +    'nsIWidgetListener.cpp',
    1.36 +    'nsPrimitiveHelpers.cpp',
    1.37 +    'nsPrintOptionsImpl.cpp',
    1.38 +    'nsPrintSession.cpp',
    1.39 +    'nsPrintSettingsImpl.cpp',
    1.40 +    'nsTransferable.cpp',
    1.41 +    'nsXPLookAndFeel.cpp',
    1.42 +    'PuppetWidget.cpp',
    1.43 +    'WidgetUtils.cpp',
    1.44 +]
    1.45 +
    1.46 +# nsBaseWidget.cpp needs to be built separately because of name clashes in the OS X headers
    1.47 +SOURCES += [
    1.48 +    'nsBaseWidget.cpp',
    1.49 +]
    1.50 +
    1.51 +if CONFIG['MOZ_X11']:
    1.52 +    UNIFIED_SOURCES += [
    1.53 +        'GfxInfoX11.cpp'
    1.54 +    ]
    1.55 +
    1.56 +if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('cocoa', 'windows'):
    1.57 +    UNIFIED_SOURCES += [
    1.58 +        'nsBaseClipboard.cpp',
    1.59 +    ]
    1.60 +
    1.61 +if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3', 'cocoa', 'windows',
    1.62 +                                    'android', 'gonk'):
    1.63 +    UNIFIED_SOURCES += [
    1.64 +        'nsBaseFilePicker.cpp',
    1.65 +    ]
    1.66 +
    1.67 +if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3', 'windows', 'cocoa'):
    1.68 +    UNIFIED_SOURCES += [
    1.69 +        'nsNativeTheme.cpp',
    1.70 +    ]
    1.71 +
    1.72 +if not CONFIG['MOZ_B2G']:
    1.73 +    DEFINES['MOZ_CROSS_PROCESS_IME'] = True
    1.74 +
    1.75 +MSVC_ENABLE_PGO = True
    1.76 +
    1.77 +LIBRARY_NAME = 'xpwidgets_s'
    1.78 +
    1.79 +include('/ipc/chromium/chromium-config.mozbuild')
    1.80 +
    1.81 +LOCAL_INCLUDES += [
    1.82 +    '../shared',
    1.83 +    '/layout/base',
    1.84 +    '/layout/forms',
    1.85 +    '/layout/generic',
    1.86 +    '/layout/xul',
    1.87 +    '/view/src',
    1.88 +]
    1.89 +
    1.90 +widget_dir = CONFIG['MOZ_WIDGET_TOOLKIT']
    1.91 +if widget_dir in ('gtk3', 'gtk2'):
    1.92 +    # gtk3 shares includes with gtk2
    1.93 +    widget_dir = 'gtk'
    1.94 +
    1.95 +LOCAL_INCLUDES += [
    1.96 +    '../%s' % widget_dir,
    1.97 +]
    1.98 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
    1.99 +    FINAL_LIBRARY = 'widget_mac'
   1.100 +elif CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gonk', 'android', 'qt', 'gtk2', 'gtk3'):
   1.101 +    FINAL_LIBRARY = 'widget_%s' % CONFIG['MOZ_WIDGET_TOOLKIT']
   1.102 +
   1.103 +if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
   1.104 +    DEFINES['MOZ_ENABLE_D3D10_LAYER'] = True

mercurial