dom/plugins/base/moz.build

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial