2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 13:20:02 -08:00
|
|
|
# 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/.
|
|
|
|
|
2013-10-31 18:30:45 -07:00
|
|
|
GENERATED_SOURCES += [
|
2013-10-29 17:19:15 -07:00
|
|
|
'moc_mozqwidget.cpp',
|
|
|
|
'moc_nsAppShell.cpp',
|
2013-10-31 18:30:45 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'mozqwidget.cpp',
|
|
|
|
'nsAppShell.cpp',
|
|
|
|
'nsBidiKeyboard.cpp',
|
|
|
|
'nsClipboard.cpp',
|
|
|
|
'nsIdleServiceQt.cpp',
|
|
|
|
'nsLookAndFeel.cpp',
|
|
|
|
'nsQtKeyUtils.cpp',
|
|
|
|
'nsScreenManagerQt.cpp',
|
|
|
|
'nsScreenQt.cpp',
|
|
|
|
'nsWidgetFactory.cpp',
|
|
|
|
'nsWindow.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
|
2014-02-20 18:09:02 -08:00
|
|
|
if CONFIG['NS_PRINTING']:
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2014-02-20 18:09:02 -08:00
|
|
|
'nsDeviceContextSpecQt.cpp',
|
|
|
|
'nsPrintDialogQt.cpp',
|
|
|
|
'nsPrintOptionsQt.cpp',
|
|
|
|
'nsPrintSettingsQt.cpp',
|
2013-10-31 18:30:45 -07:00
|
|
|
]
|
2013-08-21 23:56:01 -07:00
|
|
|
|
2013-08-15 06:02:09 -07:00
|
|
|
LIBRARY_NAME = 'widget_qt'
|
|
|
|
|
2013-10-02 10:17:55 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-18 18:47:14 -08:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-27 05:55:07 -08:00
|
|
|
|
2013-11-28 06:17:25 -08:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../shared',
|
|
|
|
'/widget/xpwidgets',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../shared/x11',
|
|
|
|
]
|
|
|
|
|
2013-11-27 05:55:07 -08:00
|
|
|
#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
|