widget/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/widget/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,127 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +DIRS += ['shared', 'xpwidgets']
    1.11 +
    1.12 +toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
    1.13 +
    1.14 +if toolkit in ('cocoa', 'qt', 'android', 'gonk'):
    1.15 +    DIRS += [toolkit]
    1.16 +if toolkit in ('qt', 'android', 'gonk', 'gtk2', 'gtk3'):
    1.17 +    EXPORTS += ['nsIPrintDialogService.h']
    1.18 +
    1.19 +if toolkit == 'windows':
    1.20 +    DIRS += ['windows']
    1.21 +
    1.22 +    XPIDL_SOURCES += [
    1.23 +        'nsIJumpListBuilder.idl',
    1.24 +        'nsIJumpListItem.idl',
    1.25 +        'nsIPrintSettingsWin.idl',
    1.26 +        'nsITaskbarOverlayIconController.idl',
    1.27 +        'nsITaskbarPreview.idl',
    1.28 +        'nsITaskbarPreviewButton.idl',
    1.29 +        'nsITaskbarPreviewController.idl',
    1.30 +        'nsITaskbarProgress.idl',
    1.31 +        'nsITaskbarTabPreview.idl',
    1.32 +        'nsITaskbarWindowPreview.idl',
    1.33 +        'nsIWinTaskbar.idl',
    1.34 +    ]
    1.35 +elif toolkit == 'cocoa':
    1.36 +    XPIDL_SOURCES += [
    1.37 +        'nsIMacDockSupport.idl',
    1.38 +        'nsIMacWebAppUtils.idl',
    1.39 +        'nsIStandaloneNativeMenu.idl',
    1.40 +        'nsITaskbarProgress.idl',
    1.41 +    ]
    1.42 +    EXPORTS += [
    1.43 +        'nsINativeMenuService.h',
    1.44 +        'nsIPrintDialogService.h',
    1.45 +    ]
    1.46 +
    1.47 +TEST_TOOL_DIRS += ['tests']
    1.48 +
    1.49 +# Don't build the DSO under the 'build' directory as windows does.
    1.50 +#
    1.51 +# The DSOs get built in the toolkit dir itself.  Do this so that
    1.52 +# multiple implementations of widget can be built on the same
    1.53 +# source tree.
    1.54 +#
    1.55 +if CONFIG['MOZ_ENABLE_GTK']:
    1.56 +    DIRS += ['gtk']
    1.57 +
    1.58 +    if CONFIG['MOZ_X11']:
    1.59 +        DIRS += ['gtkxtbin']
    1.60 +
    1.61 +XPIDL_SOURCES += [
    1.62 +    'nsIAppShell.idl',
    1.63 +    'nsIBaseWindow.idl',
    1.64 +    'nsIBidiKeyboard.idl',
    1.65 +    'nsIClipboard.idl',
    1.66 +    'nsIClipboardDragDropHookList.idl',
    1.67 +    'nsIClipboardDragDropHooks.idl',
    1.68 +    'nsIClipboardHelper.idl',
    1.69 +    'nsIClipboardOwner.idl',
    1.70 +    'nsIColorPicker.idl',
    1.71 +    'nsIDragService.idl',
    1.72 +    'nsIDragSession.idl',
    1.73 +    'nsIFilePicker.idl',
    1.74 +    'nsIFormatConverter.idl',
    1.75 +    'nsIGfxInfo.idl',
    1.76 +    'nsIGfxInfoDebug.idl',
    1.77 +    'nsIIdleService.idl',
    1.78 +    'nsIIdleServiceInternal.idl',
    1.79 +    'nsIIMEPicker.idl',
    1.80 +    'nsIPrintOptions.idl',
    1.81 +    'nsIPrintSession.idl',
    1.82 +    'nsIPrintSettings.idl',
    1.83 +    'nsIPrintSettingsService.idl',
    1.84 +    'nsIScreen.idl',
    1.85 +    'nsIScreenManager.idl',
    1.86 +    'nsISound.idl',
    1.87 +    'nsITransferable.idl',
    1.88 +]
    1.89 +
    1.90 +if CONFIG['MOZ_METRO']:
    1.91 +    XPIDL_SOURCES += [
    1.92 +        'MetroUIUtils.idl',
    1.93 +        'nsIWinMetroUtils.idl',
    1.94 +    ]
    1.95 +
    1.96 +XPIDL_MODULE = 'widget'
    1.97 +
    1.98 +EXPORTS += [
    1.99 +    'InputData.h',
   1.100 +    'nsIDeviceContextSpec.h',
   1.101 +    'nsIPluginWidget.h',
   1.102 +    'nsIRollupListener.h',
   1.103 +    'nsIWidget.h',
   1.104 +    'nsIWidgetListener.h',
   1.105 +    'nsWidgetInitData.h',
   1.106 +    'nsWidgetsCID.h',
   1.107 +]
   1.108 +
   1.109 +EXPORTS.mozilla += [
   1.110 +    'BasicEvents.h',
   1.111 +    'CommandList.h',
   1.112 +    'ContentEvents.h',
   1.113 +    'EventClassList.h',
   1.114 +    'EventForwards.h',
   1.115 +    'LookAndFeel.h',
   1.116 +    'MiscEvents.h',
   1.117 +    'MouseEvents.h',
   1.118 +    'TextEvents.h',
   1.119 +    'TextRange.h',
   1.120 +    'TouchEvents.h',
   1.121 +    'WidgetUtils.h',
   1.122 +]
   1.123 +
   1.124 +if CONFIG['MOZ_INSTRUMENT_EVENT_LOOP']:
   1.125 +    EXPORTS.mozilla += [
   1.126 +        'WidgetTraceEvent.h',
   1.127 +    ]
   1.128 +
   1.129 +EXPORTS.ipc = ['nsGUIEventIPC.h']
   1.130 +

mercurial