dom/plugins/base/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/plugins/base/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,126 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
    1.11 +    DIRS += ['android']
    1.12 +
    1.13 +XPIDL_SOURCES += [
    1.14 +    'nsIHTTPHeaderListener.idl',
    1.15 +    'nsIPluginDocument.idl',
    1.16 +    'nsIPluginHost.idl',
    1.17 +    'nsIPluginInputStream.idl',
    1.18 +    'nsIPluginInstanceOwner.idl',
    1.19 +    'nsIPluginTag.idl',
    1.20 +    'nspluginroot.idl',
    1.21 +]
    1.22 +
    1.23 +XPIDL_MODULE = 'plugin'
    1.24 +
    1.25 +EXPORTS += [
    1.26 +    'npapi.h',
    1.27 +    'npfunctions.h',
    1.28 +    'npruntime.h',
    1.29 +    'nptypes.h',
    1.30 +    'nsJSNPRuntime.h',
    1.31 +    'nsNPAPIPluginInstance.h',
    1.32 +    'nsPluginDirServiceProvider.h',
    1.33 +    'nsPluginHost.h',
    1.34 +    'nsPluginInstanceOwner.h',
    1.35 +    'nsPluginLogging.h',
    1.36 +    'nsPluginNativeWindow.h',
    1.37 +    'nsPluginPlayPreviewInfo.h',
    1.38 +    'nsPluginsCID.h',
    1.39 +    'nsPluginsDir.h',
    1.40 +    'nsPluginTags.h',
    1.41 +]
    1.42 +
    1.43 +EXPORTS.mozilla += [
    1.44 +    'PluginPRLibrary.h',
    1.45 +]
    1.46 +
    1.47 +UNIFIED_SOURCES += [
    1.48 +    'nsJSNPRuntime.cpp',
    1.49 +    'nsPluginInstanceOwner.cpp',
    1.50 +    'nsPluginModule.cpp',
    1.51 +    'nsPluginPlayPreviewInfo.cpp',
    1.52 +    'PluginPRLibrary.cpp',
    1.53 +]
    1.54 +
    1.55 +# These files cannot be built in unified mode because they force NSPR logging.
    1.56 +SOURCES += [
    1.57 +    'nsNPAPIPlugin.cpp',
    1.58 +    'nsNPAPIPluginInstance.cpp',
    1.59 +    'nsNPAPIPluginStreamListener.cpp',
    1.60 +    'nsPluginHost.cpp',
    1.61 +    'nsPluginStreamListenerPeer.cpp',
    1.62 +    'nsPluginTags.cpp',
    1.63 +]
    1.64 +
    1.65 +if CONFIG['OS_ARCH'] == 'WINNT':
    1.66 +    UNIFIED_SOURCES += [
    1.67 +        'nsPluginDirServiceProvider.cpp',
    1.68 +        'nsPluginNativeWindowWin.cpp',
    1.69 +        'nsPluginsDirWin.cpp',
    1.70 +    ]
    1.71 +elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
    1.72 +    UNIFIED_SOURCES += [
    1.73 +        'nsPluginNativeWindow.cpp',
    1.74 +        'nsPluginsDirDarwin.cpp',
    1.75 +    ]
    1.76 +else:
    1.77 +    UNIFIED_SOURCES += [
    1.78 +        'nsPluginsDirUnix.cpp',
    1.79 +    ]
    1.80 +    if CONFIG['MOZ_ENABLE_GTK']:
    1.81 +        # This file cannot be built in unified mode because of name clashes in X11 headers.
    1.82 +        SOURCES += [
    1.83 +            'nsPluginNativeWindowGtk.cpp',
    1.84 +        ]
    1.85 +    elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
    1.86 +        UNIFIED_SOURCES += [
    1.87 +            'nsPluginNativeWindowQt.cpp',
    1.88 +        ]
    1.89 +    else:
    1.90 +        UNIFIED_SOURCES += [
    1.91 +            'nsPluginNativeWindow.cpp',
    1.92 +        ]
    1.93 +
    1.94 +if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
    1.95 +    # android_npapi.h extends the NPNVariable and NPPVariable enums
    1.96 +    # using #defines, which results in Wswitch warnings in gcc-4.6.
    1.97 +    # Therefore, enable FAIL_ON_WARNINGS only on non-Android platforms.
    1.98 +    FAIL_ON_WARNINGS = True
    1.99 +
   1.100 +MSVC_ENABLE_PGO = True
   1.101 +
   1.102 +LOCAL_INCLUDES += [
   1.103 +    '/content/base/src',
   1.104 +    '/dom/base',
   1.105 +    '/gfx/skia/include/config',
   1.106 +    '/gfx/skia/include/core',
   1.107 +    '/layout/generic',
   1.108 +    '/layout/xul',
   1.109 +    '/netwerk/base/src',
   1.110 +    '/widget/android',
   1.111 +    '/widget/xpwidgets',
   1.112 +    '/xpcom/base',
   1.113 +]
   1.114 +
   1.115 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
   1.116 +    LOCAL_INCLUDES += [
   1.117 +        '/dom/plugins/base/android',
   1.118 +    ]
   1.119 +
   1.120 +if CONFIG['OS_ARCH'] == 'WINNT':
   1.121 +    LOCAL_INCLUDES += [
   1.122 +        '/xpcom/base',
   1.123 +    ]
   1.124 +
   1.125 +include('/ipc/chromium/chromium-config.mozbuild')
   1.126 +
   1.127 +DEFINES['SK_BUILD_FOR_ANDROID_NDK'] = True
   1.128 +
   1.129 +FINAL_LIBRARY = 'xul'

mercurial