1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/windows/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,115 @@ 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 +if CONFIG['MOZ_METRO']: 1.11 + DIRS += ['winrt'] 1.12 + 1.13 +TEST_DIRS += ['tests'] 1.14 + 1.15 +EXPORTS += [ 1.16 + 'nsdefs.h', 1.17 + 'WindowHook.h', 1.18 + 'WinUtils.h', 1.19 +] 1.20 + 1.21 +EXPORTS.mozilla.widget += [ 1.22 + 'AudioSession.h', 1.23 +] 1.24 + 1.25 +UNIFIED_SOURCES += [ 1.26 + 'AudioSession.cpp', 1.27 + 'GfxInfo.cpp', 1.28 + 'IEnumFE.cpp', 1.29 + 'JumpListItem.cpp', 1.30 + 'KeyboardLayout.cpp', 1.31 + 'nsAppShell.cpp', 1.32 + 'nsClipboard.cpp', 1.33 + 'nsColorPicker.cpp', 1.34 + 'nsDataObj.cpp', 1.35 + 'nsDataObjCollection.cpp', 1.36 + 'nsDragService.cpp', 1.37 + 'nsIdleServiceWin.cpp', 1.38 + 'nsImageClipboard.cpp', 1.39 + 'nsLookAndFeel.cpp', 1.40 + 'nsNativeDragSource.cpp', 1.41 + 'nsNativeDragTarget.cpp', 1.42 + 'nsNativeThemeWin.cpp', 1.43 + 'nsScreenManagerWin.cpp', 1.44 + 'nsScreenWin.cpp', 1.45 + 'nsSound.cpp', 1.46 + 'nsToolkit.cpp', 1.47 + 'nsUXThemeData.cpp', 1.48 + 'nsWindow.cpp', 1.49 + 'nsWindowBase.cpp', 1.50 + 'nsWindowDbg.cpp', 1.51 + 'nsWindowGfx.cpp', 1.52 + 'nsWinGesture.cpp', 1.53 + 'TaskbarPreview.cpp', 1.54 + 'TaskbarPreviewButton.cpp', 1.55 + 'TaskbarTabPreview.cpp', 1.56 + 'TaskbarWindowPreview.cpp', 1.57 + 'WidgetTraceEvent.cpp', 1.58 + 'WindowHook.cpp', 1.59 + 'WinIMEHandler.cpp', 1.60 + 'WinTaskbar.cpp', 1.61 +] 1.62 + 1.63 +# The following files cannot be built in unified mode because they force NSPR logging. 1.64 +SOURCES += [ 1.65 + 'nsIMM32Handler.cpp', 1.66 + 'WinMouseScrollHandler.cpp', 1.67 + 'WinUtils.cpp', 1.68 +] 1.69 + 1.70 +# The following files cannot be built in unified mode because of name clashes. 1.71 +SOURCES += [ 1.72 + 'JumpListBuilder.cpp', 1.73 + 'nsBidiKeyboard.cpp', 1.74 + 'nsFilePicker.cpp', 1.75 + 'nsWidgetFactory.cpp', 1.76 +] 1.77 + 1.78 +if CONFIG['MOZ_CRASHREPORTER']: 1.79 + UNIFIED_SOURCES += [ 1.80 + 'LSPAnnotator.cpp', 1.81 + ] 1.82 + 1.83 +if CONFIG['NS_PRINTING']: 1.84 + UNIFIED_SOURCES += [ 1.85 + 'nsDeviceContextSpecWin.cpp', 1.86 + 'nsPrintOptionsWin.cpp', 1.87 + 'nsPrintSettingsWin.cpp', 1.88 + ] 1.89 + 1.90 +if CONFIG['NS_ENABLE_TSF']: 1.91 + SOURCES += [ 1.92 + 'nsTextStore.cpp', 1.93 + ] 1.94 + 1.95 +MSVC_ENABLE_PGO = True 1.96 + 1.97 +LIBRARY_NAME = 'widget_windows' 1.98 + 1.99 +include('/ipc/chromium/chromium-config.mozbuild') 1.100 + 1.101 +FINAL_LIBRARY = 'xul' 1.102 + 1.103 +LOCAL_INCLUDES += [ 1.104 + '../shared', 1.105 + '../xpwidgets', 1.106 + '/layout/generic', 1.107 + '/layout/xul', 1.108 + '/toolkit/xre', 1.109 + '/xpcom/base', 1.110 +] 1.111 + 1.112 +DEFINES['MOZ_UNICODE'] = True 1.113 + 1.114 +for var in ('MOZ_ENABLE_D3D9_LAYER', 'MOZ_ENABLE_D3D10_LAYER'): 1.115 + if CONFIG[var]: 1.116 + DEFINES[var] = True 1.117 + 1.118 +RESFILE = 'widget.res'