|
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/. |
|
6 |
|
7 GENERATED_SOURCES += [ |
|
8 'moc_mozqwidget.cpp', |
|
9 'moc_nsAppShell.cpp', |
|
10 ] |
|
11 |
|
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', |
|
24 ] |
|
25 |
|
26 |
|
27 if CONFIG['NS_PRINTING']: |
|
28 SOURCES += [ |
|
29 'nsDeviceContextSpecQt.cpp', |
|
30 'nsPrintDialogQt.cpp', |
|
31 'nsPrintOptionsQt.cpp', |
|
32 'nsPrintSettingsQt.cpp', |
|
33 ] |
|
34 |
|
35 LIBRARY_NAME = 'widget_qt' |
|
36 |
|
37 include('/ipc/chromium/chromium-config.mozbuild') |
|
38 |
|
39 FINAL_LIBRARY = 'xul' |
|
40 |
|
41 LOCAL_INCLUDES += [ |
|
42 '../shared', |
|
43 '/widget/xpwidgets', |
|
44 ] |
|
45 |
|
46 if CONFIG['MOZ_X11']: |
|
47 LOCAL_INCLUDES += [ |
|
48 '../shared/x11', |
|
49 ] |
|
50 |
|
51 #DEFINES['DEBUG_WIDGETS'] = True |
|
52 |
|
53 if CONFIG['OS_ARCH'] == 'Linux': |
|
54 DEFINES['_BSD_SOURCE'] = True |
|
55 |
|
56 if CONFIG['OS_ARCH'] == 'SunOS' and not CONFIG['GNU_CC']: |
|
57 # When using Sun's WorkShop compiler, including |
|
58 # /wherever/workshop-5.0/SC5.0/include/CC/std/time.h |
|
59 # causes most of these compiles to fail with: |
|
60 # line 29: Error: Multiple declaration for std::tm. |
|
61 # So, this gets around the problem. |
|
62 DEFINES['_TIME_H'] = 1 |