Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 if CONFIG['MOZ_METRO']:
8 DIRS += ['winrt']
10 TEST_DIRS += ['tests']
12 EXPORTS += [
13 'nsdefs.h',
14 'WindowHook.h',
15 'WinUtils.h',
16 ]
18 EXPORTS.mozilla.widget += [
19 'AudioSession.h',
20 ]
22 UNIFIED_SOURCES += [
23 'AudioSession.cpp',
24 'GfxInfo.cpp',
25 'IEnumFE.cpp',
26 'JumpListItem.cpp',
27 'KeyboardLayout.cpp',
28 'nsAppShell.cpp',
29 'nsClipboard.cpp',
30 'nsColorPicker.cpp',
31 'nsDataObj.cpp',
32 'nsDataObjCollection.cpp',
33 'nsDragService.cpp',
34 'nsIdleServiceWin.cpp',
35 'nsImageClipboard.cpp',
36 'nsLookAndFeel.cpp',
37 'nsNativeDragSource.cpp',
38 'nsNativeDragTarget.cpp',
39 'nsNativeThemeWin.cpp',
40 'nsScreenManagerWin.cpp',
41 'nsScreenWin.cpp',
42 'nsSound.cpp',
43 'nsToolkit.cpp',
44 'nsUXThemeData.cpp',
45 'nsWindow.cpp',
46 'nsWindowBase.cpp',
47 'nsWindowDbg.cpp',
48 'nsWindowGfx.cpp',
49 'nsWinGesture.cpp',
50 'TaskbarPreview.cpp',
51 'TaskbarPreviewButton.cpp',
52 'TaskbarTabPreview.cpp',
53 'TaskbarWindowPreview.cpp',
54 'WidgetTraceEvent.cpp',
55 'WindowHook.cpp',
56 'WinIMEHandler.cpp',
57 'WinTaskbar.cpp',
58 ]
60 # The following files cannot be built in unified mode because they force NSPR logging.
61 SOURCES += [
62 'nsIMM32Handler.cpp',
63 'WinMouseScrollHandler.cpp',
64 'WinUtils.cpp',
65 ]
67 # The following files cannot be built in unified mode because of name clashes.
68 SOURCES += [
69 'JumpListBuilder.cpp',
70 'nsBidiKeyboard.cpp',
71 'nsFilePicker.cpp',
72 'nsWidgetFactory.cpp',
73 ]
75 if CONFIG['MOZ_CRASHREPORTER']:
76 UNIFIED_SOURCES += [
77 'LSPAnnotator.cpp',
78 ]
80 if CONFIG['NS_PRINTING']:
81 UNIFIED_SOURCES += [
82 'nsDeviceContextSpecWin.cpp',
83 'nsPrintOptionsWin.cpp',
84 'nsPrintSettingsWin.cpp',
85 ]
87 if CONFIG['NS_ENABLE_TSF']:
88 SOURCES += [
89 'nsTextStore.cpp',
90 ]
92 MSVC_ENABLE_PGO = True
94 LIBRARY_NAME = 'widget_windows'
96 include('/ipc/chromium/chromium-config.mozbuild')
98 FINAL_LIBRARY = 'xul'
100 LOCAL_INCLUDES += [
101 '../shared',
102 '../xpwidgets',
103 '/layout/generic',
104 '/layout/xul',
105 '/toolkit/xre',
106 '/xpcom/base',
107 ]
109 DEFINES['MOZ_UNICODE'] = True
111 for var in ('MOZ_ENABLE_D3D9_LAYER', 'MOZ_ENABLE_D3D10_LAYER'):
112 if CONFIG[var]:
113 DEFINES[var] = True
115 RESFILE = 'widget.res'