Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | if CONFIG['MOZ_METRO']: |
michael@0 | 8 | DIRS += ['winrt'] |
michael@0 | 9 | |
michael@0 | 10 | TEST_DIRS += ['tests'] |
michael@0 | 11 | |
michael@0 | 12 | EXPORTS += [ |
michael@0 | 13 | 'nsdefs.h', |
michael@0 | 14 | 'WindowHook.h', |
michael@0 | 15 | 'WinUtils.h', |
michael@0 | 16 | ] |
michael@0 | 17 | |
michael@0 | 18 | EXPORTS.mozilla.widget += [ |
michael@0 | 19 | 'AudioSession.h', |
michael@0 | 20 | ] |
michael@0 | 21 | |
michael@0 | 22 | UNIFIED_SOURCES += [ |
michael@0 | 23 | 'AudioSession.cpp', |
michael@0 | 24 | 'GfxInfo.cpp', |
michael@0 | 25 | 'IEnumFE.cpp', |
michael@0 | 26 | 'JumpListItem.cpp', |
michael@0 | 27 | 'KeyboardLayout.cpp', |
michael@0 | 28 | 'nsAppShell.cpp', |
michael@0 | 29 | 'nsClipboard.cpp', |
michael@0 | 30 | 'nsColorPicker.cpp', |
michael@0 | 31 | 'nsDataObj.cpp', |
michael@0 | 32 | 'nsDataObjCollection.cpp', |
michael@0 | 33 | 'nsDragService.cpp', |
michael@0 | 34 | 'nsIdleServiceWin.cpp', |
michael@0 | 35 | 'nsImageClipboard.cpp', |
michael@0 | 36 | 'nsLookAndFeel.cpp', |
michael@0 | 37 | 'nsNativeDragSource.cpp', |
michael@0 | 38 | 'nsNativeDragTarget.cpp', |
michael@0 | 39 | 'nsNativeThemeWin.cpp', |
michael@0 | 40 | 'nsScreenManagerWin.cpp', |
michael@0 | 41 | 'nsScreenWin.cpp', |
michael@0 | 42 | 'nsSound.cpp', |
michael@0 | 43 | 'nsToolkit.cpp', |
michael@0 | 44 | 'nsUXThemeData.cpp', |
michael@0 | 45 | 'nsWindow.cpp', |
michael@0 | 46 | 'nsWindowBase.cpp', |
michael@0 | 47 | 'nsWindowDbg.cpp', |
michael@0 | 48 | 'nsWindowGfx.cpp', |
michael@0 | 49 | 'nsWinGesture.cpp', |
michael@0 | 50 | 'TaskbarPreview.cpp', |
michael@0 | 51 | 'TaskbarPreviewButton.cpp', |
michael@0 | 52 | 'TaskbarTabPreview.cpp', |
michael@0 | 53 | 'TaskbarWindowPreview.cpp', |
michael@0 | 54 | 'WidgetTraceEvent.cpp', |
michael@0 | 55 | 'WindowHook.cpp', |
michael@0 | 56 | 'WinIMEHandler.cpp', |
michael@0 | 57 | 'WinTaskbar.cpp', |
michael@0 | 58 | ] |
michael@0 | 59 | |
michael@0 | 60 | # The following files cannot be built in unified mode because they force NSPR logging. |
michael@0 | 61 | SOURCES += [ |
michael@0 | 62 | 'nsIMM32Handler.cpp', |
michael@0 | 63 | 'WinMouseScrollHandler.cpp', |
michael@0 | 64 | 'WinUtils.cpp', |
michael@0 | 65 | ] |
michael@0 | 66 | |
michael@0 | 67 | # The following files cannot be built in unified mode because of name clashes. |
michael@0 | 68 | SOURCES += [ |
michael@0 | 69 | 'JumpListBuilder.cpp', |
michael@0 | 70 | 'nsBidiKeyboard.cpp', |
michael@0 | 71 | 'nsFilePicker.cpp', |
michael@0 | 72 | 'nsWidgetFactory.cpp', |
michael@0 | 73 | ] |
michael@0 | 74 | |
michael@0 | 75 | if CONFIG['MOZ_CRASHREPORTER']: |
michael@0 | 76 | UNIFIED_SOURCES += [ |
michael@0 | 77 | 'LSPAnnotator.cpp', |
michael@0 | 78 | ] |
michael@0 | 79 | |
michael@0 | 80 | if CONFIG['NS_PRINTING']: |
michael@0 | 81 | UNIFIED_SOURCES += [ |
michael@0 | 82 | 'nsDeviceContextSpecWin.cpp', |
michael@0 | 83 | 'nsPrintOptionsWin.cpp', |
michael@0 | 84 | 'nsPrintSettingsWin.cpp', |
michael@0 | 85 | ] |
michael@0 | 86 | |
michael@0 | 87 | if CONFIG['NS_ENABLE_TSF']: |
michael@0 | 88 | SOURCES += [ |
michael@0 | 89 | 'nsTextStore.cpp', |
michael@0 | 90 | ] |
michael@0 | 91 | |
michael@0 | 92 | MSVC_ENABLE_PGO = True |
michael@0 | 93 | |
michael@0 | 94 | LIBRARY_NAME = 'widget_windows' |
michael@0 | 95 | |
michael@0 | 96 | include('/ipc/chromium/chromium-config.mozbuild') |
michael@0 | 97 | |
michael@0 | 98 | FINAL_LIBRARY = 'xul' |
michael@0 | 99 | |
michael@0 | 100 | LOCAL_INCLUDES += [ |
michael@0 | 101 | '../shared', |
michael@0 | 102 | '../xpwidgets', |
michael@0 | 103 | '/layout/generic', |
michael@0 | 104 | '/layout/xul', |
michael@0 | 105 | '/toolkit/xre', |
michael@0 | 106 | '/xpcom/base', |
michael@0 | 107 | ] |
michael@0 | 108 | |
michael@0 | 109 | DEFINES['MOZ_UNICODE'] = True |
michael@0 | 110 | |
michael@0 | 111 | for var in ('MOZ_ENABLE_D3D9_LAYER', 'MOZ_ENABLE_D3D10_LAYER'): |
michael@0 | 112 | if CONFIG[var]: |
michael@0 | 113 | DEFINES[var] = True |
michael@0 | 114 | |
michael@0 | 115 | RESFILE = 'widget.res' |