Bumping manifests a=b2g-bump
[gecko.git] / widget / xpwidgets / moz.build
blob1460c63365b14a2c5658d9ca379bb1b177a7e05b
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 EXPORTS += [
8     'ContentHelper.h',
9     'GfxDriverInfo.h',
10     'GfxInfoBase.h',
11     'GfxInfoCollector.h',
14 UNIFIED_SOURCES += [
15     'ContentHelper.cpp',
16     'GfxDriverInfo.cpp',
17     'GfxInfoBase.cpp',
18     'GfxInfoCollector.cpp',
19     'GfxInfoWebGL.cpp',
20     'InputData.cpp',
21     'nsBaseAppShell.cpp',
22     'nsBaseDragService.cpp',
23     'nsBaseScreen.cpp',
24     'nsClipboardHelper.cpp',
25     'nsClipboardProxy.cpp',
26     'nsColorPickerProxy.cpp',
27     'nsContentProcessWidgetFactory.cpp',
28     'nsFilePickerProxy.cpp',
29     'nsHTMLFormatConverter.cpp',
30     'nsIdleService.cpp',
31     'nsIWidgetListener.cpp',
32     'nsPrimitiveHelpers.cpp',
33     'nsPrintOptionsImpl.cpp',
34     'nsPrintSession.cpp',
35     'nsPrintSettingsImpl.cpp',
36     'nsScreenManagerProxy.cpp',
37     'nsTransferable.cpp',
38     'nsXPLookAndFeel.cpp',
39     'PuppetWidget.cpp',
40     'ScreenProxy.cpp',
41     'WidgetUtils.cpp',
44 # nsBaseWidget.cpp needs to be built separately because of name clashes in the OS X headers
45 SOURCES += [
46     'nsBaseWidget.cpp',
49 if CONFIG['MOZ_X11']:
50     UNIFIED_SOURCES += [
51         'GfxInfoX11.cpp'
52     ]
54 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('cocoa', 'windows'):
55     UNIFIED_SOURCES += [
56         'nsBaseClipboard.cpp',
57     ]
59 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3', 'cocoa', 'windows',
60                                     'android', 'gonk'):
61     UNIFIED_SOURCES += [
62         'nsBaseFilePicker.cpp',
63     ]
65 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3', 'windows', 'cocoa'):
66     UNIFIED_SOURCES += [
67         'nsNativeTheme.cpp',
68     ]
70 if not CONFIG['MOZ_B2G']:
71     DEFINES['MOZ_CROSS_PROCESS_IME'] = True
73 FAIL_ON_WARNINGS = True
75 MSVC_ENABLE_PGO = True
77 include('/ipc/chromium/chromium-config.mozbuild')
79 LOCAL_INCLUDES += [
80     '../shared',
81     '/layout/base',
82     '/layout/forms',
83     '/layout/generic',
84     '/layout/xul',
85     '/view',
88 widget_dir = CONFIG['MOZ_WIDGET_TOOLKIT']
89 if widget_dir in ('gtk3', 'gtk2'):
90     # gtk3 shares includes with gtk2
91     widget_dir = 'gtk'
93 LOCAL_INCLUDES += [
94     '../%s' % widget_dir,
96 FINAL_LIBRARY = 'xul'
98 if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
99     DEFINES['MOZ_ENABLE_D3D10_LAYER'] = True
101 CXXFLAGS += CONFIG['TK_CFLAGS']