dom/plugins/base/moz.build

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     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_WIDGET_TOOLKIT'] == 'android':
     8     DIRS += ['android']
    10 XPIDL_SOURCES += [
    11     'nsIHTTPHeaderListener.idl',
    12     'nsIPluginDocument.idl',
    13     'nsIPluginHost.idl',
    14     'nsIPluginInputStream.idl',
    15     'nsIPluginInstanceOwner.idl',
    16     'nsIPluginTag.idl',
    17     'nspluginroot.idl',
    18 ]
    20 XPIDL_MODULE = 'plugin'
    22 EXPORTS += [
    23     'npapi.h',
    24     'npfunctions.h',
    25     'npruntime.h',
    26     'nptypes.h',
    27     'nsJSNPRuntime.h',
    28     'nsNPAPIPluginInstance.h',
    29     'nsPluginDirServiceProvider.h',
    30     'nsPluginHost.h',
    31     'nsPluginInstanceOwner.h',
    32     'nsPluginLogging.h',
    33     'nsPluginNativeWindow.h',
    34     'nsPluginPlayPreviewInfo.h',
    35     'nsPluginsCID.h',
    36     'nsPluginsDir.h',
    37     'nsPluginTags.h',
    38 ]
    40 EXPORTS.mozilla += [
    41     'PluginPRLibrary.h',
    42 ]
    44 UNIFIED_SOURCES += [
    45     'nsJSNPRuntime.cpp',
    46     'nsPluginInstanceOwner.cpp',
    47     'nsPluginModule.cpp',
    48     'nsPluginPlayPreviewInfo.cpp',
    49     'PluginPRLibrary.cpp',
    50 ]
    52 # These files cannot be built in unified mode because they force NSPR logging.
    53 SOURCES += [
    54     'nsNPAPIPlugin.cpp',
    55     'nsNPAPIPluginInstance.cpp',
    56     'nsNPAPIPluginStreamListener.cpp',
    57     'nsPluginHost.cpp',
    58     'nsPluginStreamListenerPeer.cpp',
    59     'nsPluginTags.cpp',
    60 ]
    62 if CONFIG['OS_ARCH'] == 'WINNT':
    63     UNIFIED_SOURCES += [
    64         'nsPluginDirServiceProvider.cpp',
    65         'nsPluginNativeWindowWin.cpp',
    66         'nsPluginsDirWin.cpp',
    67     ]
    68 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
    69     UNIFIED_SOURCES += [
    70         'nsPluginNativeWindow.cpp',
    71         'nsPluginsDirDarwin.cpp',
    72     ]
    73 else:
    74     UNIFIED_SOURCES += [
    75         'nsPluginsDirUnix.cpp',
    76     ]
    77     if CONFIG['MOZ_ENABLE_GTK']:
    78         # This file cannot be built in unified mode because of name clashes in X11 headers.
    79         SOURCES += [
    80             'nsPluginNativeWindowGtk.cpp',
    81         ]
    82     elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
    83         UNIFIED_SOURCES += [
    84             'nsPluginNativeWindowQt.cpp',
    85         ]
    86     else:
    87         UNIFIED_SOURCES += [
    88             'nsPluginNativeWindow.cpp',
    89         ]
    91 if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
    92     # android_npapi.h extends the NPNVariable and NPPVariable enums
    93     # using #defines, which results in Wswitch warnings in gcc-4.6.
    94     # Therefore, enable FAIL_ON_WARNINGS only on non-Android platforms.
    95     FAIL_ON_WARNINGS = True
    97 MSVC_ENABLE_PGO = True
    99 LOCAL_INCLUDES += [
   100     '/content/base/src',
   101     '/dom/base',
   102     '/gfx/skia/include/config',
   103     '/gfx/skia/include/core',
   104     '/layout/generic',
   105     '/layout/xul',
   106     '/netwerk/base/src',
   107     '/widget/android',
   108     '/widget/xpwidgets',
   109     '/xpcom/base',
   110 ]
   112 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
   113     LOCAL_INCLUDES += [
   114         '/dom/plugins/base/android',
   115     ]
   117 if CONFIG['OS_ARCH'] == 'WINNT':
   118     LOCAL_INCLUDES += [
   119         '/xpcom/base',
   120     ]
   122 include('/ipc/chromium/chromium-config.mozbuild')
   124 DEFINES['SK_BUILD_FOR_ANDROID_NDK'] = True
   126 FINAL_LIBRARY = 'xul'

mercurial