Bumping manifests a=b2g-bump
[gecko.git] / widget / qt / moz.build
blob9018ad6878e74381adf959ad116fbc19d760489c
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 GENERATED_SOURCES += [
8     'moc_mozqwidget.cpp',
9     'moc_nsAppShell.cpp',
12 SOURCES += [
13     'mozqwidget.cpp',
14     'nsAppShell.cpp',
15     'nsBidiKeyboard.cpp',
16     'nsClipboard.cpp',
17     'nsIdleServiceQt.cpp',
18     'nsLookAndFeel.cpp',
19     'nsQtKeyUtils.cpp',
20     'nsScreenManagerQt.cpp',
21     'nsScreenQt.cpp',
22     'nsWidgetFactory.cpp',
23     'nsWindow.cpp',
27 if CONFIG['NS_PRINTING']:
28     SOURCES += [
29         'nsDeviceContextSpecQt.cpp',
30         'nsPrintDialogQt.cpp',
31         'nsPrintOptionsQt.cpp',
32         'nsPrintSettingsQt.cpp',
33     ]
35 include('/ipc/chromium/chromium-config.mozbuild')
37 FINAL_LIBRARY = 'xul'
39 LOCAL_INCLUDES += [
40     '../shared',
41     '/widget/xpwidgets',
44 if CONFIG['MOZ_X11']:
45     LOCAL_INCLUDES += [
46         '../shared/x11',
47     ]
49 #DEFINES['DEBUG_WIDGETS'] = True
51 if CONFIG['OS_ARCH'] == 'Linux':
52     DEFINES['_BSD_SOURCE'] = True
54 if CONFIG['OS_ARCH'] == 'SunOS' and not CONFIG['GNU_CC']:
55     # When using Sun's WorkShop compiler, including
56     # /wherever/workshop-5.0/SC5.0/include/CC/std/time.h
57     # causes most of these compiles to fail with:
58     # line 29: Error: Multiple declaration for std::tm.
59     # So, this gets around the problem.
60     DEFINES['_TIME_H'] = 1
62 CXXFLAGS += CONFIG['MOZ_QT_CFLAGS']
63 CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
64 CFLAGS += CONFIG['MOZ_QT_CFLAGS']
65 CFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']