Bumping manifests a=b2g-bump
[gecko.git] / widget / gtk / moz.build
blob3a3e7476f3ffc87ca6141593e7e6e547b5aee47e
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 if CONFIG['MOZ_ENABLE_GTK3']:
8     DIRS += ['mozgtk']
10 EXPORTS += [
11     'mozcontainer.h',
12     'nsGTKToolkit.h',
13     'nsIImageToPixbuf.h',
16 UNIFIED_SOURCES += [
17     'mozcontainer.c',
18     'NativeKeyBindings.cpp',
19     'nsBidiKeyboard.cpp',
20     'nsColorPicker.cpp',
21     'nsFilePicker.cpp',
22     'nsGtkKeyUtils.cpp',
23     'nsImageToPixbuf.cpp',
24     'nsLookAndFeel.cpp',
25     'nsNativeThemeGTK.cpp',
26     'nsScreenGtk.cpp',
27     'nsScreenManagerGtk.cpp',
28     'nsSound.cpp',
29     'nsToolkit.cpp',
30     'WakeLockListener.cpp',
31     'WidgetTraceEvent.cpp',
34 # These files force-enable NSPR logging and thus cannot be built in unified mode
35 SOURCES += [
36     'nsAppShell.cpp',
37     'nsGtkIMModule.cpp',
38     'nsWidgetFactory.cpp',
39     'nsWindow.cpp',
42 if CONFIG['MOZ_X11']:
43     UNIFIED_SOURCES += [
44         'nsIdleServiceGTK.cpp',
45     ]
47 if CONFIG['NS_PRINTING']:
48     UNIFIED_SOURCES += [
49         'nsCUPSShim.cpp',
50         'nsPaperPS.cpp',
51         'nsPrintDialogGTK.cpp',
52         'nsPrintOptionsGTK.cpp',
53         'nsPrintSettingsGTK.cpp',
54         'nsPSPrinters.cpp',
55     ]
56     # This file force-enables NSPR logging and thus cannot be built in unified mode
57     SOURCES += [
58         'nsDeviceContextSpecG.cpp',
59     ]
61 if CONFIG['MOZ_X11']:
62     UNIFIED_SOURCES += [
63         'nsClipboard.cpp',
64     ]
65     # This file force-enables NSPR logging and thus cannot be built in unified mode
66     SOURCES += [
67         'nsDragService.cpp',
68     ]
70 FAIL_ON_WARNINGS = True
72 if CONFIG['ACCESSIBILITY']:
73     UNIFIED_SOURCES += [
74         'maiRedundantObjectFactory.c',
75     ]
77 if CONFIG['MOZ_ENABLE_GTK2']:
78     UNIFIED_SOURCES += [
79         'gtk2drawing.c',
80     ]
81 else:
82     UNIFIED_SOURCES += [
83         'gtk3drawing.c',
84     ]
86 include('/ipc/chromium/chromium-config.mozbuild')
88 FINAL_LIBRARY = 'xul'
90 LOCAL_INCLUDES += [
91     '../shared',
92     '../xpwidgets',
93     '/layout/generic',
94     '/layout/xul',
95     '/other-licenses/atk-1.0',
98 if CONFIG['MOZ_X11']:
99     LOCAL_INCLUDES += [
100         '../shared/x11',
101     ]
103 DEFINES['CAIRO_GFX'] = True
105 DEFINES['MOZ_APP_NAME'] = '"%s"' % CONFIG['MOZ_APP_NAME']
107 CFLAGS += CONFIG['MOZ_STARTUP_NOTIFICATION_CFLAGS']
108 CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
109 CXXFLAGS += CONFIG['MOZ_STARTUP_NOTIFICATION_CFLAGS']
111 CFLAGS += CONFIG['TK_CFLAGS']
112 CXXFLAGS += CONFIG['TK_CFLAGS']
114 if CONFIG['MOZ_ENABLE_DBUS']:
115     CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']