widget/xpwidgets/moz.build

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

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 EXPORTS += [
michael@0 8 'ContentHelper.h',
michael@0 9 'GfxDriverInfo.h',
michael@0 10 'GfxInfoBase.h',
michael@0 11 'GfxInfoCollector.h',
michael@0 12 ]
michael@0 13
michael@0 14 UNIFIED_SOURCES += [
michael@0 15 'ContentHelper.cpp',
michael@0 16 'GfxDriverInfo.cpp',
michael@0 17 'GfxInfoBase.cpp',
michael@0 18 'GfxInfoCollector.cpp',
michael@0 19 'GfxInfoWebGL.cpp',
michael@0 20 'InputData.cpp',
michael@0 21 'nsBaseAppShell.cpp',
michael@0 22 'nsBaseDragService.cpp',
michael@0 23 'nsBaseScreen.cpp',
michael@0 24 'nsClipboardHelper.cpp',
michael@0 25 'nsClipboardPrivacyHandler.cpp',
michael@0 26 'nsClipboardProxy.cpp',
michael@0 27 'nsColorPickerProxy.cpp',
michael@0 28 'nsContentProcessWidgetFactory.cpp',
michael@0 29 'nsFilePickerProxy.cpp',
michael@0 30 'nsHTMLFormatConverter.cpp',
michael@0 31 'nsIdleService.cpp',
michael@0 32 'nsIWidgetListener.cpp',
michael@0 33 'nsPrimitiveHelpers.cpp',
michael@0 34 'nsPrintOptionsImpl.cpp',
michael@0 35 'nsPrintSession.cpp',
michael@0 36 'nsPrintSettingsImpl.cpp',
michael@0 37 'nsTransferable.cpp',
michael@0 38 'nsXPLookAndFeel.cpp',
michael@0 39 'PuppetWidget.cpp',
michael@0 40 'WidgetUtils.cpp',
michael@0 41 ]
michael@0 42
michael@0 43 # nsBaseWidget.cpp needs to be built separately because of name clashes in the OS X headers
michael@0 44 SOURCES += [
michael@0 45 'nsBaseWidget.cpp',
michael@0 46 ]
michael@0 47
michael@0 48 if CONFIG['MOZ_X11']:
michael@0 49 UNIFIED_SOURCES += [
michael@0 50 'GfxInfoX11.cpp'
michael@0 51 ]
michael@0 52
michael@0 53 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('cocoa', 'windows'):
michael@0 54 UNIFIED_SOURCES += [
michael@0 55 'nsBaseClipboard.cpp',
michael@0 56 ]
michael@0 57
michael@0 58 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3', 'cocoa', 'windows',
michael@0 59 'android', 'gonk'):
michael@0 60 UNIFIED_SOURCES += [
michael@0 61 'nsBaseFilePicker.cpp',
michael@0 62 ]
michael@0 63
michael@0 64 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3', 'windows', 'cocoa'):
michael@0 65 UNIFIED_SOURCES += [
michael@0 66 'nsNativeTheme.cpp',
michael@0 67 ]
michael@0 68
michael@0 69 if not CONFIG['MOZ_B2G']:
michael@0 70 DEFINES['MOZ_CROSS_PROCESS_IME'] = True
michael@0 71
michael@0 72 MSVC_ENABLE_PGO = True
michael@0 73
michael@0 74 LIBRARY_NAME = 'xpwidgets_s'
michael@0 75
michael@0 76 include('/ipc/chromium/chromium-config.mozbuild')
michael@0 77
michael@0 78 LOCAL_INCLUDES += [
michael@0 79 '../shared',
michael@0 80 '/layout/base',
michael@0 81 '/layout/forms',
michael@0 82 '/layout/generic',
michael@0 83 '/layout/xul',
michael@0 84 '/view/src',
michael@0 85 ]
michael@0 86
michael@0 87 widget_dir = CONFIG['MOZ_WIDGET_TOOLKIT']
michael@0 88 if widget_dir in ('gtk3', 'gtk2'):
michael@0 89 # gtk3 shares includes with gtk2
michael@0 90 widget_dir = 'gtk'
michael@0 91
michael@0 92 LOCAL_INCLUDES += [
michael@0 93 '../%s' % widget_dir,
michael@0 94 ]
michael@0 95 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
michael@0 96 FINAL_LIBRARY = 'widget_mac'
michael@0 97 elif CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gonk', 'android', 'qt', 'gtk2', 'gtk3'):
michael@0 98 FINAL_LIBRARY = 'widget_%s' % CONFIG['MOZ_WIDGET_TOOLKIT']
michael@0 99
michael@0 100 if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
michael@0 101 DEFINES['MOZ_ENABLE_D3D10_LAYER'] = True

mercurial