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/.
|
|
|
|
|
|
|
|
toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
|
|
|
|
|
2014-02-10 14:57:01 -08:00
|
|
|
if toolkit in ('cocoa', 'qt', 'android', 'gonk'):
|
2013-02-25 13:20:02 -08:00
|
|
|
DIRS += [toolkit]
|
2013-06-10 05:36:26 -07:00
|
|
|
if toolkit in ('qt', 'android', 'gonk', 'gtk2', 'gtk3'):
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += ['nsIPrintDialogService.h']
|
2013-02-25 13:20:02 -08:00
|
|
|
|
|
|
|
if toolkit == 'windows':
|
|
|
|
DIRS += ['windows']
|
|
|
|
|
2013-03-12 10:20:41 -07:00
|
|
|
XPIDL_SOURCES += [
|
2015-02-08 13:29:13 -08:00
|
|
|
'nsIGfxInfo2.idl',
|
2013-03-12 10:20:41 -07:00
|
|
|
'nsIJumpListBuilder.idl',
|
|
|
|
'nsIJumpListItem.idl',
|
|
|
|
'nsIPrintSettingsWin.idl',
|
2013-05-16 15:37:18 -07:00
|
|
|
'nsITaskbarOverlayIconController.idl',
|
2013-03-12 10:20:41 -07:00
|
|
|
'nsITaskbarPreview.idl',
|
2013-05-16 10:22:02 -07:00
|
|
|
'nsITaskbarPreviewButton.idl',
|
2013-05-16 15:37:18 -07:00
|
|
|
'nsITaskbarPreviewController.idl',
|
2013-05-16 10:22:02 -07:00
|
|
|
'nsITaskbarProgress.idl',
|
2013-05-16 15:37:18 -07:00
|
|
|
'nsITaskbarTabPreview.idl',
|
|
|
|
'nsITaskbarWindowPreview.idl',
|
2013-03-12 10:20:41 -07:00
|
|
|
'nsIWinTaskbar.idl',
|
|
|
|
]
|
|
|
|
elif toolkit == 'cocoa':
|
|
|
|
XPIDL_SOURCES += [
|
2014-11-21 16:23:09 -08:00
|
|
|
'nsIGfxInfo2.idl',
|
2013-03-12 10:20:41 -07:00
|
|
|
'nsIMacDockSupport.idl',
|
|
|
|
'nsIMacWebAppUtils.idl',
|
|
|
|
'nsIStandaloneNativeMenu.idl',
|
2014-07-18 12:06:02 -07:00
|
|
|
'nsISystemStatusBar.idl',
|
2013-03-12 10:20:41 -07:00
|
|
|
'nsITaskbarProgress.idl',
|
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'nsINativeMenuService.h',
|
|
|
|
'nsIPrintDialogService.h',
|
|
|
|
]
|
2013-03-12 10:20:41 -07:00
|
|
|
|
2014-07-28 16:55:55 -07:00
|
|
|
TEST_DIRS += ['tests']
|
2013-02-25 13:20:02 -08:00
|
|
|
|
|
|
|
# Don't build the DSO under the 'build' directory as windows does.
|
|
|
|
#
|
|
|
|
# The DSOs get built in the toolkit dir itself. Do this so that
|
|
|
|
# multiple implementations of widget can be built on the same
|
|
|
|
# source tree.
|
|
|
|
#
|
2013-06-10 05:36:26 -07:00
|
|
|
if CONFIG['MOZ_ENABLE_GTK']:
|
2013-09-23 06:21:57 -07:00
|
|
|
DIRS += ['gtk']
|
2013-02-25 13:20:02 -08:00
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
DIRS += ['gtkxtbin']
|
2013-03-12 10:17:46 -07:00
|
|
|
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIAppShell.idl',
|
|
|
|
'nsIBaseWindow.idl',
|
|
|
|
'nsIBidiKeyboard.idl',
|
|
|
|
'nsIClipboard.idl',
|
|
|
|
'nsIClipboardDragDropHookList.idl',
|
|
|
|
'nsIClipboardDragDropHooks.idl',
|
|
|
|
'nsIClipboardHelper.idl',
|
|
|
|
'nsIClipboardOwner.idl',
|
2013-07-03 03:17:26 -07:00
|
|
|
'nsIColorPicker.idl',
|
2013-03-12 10:17:46 -07:00
|
|
|
'nsIDragService.idl',
|
|
|
|
'nsIDragSession.idl',
|
|
|
|
'nsIFilePicker.idl',
|
|
|
|
'nsIFormatConverter.idl',
|
|
|
|
'nsIGfxInfo.idl',
|
|
|
|
'nsIGfxInfoDebug.idl',
|
|
|
|
'nsIIdleService.idl',
|
|
|
|
'nsIIdleServiceInternal.idl',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsIIMEPicker.idl',
|
2013-03-12 10:17:46 -07:00
|
|
|
'nsIPrintOptions.idl',
|
|
|
|
'nsIPrintSession.idl',
|
|
|
|
'nsIPrintSettings.idl',
|
|
|
|
'nsIPrintSettingsService.idl',
|
|
|
|
'nsIScreen.idl',
|
|
|
|
'nsIScreenManager.idl',
|
|
|
|
'nsISound.idl',
|
|
|
|
'nsITransferable.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-12 10:20:41 -07:00
|
|
|
if CONFIG['MOZ_METRO']:
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'MetroUIUtils.idl',
|
|
|
|
'nsIWinMetroUtils.idl',
|
|
|
|
]
|
|
|
|
|
2013-11-18 18:47:43 -08:00
|
|
|
XPIDL_MODULE = 'widget'
|
2013-03-19 11:47:00 -07:00
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
2014-10-23 10:16:45 -07:00
|
|
|
'ContentHelper.h',
|
|
|
|
'GfxDriverInfo.h',
|
|
|
|
'GfxInfoBase.h',
|
|
|
|
'GfxInfoCollector.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'InputData.h',
|
2014-11-12 12:59:19 -08:00
|
|
|
'nsBaseScreen.h',
|
|
|
|
'nsBaseWidget.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsIDeviceContextSpec.h',
|
|
|
|
'nsIPluginWidget.h',
|
|
|
|
'nsIRollupListener.h',
|
|
|
|
'nsIWidget.h',
|
|
|
|
'nsIWidgetListener.h',
|
|
|
|
'nsWidgetInitData.h',
|
|
|
|
'nsWidgetsCID.h',
|
2014-11-12 12:59:20 -08:00
|
|
|
'PluginWidgetProxy.h',
|
2014-11-12 12:59:19 -08:00
|
|
|
'PuppetWidget.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
2013-09-24 03:04:14 -07:00
|
|
|
'BasicEvents.h',
|
2014-03-14 06:13:30 -07:00
|
|
|
'CommandList.h',
|
2013-09-24 03:04:15 -07:00
|
|
|
'ContentEvents.h',
|
2013-10-17 23:10:20 -07:00
|
|
|
'EventClassList.h',
|
2013-09-24 03:04:14 -07:00
|
|
|
'EventForwards.h',
|
2015-01-30 23:17:12 -08:00
|
|
|
'FontRange.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'LookAndFeel.h',
|
2013-09-24 03:04:15 -07:00
|
|
|
'MiscEvents.h',
|
2013-09-24 03:04:15 -07:00
|
|
|
'MouseEvents.h',
|
2015-01-27 22:27:30 -08:00
|
|
|
'TextEventDispatcher.h',
|
2015-01-27 22:27:32 -08:00
|
|
|
'TextEventDispatcherListener.h',
|
2013-09-24 03:04:15 -07:00
|
|
|
'TextEvents.h',
|
2013-10-22 06:27:36 -07:00
|
|
|
'TextRange.h',
|
2013-09-24 03:04:15 -07:00
|
|
|
'TouchEvents.h',
|
2014-11-21 10:52:24 -08:00
|
|
|
'VsyncDispatcher.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'WidgetUtils.h',
|
|
|
|
]
|
|
|
|
|
2015-04-10 15:18:05 -07:00
|
|
|
EXPORTS.mozilla.widget += [
|
|
|
|
'PuppetBidiKeyboard.h',
|
|
|
|
]
|
|
|
|
|
2014-10-23 10:16:45 -07:00
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'ContentHelper.cpp',
|
|
|
|
'GfxDriverInfo.cpp',
|
|
|
|
'GfxInfoBase.cpp',
|
|
|
|
'GfxInfoCollector.cpp',
|
|
|
|
'GfxInfoWebGL.cpp',
|
|
|
|
'InputData.cpp',
|
|
|
|
'nsBaseAppShell.cpp',
|
|
|
|
'nsBaseDragService.cpp',
|
|
|
|
'nsBaseScreen.cpp',
|
|
|
|
'nsClipboardHelper.cpp',
|
|
|
|
'nsClipboardProxy.cpp',
|
|
|
|
'nsColorPickerProxy.cpp',
|
|
|
|
'nsContentProcessWidgetFactory.cpp',
|
2015-04-08 11:48:11 -07:00
|
|
|
'nsDragServiceProxy.cpp',
|
2014-10-23 10:16:45 -07:00
|
|
|
'nsFilePickerProxy.cpp',
|
|
|
|
'nsHTMLFormatConverter.cpp',
|
|
|
|
'nsIdleService.cpp',
|
|
|
|
'nsIWidgetListener.cpp',
|
|
|
|
'nsPrimitiveHelpers.cpp',
|
|
|
|
'nsPrintSession.cpp',
|
|
|
|
'nsPrintSettingsImpl.cpp',
|
|
|
|
'nsScreenManagerProxy.cpp',
|
2014-10-23 10:16:47 -07:00
|
|
|
'nsShmImage.cpp',
|
2014-10-23 10:16:45 -07:00
|
|
|
'nsTransferable.cpp',
|
|
|
|
'nsXPLookAndFeel.cpp',
|
2014-11-12 12:59:20 -08:00
|
|
|
'PluginWidgetProxy.cpp',
|
2015-04-10 15:18:05 -07:00
|
|
|
'PuppetBidiKeyboard.cpp',
|
2014-10-23 10:16:45 -07:00
|
|
|
'PuppetWidget.cpp',
|
|
|
|
'ScreenProxy.cpp',
|
|
|
|
'SharedWidgetUtils.cpp',
|
2015-01-27 22:27:30 -08:00
|
|
|
'TextEventDispatcher.cpp',
|
2014-11-21 10:52:24 -08:00
|
|
|
'VsyncDispatcher.cpp',
|
2014-10-23 10:16:47 -07:00
|
|
|
'WidgetEventImpl.cpp',
|
2014-10-23 10:16:45 -07:00
|
|
|
'WidgetUtils.cpp',
|
|
|
|
]
|
|
|
|
|
2014-11-22 03:15:00 -08:00
|
|
|
if CONFIG['MOZ_XUL'] and CONFIG['NS_PRINTING']:
|
|
|
|
EXPORTS += [
|
|
|
|
'nsPrintOptionsImpl.h',
|
|
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'nsPrintOptionsImpl.cpp',
|
|
|
|
]
|
|
|
|
|
2014-10-23 10:16:45 -07:00
|
|
|
# nsBaseWidget.cpp needs to be built separately because of name clashes in the OS X headers
|
|
|
|
SOURCES += [
|
|
|
|
'nsBaseWidget.cpp',
|
|
|
|
]
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
if CONFIG['MOZ_INSTRUMENT_EVENT_LOOP']:
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'WidgetTraceEvent.h',
|
|
|
|
]
|
|
|
|
|
2013-07-10 12:08:23 -07:00
|
|
|
EXPORTS.ipc = ['nsGUIEventIPC.h']
|
2013-04-16 12:24:43 -07:00
|
|
|
|
2014-10-23 10:16:45 -07:00
|
|
|
if CONFIG['MOZ_X11']:
|
2014-10-23 10:16:47 -07:00
|
|
|
DIRS += ['x11']
|
2014-10-23 10:16:45 -07:00
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'GfxInfoX11.cpp'
|
|
|
|
]
|
|
|
|
|
|
|
|
if toolkit in ('cocoa', 'windows'):
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'nsBaseClipboard.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if toolkit in ('qt', 'gtk2', 'gtk3', 'cocoa', 'windows',
|
|
|
|
'android', 'gonk'):
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'nsBaseFilePicker.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if toolkit in ('qt', 'gtk2', 'gtk3', 'windows', 'cocoa'):
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'nsNativeTheme.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if not CONFIG['MOZ_B2G']:
|
|
|
|
DEFINES['MOZ_CROSS_PROCESS_IME'] = True
|
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
2015-04-08 11:48:11 -07:00
|
|
|
'/dom/base',
|
|
|
|
'/dom/ipc',
|
2014-10-23 10:16:45 -07:00
|
|
|
'/layout/base',
|
|
|
|
'/layout/forms',
|
|
|
|
'/layout/generic',
|
|
|
|
'/layout/xul',
|
|
|
|
'/view',
|
2014-10-23 10:16:47 -07:00
|
|
|
'/widget',
|
2014-10-23 10:16:45 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
widget_dir = toolkit
|
|
|
|
if widget_dir in ('gtk3', 'gtk2'):
|
|
|
|
# gtk3 shares includes with gtk2
|
|
|
|
widget_dir = 'gtk'
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/widget/%s' % widget_dir,
|
|
|
|
]
|
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
|
|
|
|
DEFINES['MOZ_ENABLE_D3D10_LAYER'] = True
|
|
|
|
|
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|