michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: GENERATED_SOURCES += [ michael@0: 'moc_mozqwidget.cpp', michael@0: 'moc_nsAppShell.cpp', michael@0: ] michael@0: michael@0: SOURCES += [ michael@0: 'mozqwidget.cpp', michael@0: 'nsAppShell.cpp', michael@0: 'nsBidiKeyboard.cpp', michael@0: 'nsClipboard.cpp', michael@0: 'nsIdleServiceQt.cpp', michael@0: 'nsLookAndFeel.cpp', michael@0: 'nsQtKeyUtils.cpp', michael@0: 'nsScreenManagerQt.cpp', michael@0: 'nsScreenQt.cpp', michael@0: 'nsWidgetFactory.cpp', michael@0: 'nsWindow.cpp', michael@0: ] michael@0: michael@0: michael@0: if CONFIG['NS_PRINTING']: michael@0: SOURCES += [ michael@0: 'nsDeviceContextSpecQt.cpp', michael@0: 'nsPrintDialogQt.cpp', michael@0: 'nsPrintOptionsQt.cpp', michael@0: 'nsPrintSettingsQt.cpp', michael@0: ] michael@0: michael@0: LIBRARY_NAME = 'widget_qt' michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'xul' michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../shared', michael@0: '/widget/xpwidgets', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_X11']: michael@0: LOCAL_INCLUDES += [ michael@0: '../shared/x11', michael@0: ] michael@0: michael@0: #DEFINES['DEBUG_WIDGETS'] = True michael@0: michael@0: if CONFIG['OS_ARCH'] == 'Linux': michael@0: DEFINES['_BSD_SOURCE'] = True michael@0: michael@0: if CONFIG['OS_ARCH'] == 'SunOS' and not CONFIG['GNU_CC']: michael@0: # When using Sun's WorkShop compiler, including michael@0: # /wherever/workshop-5.0/SC5.0/include/CC/std/time.h michael@0: # causes most of these compiles to fail with: michael@0: # line 29: Error: Multiple declaration for std::tm. michael@0: # So, this gets around the problem. michael@0: DEFINES['_TIME_H'] = 1