DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (27a812186ff4)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

GENERATED_SOURCES += [
    'moc_mozqwidget.cpp',
    'moc_nsAppShell.cpp',
]

SOURCES += [
    'mozqwidget.cpp',
    'nsAppShell.cpp',
    'nsBidiKeyboard.cpp',
    'nsClipboard.cpp',
    'nsIdleServiceQt.cpp',
    'nsLookAndFeel.cpp',
    'nsQtKeyUtils.cpp',
    'nsScreenManagerQt.cpp',
    'nsScreenQt.cpp',
    'nsWidgetFactory.cpp',
    'nsWindow.cpp',
]


if CONFIG['NS_PRINTING']:
    SOURCES += [
        'nsDeviceContextSpecQt.cpp',
        'nsPrintDialogQt.cpp',
        'nsPrintOptionsQt.cpp',
        'nsPrintSettingsQt.cpp',
    ]

LIBRARY_NAME = 'widget_qt'

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'xul'

LOCAL_INCLUDES += [
    '../shared',
    '/widget/xpwidgets',
]

if CONFIG['MOZ_X11']:
    LOCAL_INCLUDES += [
        '../shared/x11',
    ]

#DEFINES['DEBUG_WIDGETS'] = True

if CONFIG['OS_ARCH'] == 'Linux':
    DEFINES['_BSD_SOURCE'] = True

if CONFIG['OS_ARCH'] == 'SunOS' and not CONFIG['GNU_CC']:
    # When using Sun's WorkShop compiler, including
    # /wherever/workshop-5.0/SC5.0/include/CC/std/time.h
    # causes most of these compiles to fail with:
    # line 29: Error: Multiple declaration for std::tm.
    # So, this gets around the problem.
    DEFINES['_TIME_H'] = 1