2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 01:20:02 +04: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/.
|
|
|
|
|
|
|
|
if CONFIG['MOZ_METRO']:
|
|
|
|
DIRS += ['winrt']
|
|
|
|
|
|
|
|
TEST_DIRS += ['tests']
|
2013-03-19 22:47:00 +04:00
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'nsdefs.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'WindowHook.h',
|
|
|
|
'WinUtils.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.widget += [
|
|
|
|
'AudioSession.h',
|
|
|
|
]
|
|
|
|
|
2013-12-16 04:00:54 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'AudioSession.cpp',
|
|
|
|
'GfxInfo.cpp',
|
|
|
|
'IEnumFE.cpp',
|
|
|
|
'JumpListItem.cpp',
|
|
|
|
'KeyboardLayout.cpp',
|
|
|
|
'nsAppShell.cpp',
|
|
|
|
'nsClipboard.cpp',
|
2013-06-23 20:48:24 +04:00
|
|
|
'nsColorPicker.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsDataObj.cpp',
|
|
|
|
'nsDataObjCollection.cpp',
|
|
|
|
'nsDragService.cpp',
|
|
|
|
'nsIdleServiceWin.cpp',
|
|
|
|
'nsImageClipboard.cpp',
|
|
|
|
'nsLookAndFeel.cpp',
|
|
|
|
'nsNativeDragSource.cpp',
|
|
|
|
'nsNativeDragTarget.cpp',
|
|
|
|
'nsNativeThemeWin.cpp',
|
|
|
|
'nsScreenManagerWin.cpp',
|
|
|
|
'nsScreenWin.cpp',
|
|
|
|
'nsSound.cpp',
|
|
|
|
'nsToolkit.cpp',
|
|
|
|
'nsUXThemeData.cpp',
|
|
|
|
'nsWindow.cpp',
|
2013-10-22 17:27:35 +04:00
|
|
|
'nsWindowBase.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsWindowDbg.cpp',
|
|
|
|
'nsWindowGfx.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'nsWinGesture.cpp',
|
|
|
|
'TaskbarPreview.cpp',
|
|
|
|
'TaskbarPreviewButton.cpp',
|
|
|
|
'TaskbarTabPreview.cpp',
|
|
|
|
'TaskbarWindowPreview.cpp',
|
|
|
|
'WidgetTraceEvent.cpp',
|
|
|
|
'WindowHook.cpp',
|
|
|
|
'WinIMEHandler.cpp',
|
|
|
|
'WinTaskbar.cpp',
|
2013-12-16 04:00:54 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
# The following files cannot be built in unified mode because they force NSPR logging.
|
|
|
|
SOURCES += [
|
|
|
|
'nsIMM32Handler.cpp',
|
|
|
|
'WinMouseScrollHandler.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'WinUtils.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2013-12-16 04:00:54 +04:00
|
|
|
# The following files cannot be built in unified mode because of name clashes.
|
|
|
|
SOURCES += [
|
|
|
|
'JumpListBuilder.cpp',
|
|
|
|
'nsBidiKeyboard.cpp',
|
|
|
|
'nsFilePicker.cpp',
|
|
|
|
'nsWidgetFactory.cpp',
|
|
|
|
]
|
|
|
|
|
2013-04-24 01:54:15 +04:00
|
|
|
if CONFIG['MOZ_CRASHREPORTER']:
|
2013-12-16 04:00:54 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'LSPAnnotator.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['NS_PRINTING']:
|
2013-12-16 04:00:54 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-24 03:00:23 +04:00
|
|
|
'nsDeviceContextSpecWin.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsPrintOptionsWin.cpp',
|
|
|
|
'nsPrintSettingsWin.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['NS_ENABLE_TSF']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsTextStore.cpp',
|
|
|
|
]
|
2013-08-22 10:56:01 +04:00
|
|
|
|
2013-08-22 10:56:01 +04:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-08-15 17:02:09 +04:00
|
|
|
LIBRARY_NAME = 'widget_windows'
|
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-19 06:47:14 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-27 17:55:07 +04:00
|
|
|
|
2013-11-28 18:17:25 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../shared',
|
|
|
|
'../xpwidgets',
|
2014-01-10 07:03:25 +04:00
|
|
|
'/dom/events',
|
2013-11-28 18:17:25 +04:00
|
|
|
'/layout/generic',
|
2013-12-04 05:06:16 +04:00
|
|
|
'/layout/xul',
|
2013-11-28 18:17:25 +04:00
|
|
|
'/toolkit/xre',
|
|
|
|
'/xpcom/base',
|
|
|
|
]
|
|
|
|
|
2013-11-27 17:55:07 +04:00
|
|
|
DEFINES['MOZ_UNICODE'] = True
|
|
|
|
|
|
|
|
for var in ('MOZ_ENABLE_D3D9_LAYER', 'MOZ_ENABLE_D3D10_LAYER'):
|
|
|
|
if CONFIG[var]:
|
|
|
|
DEFINES[var] = True
|
2014-02-10 18:03:53 +04:00
|
|
|
|
|
|
|
RESFILE = 'widget.res'
|