widget/qt/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/widget/qt/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,62 @@
     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 +GENERATED_SOURCES += [
    1.11 +    'moc_mozqwidget.cpp',
    1.12 +    'moc_nsAppShell.cpp',
    1.13 +]
    1.14 +
    1.15 +SOURCES += [
    1.16 +    'mozqwidget.cpp',
    1.17 +    'nsAppShell.cpp',
    1.18 +    'nsBidiKeyboard.cpp',
    1.19 +    'nsClipboard.cpp',
    1.20 +    'nsIdleServiceQt.cpp',
    1.21 +    'nsLookAndFeel.cpp',
    1.22 +    'nsQtKeyUtils.cpp',
    1.23 +    'nsScreenManagerQt.cpp',
    1.24 +    'nsScreenQt.cpp',
    1.25 +    'nsWidgetFactory.cpp',
    1.26 +    'nsWindow.cpp',
    1.27 +]
    1.28 +
    1.29 +
    1.30 +if CONFIG['NS_PRINTING']:
    1.31 +    SOURCES += [
    1.32 +        'nsDeviceContextSpecQt.cpp',
    1.33 +        'nsPrintDialogQt.cpp',
    1.34 +        'nsPrintOptionsQt.cpp',
    1.35 +        'nsPrintSettingsQt.cpp',
    1.36 +    ]
    1.37 +
    1.38 +LIBRARY_NAME = 'widget_qt'
    1.39 +
    1.40 +include('/ipc/chromium/chromium-config.mozbuild')
    1.41 +
    1.42 +FINAL_LIBRARY = 'xul'
    1.43 +
    1.44 +LOCAL_INCLUDES += [
    1.45 +    '../shared',
    1.46 +    '/widget/xpwidgets',
    1.47 +]
    1.48 +
    1.49 +if CONFIG['MOZ_X11']:
    1.50 +    LOCAL_INCLUDES += [
    1.51 +        '../shared/x11',
    1.52 +    ]
    1.53 +
    1.54 +#DEFINES['DEBUG_WIDGETS'] = True
    1.55 +
    1.56 +if CONFIG['OS_ARCH'] == 'Linux':
    1.57 +    DEFINES['_BSD_SOURCE'] = True
    1.58 +
    1.59 +if CONFIG['OS_ARCH'] == 'SunOS' and not CONFIG['GNU_CC']:
    1.60 +    # When using Sun's WorkShop compiler, including
    1.61 +    # /wherever/workshop-5.0/SC5.0/include/CC/std/time.h
    1.62 +    # causes most of these compiles to fail with:
    1.63 +    # line 29: Error: Multiple declaration for std::tm.
    1.64 +    # So, this gets around the problem.
    1.65 +    DEFINES['_TIME_H'] = 1

mercurial