widget/moz.build

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 DIRS += ['shared', 'xpwidgets']
michael@0 8
michael@0 9 toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
michael@0 10
michael@0 11 if toolkit in ('cocoa', 'qt', 'android', 'gonk'):
michael@0 12 DIRS += [toolkit]
michael@0 13 if toolkit in ('qt', 'android', 'gonk', 'gtk2', 'gtk3'):
michael@0 14 EXPORTS += ['nsIPrintDialogService.h']
michael@0 15
michael@0 16 if toolkit == 'windows':
michael@0 17 DIRS += ['windows']
michael@0 18
michael@0 19 XPIDL_SOURCES += [
michael@0 20 'nsIJumpListBuilder.idl',
michael@0 21 'nsIJumpListItem.idl',
michael@0 22 'nsIPrintSettingsWin.idl',
michael@0 23 'nsITaskbarOverlayIconController.idl',
michael@0 24 'nsITaskbarPreview.idl',
michael@0 25 'nsITaskbarPreviewButton.idl',
michael@0 26 'nsITaskbarPreviewController.idl',
michael@0 27 'nsITaskbarProgress.idl',
michael@0 28 'nsITaskbarTabPreview.idl',
michael@0 29 'nsITaskbarWindowPreview.idl',
michael@0 30 'nsIWinTaskbar.idl',
michael@0 31 ]
michael@0 32 elif toolkit == 'cocoa':
michael@0 33 XPIDL_SOURCES += [
michael@0 34 'nsIMacDockSupport.idl',
michael@0 35 'nsIMacWebAppUtils.idl',
michael@0 36 'nsIStandaloneNativeMenu.idl',
michael@0 37 'nsITaskbarProgress.idl',
michael@0 38 ]
michael@0 39 EXPORTS += [
michael@0 40 'nsINativeMenuService.h',
michael@0 41 'nsIPrintDialogService.h',
michael@0 42 ]
michael@0 43
michael@0 44 TEST_TOOL_DIRS += ['tests']
michael@0 45
michael@0 46 # Don't build the DSO under the 'build' directory as windows does.
michael@0 47 #
michael@0 48 # The DSOs get built in the toolkit dir itself. Do this so that
michael@0 49 # multiple implementations of widget can be built on the same
michael@0 50 # source tree.
michael@0 51 #
michael@0 52 if CONFIG['MOZ_ENABLE_GTK']:
michael@0 53 DIRS += ['gtk']
michael@0 54
michael@0 55 if CONFIG['MOZ_X11']:
michael@0 56 DIRS += ['gtkxtbin']
michael@0 57
michael@0 58 XPIDL_SOURCES += [
michael@0 59 'nsIAppShell.idl',
michael@0 60 'nsIBaseWindow.idl',
michael@0 61 'nsIBidiKeyboard.idl',
michael@0 62 'nsIClipboard.idl',
michael@0 63 'nsIClipboardDragDropHookList.idl',
michael@0 64 'nsIClipboardDragDropHooks.idl',
michael@0 65 'nsIClipboardHelper.idl',
michael@0 66 'nsIClipboardOwner.idl',
michael@0 67 'nsIColorPicker.idl',
michael@0 68 'nsIDragService.idl',
michael@0 69 'nsIDragSession.idl',
michael@0 70 'nsIFilePicker.idl',
michael@0 71 'nsIFormatConverter.idl',
michael@0 72 'nsIGfxInfo.idl',
michael@0 73 'nsIGfxInfoDebug.idl',
michael@0 74 'nsIIdleService.idl',
michael@0 75 'nsIIdleServiceInternal.idl',
michael@0 76 'nsIIMEPicker.idl',
michael@0 77 'nsIPrintOptions.idl',
michael@0 78 'nsIPrintSession.idl',
michael@0 79 'nsIPrintSettings.idl',
michael@0 80 'nsIPrintSettingsService.idl',
michael@0 81 'nsIScreen.idl',
michael@0 82 'nsIScreenManager.idl',
michael@0 83 'nsISound.idl',
michael@0 84 'nsITransferable.idl',
michael@0 85 ]
michael@0 86
michael@0 87 if CONFIG['MOZ_METRO']:
michael@0 88 XPIDL_SOURCES += [
michael@0 89 'MetroUIUtils.idl',
michael@0 90 'nsIWinMetroUtils.idl',
michael@0 91 ]
michael@0 92
michael@0 93 XPIDL_MODULE = 'widget'
michael@0 94
michael@0 95 EXPORTS += [
michael@0 96 'InputData.h',
michael@0 97 'nsIDeviceContextSpec.h',
michael@0 98 'nsIPluginWidget.h',
michael@0 99 'nsIRollupListener.h',
michael@0 100 'nsIWidget.h',
michael@0 101 'nsIWidgetListener.h',
michael@0 102 'nsWidgetInitData.h',
michael@0 103 'nsWidgetsCID.h',
michael@0 104 ]
michael@0 105
michael@0 106 EXPORTS.mozilla += [
michael@0 107 'BasicEvents.h',
michael@0 108 'CommandList.h',
michael@0 109 'ContentEvents.h',
michael@0 110 'EventClassList.h',
michael@0 111 'EventForwards.h',
michael@0 112 'LookAndFeel.h',
michael@0 113 'MiscEvents.h',
michael@0 114 'MouseEvents.h',
michael@0 115 'TextEvents.h',
michael@0 116 'TextRange.h',
michael@0 117 'TouchEvents.h',
michael@0 118 'WidgetUtils.h',
michael@0 119 ]
michael@0 120
michael@0 121 if CONFIG['MOZ_INSTRUMENT_EVENT_LOOP']:
michael@0 122 EXPORTS.mozilla += [
michael@0 123 'WidgetTraceEvent.h',
michael@0 124 ]
michael@0 125
michael@0 126 EXPORTS.ipc = ['nsGUIEventIPC.h']
michael@0 127

mercurial