2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 13:20:02 -08: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 12:24:43 -07:00
|
|
|
EXPORTS += [
|
2013-09-18 06:56:16 -07:00
|
|
|
'APZCCallbackHelper.h',
|
2014-01-15 07:03:15 -08:00
|
|
|
'ContentHelper.h',
|
2013-11-15 08:28:43 -08:00
|
|
|
'GfxDriverInfo.h',
|
|
|
|
'GfxInfoBase.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'GfxInfoCollector.h',
|
|
|
|
]
|
|
|
|
|
2013-11-17 11:03:55 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-09-18 06:56:16 -07:00
|
|
|
'APZCCallbackHelper.cpp',
|
2014-01-15 07:03:15 -08:00
|
|
|
'ContentHelper.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'GfxDriverInfo.cpp',
|
|
|
|
'GfxInfoBase.cpp',
|
2013-09-19 13:02:03 -07:00
|
|
|
'GfxInfoCollector.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'GfxInfoWebGL.cpp',
|
|
|
|
'InputData.cpp',
|
|
|
|
'nsBaseAppShell.cpp',
|
|
|
|
'nsBaseDragService.cpp',
|
|
|
|
'nsBaseScreen.cpp',
|
|
|
|
'nsClipboardHelper.cpp',
|
|
|
|
'nsClipboardPrivacyHandler.cpp',
|
2014-02-09 16:13:10 -08:00
|
|
|
'nsClipboardProxy.cpp',
|
2014-02-23 12:19:43 -08:00
|
|
|
'nsColorPickerProxy.cpp',
|
2014-02-09 16:13:05 -08:00
|
|
|
'nsContentProcessWidgetFactory.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsFilePickerProxy.cpp',
|
|
|
|
'nsHTMLFormatConverter.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'nsIdleService.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsIWidgetListener.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsPrimitiveHelpers.cpp',
|
|
|
|
'nsPrintOptionsImpl.cpp',
|
|
|
|
'nsPrintSession.cpp',
|
|
|
|
'nsPrintSettingsImpl.cpp',
|
|
|
|
'nsTransferable.cpp',
|
|
|
|
'nsXPLookAndFeel.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'PuppetWidget.cpp',
|
|
|
|
'WidgetUtils.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
2013-11-17 11:03:55 -08:00
|
|
|
# nsBaseWidget.cpp needs to be built separately because of name clashes in the OS X headers
|
|
|
|
SOURCES += [
|
|
|
|
'nsBaseWidget.cpp',
|
|
|
|
]
|
|
|
|
|
2013-04-23 14:54:15 -07:00
|
|
|
if CONFIG['MOZ_X11']:
|
2013-11-17 11:03:55 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'GfxInfoX11.cpp'
|
|
|
|
]
|
|
|
|
|
2014-02-10 14:57:01 -08:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('cocoa', 'windows'):
|
2013-11-17 11:03:55 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsBaseClipboard.cpp',
|
|
|
|
]
|
|
|
|
|
2014-02-10 14:57:01 -08:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3', 'cocoa', 'windows',
|
2013-04-23 14:54:15 -07:00
|
|
|
'android', 'gonk'):
|
2013-11-17 11:03:55 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsBaseFilePicker.cpp',
|
|
|
|
]
|
|
|
|
|
2013-06-10 05:36:26 -07:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3', 'windows', 'cocoa'):
|
2013-11-17 11:03:55 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsNativeTheme.cpp',
|
|
|
|
]
|
2013-08-21 23:56:01 -07:00
|
|
|
|
2014-01-16 02:04:05 -08:00
|
|
|
if not CONFIG['MOZ_B2G']:
|
|
|
|
DEFINES['MOZ_CROSS_PROCESS_IME'] = True
|
|
|
|
|
2013-08-21 23:56:01 -07:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-08-15 06:02:09 -07:00
|
|
|
LIBRARY_NAME = 'xpwidgets_s'
|
|
|
|
|
2013-10-02 10:17:55 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-28 06:17:25 -08:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../shared',
|
2013-11-06 16:11:11 -08:00
|
|
|
'/dom/events',
|
2013-11-28 06:17:25 -08:00
|
|
|
'/layout/base',
|
|
|
|
'/layout/forms',
|
|
|
|
'/layout/generic',
|
2013-12-03 17:06:16 -08:00
|
|
|
'/layout/xul',
|
2013-11-28 06:17:25 -08: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-18 18:47:14 -08: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 05:55:07 -08:00
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
|
|
|
|
DEFINES['MOZ_ENABLE_D3D10_LAYER'] = True
|