michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: if CONFIG['MOZ_METRO']: michael@0: DIRS += ['winrt'] michael@0: michael@0: TEST_DIRS += ['tests'] michael@0: michael@0: EXPORTS += [ michael@0: 'nsdefs.h', michael@0: 'WindowHook.h', michael@0: 'WinUtils.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla.widget += [ michael@0: 'AudioSession.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'AudioSession.cpp', michael@0: 'GfxInfo.cpp', michael@0: 'IEnumFE.cpp', michael@0: 'JumpListItem.cpp', michael@0: 'KeyboardLayout.cpp', michael@0: 'nsAppShell.cpp', michael@0: 'nsClipboard.cpp', michael@0: 'nsColorPicker.cpp', michael@0: 'nsDataObj.cpp', michael@0: 'nsDataObjCollection.cpp', michael@0: 'nsDragService.cpp', michael@0: 'nsIdleServiceWin.cpp', michael@0: 'nsImageClipboard.cpp', michael@0: 'nsLookAndFeel.cpp', michael@0: 'nsNativeDragSource.cpp', michael@0: 'nsNativeDragTarget.cpp', michael@0: 'nsNativeThemeWin.cpp', michael@0: 'nsScreenManagerWin.cpp', michael@0: 'nsScreenWin.cpp', michael@0: 'nsSound.cpp', michael@0: 'nsToolkit.cpp', michael@0: 'nsUXThemeData.cpp', michael@0: 'nsWindow.cpp', michael@0: 'nsWindowBase.cpp', michael@0: 'nsWindowDbg.cpp', michael@0: 'nsWindowGfx.cpp', michael@0: 'nsWinGesture.cpp', michael@0: 'TaskbarPreview.cpp', michael@0: 'TaskbarPreviewButton.cpp', michael@0: 'TaskbarTabPreview.cpp', michael@0: 'TaskbarWindowPreview.cpp', michael@0: 'WidgetTraceEvent.cpp', michael@0: 'WindowHook.cpp', michael@0: 'WinIMEHandler.cpp', michael@0: 'WinTaskbar.cpp', michael@0: ] michael@0: michael@0: # The following files cannot be built in unified mode because they force NSPR logging. michael@0: SOURCES += [ michael@0: 'nsIMM32Handler.cpp', michael@0: 'WinMouseScrollHandler.cpp', michael@0: 'WinUtils.cpp', michael@0: ] michael@0: michael@0: # The following files cannot be built in unified mode because of name clashes. michael@0: SOURCES += [ michael@0: 'JumpListBuilder.cpp', michael@0: 'nsBidiKeyboard.cpp', michael@0: 'nsFilePicker.cpp', michael@0: 'nsWidgetFactory.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_CRASHREPORTER']: michael@0: UNIFIED_SOURCES += [ michael@0: 'LSPAnnotator.cpp', michael@0: ] michael@0: michael@0: if CONFIG['NS_PRINTING']: michael@0: UNIFIED_SOURCES += [ michael@0: 'nsDeviceContextSpecWin.cpp', michael@0: 'nsPrintOptionsWin.cpp', michael@0: 'nsPrintSettingsWin.cpp', michael@0: ] michael@0: michael@0: if CONFIG['NS_ENABLE_TSF']: michael@0: SOURCES += [ michael@0: 'nsTextStore.cpp', michael@0: ] michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: LIBRARY_NAME = 'widget_windows' michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'xul' michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../shared', michael@0: '../xpwidgets', michael@0: '/layout/generic', michael@0: '/layout/xul', michael@0: '/toolkit/xre', michael@0: '/xpcom/base', michael@0: ] michael@0: michael@0: DEFINES['MOZ_UNICODE'] = True michael@0: michael@0: for var in ('MOZ_ENABLE_D3D9_LAYER', 'MOZ_ENABLE_D3D10_LAYER'): michael@0: if CONFIG[var]: michael@0: DEFINES[var] = True michael@0: michael@0: RESFILE = 'widget.res'