widget/qt/moz.build

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     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 GENERATED_SOURCES += [
     8     'moc_mozqwidget.cpp',
     9     'moc_nsAppShell.cpp',
    10 ]
    12 SOURCES += [
    13     'mozqwidget.cpp',
    14     'nsAppShell.cpp',
    15     'nsBidiKeyboard.cpp',
    16     'nsClipboard.cpp',
    17     'nsIdleServiceQt.cpp',
    18     'nsLookAndFeel.cpp',
    19     'nsQtKeyUtils.cpp',
    20     'nsScreenManagerQt.cpp',
    21     'nsScreenQt.cpp',
    22     'nsWidgetFactory.cpp',
    23     'nsWindow.cpp',
    24 ]
    27 if CONFIG['NS_PRINTING']:
    28     SOURCES += [
    29         'nsDeviceContextSpecQt.cpp',
    30         'nsPrintDialogQt.cpp',
    31         'nsPrintOptionsQt.cpp',
    32         'nsPrintSettingsQt.cpp',
    33     ]
    35 LIBRARY_NAME = 'widget_qt'
    37 include('/ipc/chromium/chromium-config.mozbuild')
    39 FINAL_LIBRARY = 'xul'
    41 LOCAL_INCLUDES += [
    42     '../shared',
    43     '/widget/xpwidgets',
    44 ]
    46 if CONFIG['MOZ_X11']:
    47     LOCAL_INCLUDES += [
    48         '../shared/x11',
    49     ]
    51 #DEFINES['DEBUG_WIDGETS'] = True
    53 if CONFIG['OS_ARCH'] == 'Linux':
    54     DEFINES['_BSD_SOURCE'] = True
    56 if CONFIG['OS_ARCH'] == 'SunOS' and not CONFIG['GNU_CC']:
    57     # When using Sun's WorkShop compiler, including
    58     # /wherever/workshop-5.0/SC5.0/include/CC/std/time.h
    59     # causes most of these compiles to fail with:
    60     # line 29: Error: Multiple declaration for std::tm.
    61     # So, this gets around the problem.
    62     DEFINES['_TIME_H'] = 1

mercurial