mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
89 lines
2.1 KiB
Python
89 lines
2.1 KiB
Python
# -*- 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/.
|
|
|
|
DIRS += ['faststartupqt']
|
|
|
|
EXPORTS += [
|
|
'nsQtKeyUtils.h',
|
|
]
|
|
|
|
GENERATED_SOURCES += [
|
|
'moc_moziqwidget.cpp',
|
|
'moc_mozqwidget.cpp',
|
|
'moc_nsAppShell.cpp',
|
|
]
|
|
|
|
SOURCES += [
|
|
'mozqglwidgetwrapper.cpp',
|
|
'mozqwidget.cpp',
|
|
'mozSwipeGesture.cpp',
|
|
'nsAppShell.cpp',
|
|
'nsBidiKeyboard.cpp',
|
|
'nsClipboard.cpp',
|
|
'nsDeviceContextSpecQt.cpp',
|
|
'nsDragService.cpp',
|
|
'nsFilePicker.cpp',
|
|
'nsIdleServiceQt.cpp',
|
|
'nsLookAndFeel.cpp',
|
|
'nsNativeThemeQt.cpp',
|
|
'nsPrintDialogQt.cpp',
|
|
'nsPrintOptionsQt.cpp',
|
|
'nsPrintSettingsQt.cpp',
|
|
'nsQtKeyUtils.cpp',
|
|
'nsScreenManagerQt.cpp',
|
|
'nsScreenQt.cpp',
|
|
'nsSound.cpp',
|
|
'nsWidgetFactory.cpp',
|
|
'nsWindow.cpp',
|
|
]
|
|
|
|
if CONFIG['MOZ_ENABLE_CONTENTMANAGER']:
|
|
SOURCES += [
|
|
'nsMFilePicker.cpp',
|
|
]
|
|
GENERATED_SOURCES += [
|
|
'moc_nsMFilePicker.cpp',
|
|
]
|
|
|
|
if CONFIG[' MOZ_ENABLE_QTMOBILITY']:
|
|
SOURCES += [
|
|
'mozqorientationsensorfilter.cpp',
|
|
]
|
|
GENERATED_SOURCES += [
|
|
'moc_mozqorientationsensorfilter.cpp',
|
|
]
|
|
|
|
LIBRARY_NAME = 'widget_qt'
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
LOCAL_INCLUDES += [
|
|
'../shared',
|
|
'/widget/qt/faststartupqt',
|
|
'/widget/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
|