|
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 if CONFIG['MOZ_ENABLE_GTK2']: |
|
8 LIBRARY_NAME = 'widget_gtk2' |
|
9 else: |
|
10 LIBRARY_NAME = 'widget_gtk3' |
|
11 |
|
12 EXPORTS += [ |
|
13 'mozcontainer.h', |
|
14 'nsGTKToolkit.h', |
|
15 'nsIImageToPixbuf.h', |
|
16 ] |
|
17 |
|
18 UNIFIED_SOURCES += [ |
|
19 'mozcontainer.c', |
|
20 'NativeKeyBindings.cpp', |
|
21 'nsBidiKeyboard.cpp', |
|
22 'nsColorPicker.cpp', |
|
23 'nsFilePicker.cpp', |
|
24 'nsGtkKeyUtils.cpp', |
|
25 'nsImageToPixbuf.cpp', |
|
26 'nsLookAndFeel.cpp', |
|
27 'nsNativeThemeGTK.cpp', |
|
28 'nsScreenGtk.cpp', |
|
29 'nsScreenManagerGtk.cpp', |
|
30 'nsSound.cpp', |
|
31 'nsToolkit.cpp', |
|
32 'WidgetTraceEvent.cpp', |
|
33 ] |
|
34 |
|
35 # These files force-enable NSPR logging and thus cannot be built in unified mode |
|
36 SOURCES += [ |
|
37 'nsAppShell.cpp', |
|
38 'nsGtkIMModule.cpp', |
|
39 'nsWidgetFactory.cpp', |
|
40 'nsWindow.cpp', |
|
41 ] |
|
42 |
|
43 if CONFIG['MOZ_X11']: |
|
44 UNIFIED_SOURCES += [ |
|
45 'nsIdleServiceGTK.cpp', |
|
46 ] |
|
47 |
|
48 if CONFIG['NS_PRINTING']: |
|
49 UNIFIED_SOURCES += [ |
|
50 'nsCUPSShim.cpp', |
|
51 'nsPaperPS.cpp', |
|
52 'nsPrintDialogGTK.cpp', |
|
53 'nsPrintOptionsGTK.cpp', |
|
54 'nsPrintSettingsGTK.cpp', |
|
55 'nsPSPrinters.cpp', |
|
56 ] |
|
57 # This file force-enables NSPR logging and thus cannot be built in unified mode |
|
58 SOURCES += [ |
|
59 'nsDeviceContextSpecG.cpp', |
|
60 ] |
|
61 |
|
62 if CONFIG['MOZ_X11']: |
|
63 UNIFIED_SOURCES += [ |
|
64 'nsClipboard.cpp', |
|
65 ] |
|
66 # This file force-enables NSPR logging and thus cannot be built in unified mode |
|
67 SOURCES += [ |
|
68 'nsDragService.cpp', |
|
69 ] |
|
70 |
|
71 FAIL_ON_WARNINGS = True |
|
72 |
|
73 if CONFIG['ACCESSIBILITY']: |
|
74 UNIFIED_SOURCES += [ |
|
75 'maiRedundantObjectFactory.c', |
|
76 ] |
|
77 |
|
78 if CONFIG['MOZ_ENABLE_GTK2']: |
|
79 UNIFIED_SOURCES += [ |
|
80 'gtk2drawing.c', |
|
81 ] |
|
82 else: |
|
83 UNIFIED_SOURCES += [ |
|
84 'gtk3drawing.c', |
|
85 ] |
|
86 |
|
87 include('/ipc/chromium/chromium-config.mozbuild') |
|
88 |
|
89 FINAL_LIBRARY = 'xul' |
|
90 |
|
91 LOCAL_INCLUDES += [ |
|
92 '../shared', |
|
93 '../xpwidgets', |
|
94 '/layout/generic', |
|
95 '/layout/xul', |
|
96 '/other-licenses/atk-1.0', |
|
97 ] |
|
98 |
|
99 if CONFIG['MOZ_X11']: |
|
100 LOCAL_INCLUDES += [ |
|
101 '../shared/x11', |
|
102 ] |
|
103 |
|
104 DEFINES['CAIRO_GFX'] = True |
|
105 |
|
106 DEFINES['MOZ_APP_NAME'] = '"%s"' % CONFIG['MOZ_APP_NAME'] |