michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: EXPORTS += [ michael@0: 'ContentHelper.h', michael@0: 'GfxDriverInfo.h', michael@0: 'GfxInfoBase.h', michael@0: 'GfxInfoCollector.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'ContentHelper.cpp', michael@0: 'GfxDriverInfo.cpp', michael@0: 'GfxInfoBase.cpp', michael@0: 'GfxInfoCollector.cpp', michael@0: 'GfxInfoWebGL.cpp', michael@0: 'InputData.cpp', michael@0: 'nsBaseAppShell.cpp', michael@0: 'nsBaseDragService.cpp', michael@0: 'nsBaseScreen.cpp', michael@0: 'nsClipboardHelper.cpp', michael@0: 'nsClipboardPrivacyHandler.cpp', michael@0: 'nsClipboardProxy.cpp', michael@0: 'nsColorPickerProxy.cpp', michael@0: 'nsContentProcessWidgetFactory.cpp', michael@0: 'nsFilePickerProxy.cpp', michael@0: 'nsHTMLFormatConverter.cpp', michael@0: 'nsIdleService.cpp', michael@0: 'nsIWidgetListener.cpp', michael@0: 'nsPrimitiveHelpers.cpp', michael@0: 'nsPrintOptionsImpl.cpp', michael@0: 'nsPrintSession.cpp', michael@0: 'nsPrintSettingsImpl.cpp', michael@0: 'nsTransferable.cpp', michael@0: 'nsXPLookAndFeel.cpp', michael@0: 'PuppetWidget.cpp', michael@0: 'WidgetUtils.cpp', michael@0: ] michael@0: michael@0: # nsBaseWidget.cpp needs to be built separately because of name clashes in the OS X headers michael@0: SOURCES += [ michael@0: 'nsBaseWidget.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_X11']: michael@0: UNIFIED_SOURCES += [ michael@0: 'GfxInfoX11.cpp' michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('cocoa', 'windows'): michael@0: UNIFIED_SOURCES += [ michael@0: 'nsBaseClipboard.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3', 'cocoa', 'windows', michael@0: 'android', 'gonk'): michael@0: UNIFIED_SOURCES += [ michael@0: 'nsBaseFilePicker.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3', 'windows', 'cocoa'): michael@0: UNIFIED_SOURCES += [ michael@0: 'nsNativeTheme.cpp', michael@0: ] michael@0: michael@0: if not CONFIG['MOZ_B2G']: michael@0: DEFINES['MOZ_CROSS_PROCESS_IME'] = True michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: LIBRARY_NAME = 'xpwidgets_s' michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../shared', michael@0: '/layout/base', michael@0: '/layout/forms', michael@0: '/layout/generic', michael@0: '/layout/xul', michael@0: '/view/src', michael@0: ] michael@0: michael@0: widget_dir = CONFIG['MOZ_WIDGET_TOOLKIT'] michael@0: if widget_dir in ('gtk3', 'gtk2'): michael@0: # gtk3 shares includes with gtk2 michael@0: widget_dir = 'gtk' michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../%s' % widget_dir, michael@0: ] michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': michael@0: FINAL_LIBRARY = 'widget_mac' michael@0: elif CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gonk', 'android', 'qt', 'gtk2', 'gtk3'): michael@0: FINAL_LIBRARY = 'widget_%s' % CONFIG['MOZ_WIDGET_TOOLKIT'] michael@0: michael@0: if CONFIG['MOZ_ENABLE_D3D10_LAYER']: michael@0: DEFINES['MOZ_ENABLE_D3D10_LAYER'] = True