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/.
18 'GfxInfoCollector.cpp',
22 'nsBaseDragService.cpp',
24 'nsClipboardHelper.cpp',
25 'nsClipboardProxy.cpp',
26 'nsColorPickerProxy.cpp',
27 'nsContentProcessWidgetFactory.cpp',
28 'nsFilePickerProxy.cpp',
29 'nsHTMLFormatConverter.cpp',
31 'nsIWidgetListener.cpp',
32 'nsPrimitiveHelpers.cpp',
33 'nsPrintOptionsImpl.cpp',
35 'nsPrintSettingsImpl.cpp',
36 'nsScreenManagerProxy.cpp',
38 'nsXPLookAndFeel.cpp',
44 # nsBaseWidget.cpp needs to be built separately because of name clashes in the OS X headers
54 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('cocoa', 'windows'):
56 'nsBaseClipboard.cpp',
59 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3', 'cocoa', 'windows',
62 'nsBaseFilePicker.cpp',
65 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3', 'windows', 'cocoa'):
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')
88 widget_dir = CONFIG['MOZ_WIDGET_TOOLKIT']
89 if widget_dir in ('gtk3', 'gtk2'):
90 # gtk3 shares includes with gtk2
98 if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
99 DEFINES['MOZ_ENABLE_D3D10_LAYER'] = True
101 CXXFLAGS += CONFIG['TK_CFLAGS']