2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 01:20:02 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
2013-09-18 17:56:16 +04:00
|
|
|
'APZCCallbackHelper.h',
|
2014-01-15 19:03:15 +04:00
|
|
|
'ContentHelper.h',
|
2013-11-15 20:28:43 +04:00
|
|
|
'GfxDriverInfo.h',
|
|
|
|
'GfxInfoBase.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'GfxInfoCollector.h',
|
|
|
|
]
|
|
|
|
|
2013-11-17 23:03:55 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-09-18 17:56:16 +04:00
|
|
|
'APZCCallbackHelper.cpp',
|
2014-01-15 19:03:15 +04:00
|
|
|
'ContentHelper.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'GfxDriverInfo.cpp',
|
|
|
|
'GfxInfoBase.cpp',
|
2013-09-20 00:02:03 +04:00
|
|
|
'GfxInfoCollector.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'GfxInfoWebGL.cpp',
|
|
|
|
'InputData.cpp',
|
|
|
|
'nsBaseAppShell.cpp',
|
|
|
|
'nsBaseDragService.cpp',
|
|
|
|
'nsBaseScreen.cpp',
|
|
|
|
'nsClipboardHelper.cpp',
|
|
|
|
'nsClipboardPrivacyHandler.cpp',
|
2014-02-10 04:13:10 +04:00
|
|
|
'nsClipboardProxy.cpp',
|
2014-02-24 00:19:43 +04:00
|
|
|
'nsColorPickerProxy.cpp',
|
2014-02-10 04:13:05 +04:00
|
|
|
'nsContentProcessWidgetFactory.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsFilePickerProxy.cpp',
|
|
|
|
'nsHTMLFormatConverter.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'nsIdleService.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'nsIWidgetListener.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsPrimitiveHelpers.cpp',
|
|
|
|
'nsPrintOptionsImpl.cpp',
|
|
|
|
'nsPrintSession.cpp',
|
|
|
|
'nsPrintSettingsImpl.cpp',
|
|
|
|
'nsTransferable.cpp',
|
|
|
|
'nsXPLookAndFeel.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'PuppetWidget.cpp',
|
|
|
|
'WidgetUtils.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2013-11-17 23:03:55 +04:00
|
|
|
# nsBaseWidget.cpp needs to be built separately because of name clashes in the OS X headers
|
|
|
|
SOURCES += [
|
|
|
|
'nsBaseWidget.cpp',
|
|
|
|
]
|
|
|
|
|
2013-04-24 01:54:15 +04:00
|
|
|
if CONFIG['MOZ_X11']:
|
2013-11-17 23:03:55 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'GfxInfoX11.cpp'
|
|
|
|
]
|
|
|
|
|
2014-02-11 02:57:01 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('cocoa', 'windows'):
|
2013-11-17 23:03:55 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsBaseClipboard.cpp',
|
|
|
|
]
|
|
|
|
|
2014-02-11 02:57:01 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3', 'cocoa', 'windows',
|
2013-04-24 01:54:15 +04:00
|
|
|
'android', 'gonk'):
|
2013-11-17 23:03:55 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsBaseFilePicker.cpp',
|
|
|
|
]
|
|
|
|
|
2013-06-10 16:36:26 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3', 'windows', 'cocoa'):
|
2013-11-17 23:03:55 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsNativeTheme.cpp',
|
|
|
|
]
|
2013-08-22 10:56:01 +04:00
|
|
|
|
2014-01-16 14:04:05 +04:00
|
|
|
if not CONFIG['MOZ_B2G']:
|
|
|
|
DEFINES['MOZ_CROSS_PROCESS_IME'] = True
|
|
|
|
|
2013-08-22 10:56:01 +04:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-08-15 17:02:09 +04:00
|
|
|
LIBRARY_NAME = 'xpwidgets_s'
|
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-28 18:17:25 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../shared',
|
2013-11-07 04:11:11 +04:00
|
|
|
'/dom/events',
|
2013-11-28 18:17:25 +04:00
|
|
|
'/layout/base',
|
|
|
|
'/layout/forms',
|
|
|
|
'/layout/generic',
|
2013-12-04 05:06:16 +04:00
|
|
|
'/layout/xul',
|
2013-11-28 18:17:25 +04:00
|
|
|
'/view/src',
|
|
|
|
]
|
|
|
|
|
|
|
|
widget_dir = CONFIG['MOZ_WIDGET_TOOLKIT']
|
|
|
|
if widget_dir in ('gtk3', 'gtk2'):
|
|
|
|
# gtk3 shares includes with gtk2
|
|
|
|
widget_dir = 'gtk'
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../%s' % widget_dir,
|
|
|
|
]
|
2013-11-19 06:47:14 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
FINAL_LIBRARY = 'widget_mac'
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gonk', 'android', 'qt', 'gtk2', 'gtk3'):
|
|
|
|
FINAL_LIBRARY = 'widget_%s' % CONFIG['MOZ_WIDGET_TOOLKIT']
|
2013-11-27 17:55:07 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
|
|
|
|
DEFINES['MOZ_ENABLE_D3D10_LAYER'] = True
|