2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:20 +00:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
DIRS += ['interpose']
|
2013-03-19 18:47:00 +00:00
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'PluginLibrary.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.plugins += [
|
|
|
|
'AStream.h',
|
|
|
|
'BrowserStreamChild.h',
|
|
|
|
'BrowserStreamParent.h',
|
|
|
|
'ChildAsyncCall.h',
|
|
|
|
'ChildTimer.h',
|
|
|
|
'NPEventAndroid.h',
|
|
|
|
'NPEventOSX.h',
|
|
|
|
'NPEventUnix.h',
|
|
|
|
'NPEventWindows.h',
|
2014-12-29 23:14:38 +00:00
|
|
|
'PluginAsyncSurrogate.h',
|
2014-10-29 15:05:36 +00:00
|
|
|
'PluginBridge.h',
|
2014-12-29 23:14:38 +00:00
|
|
|
'PluginDataResolver.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'PluginInstanceChild.h',
|
|
|
|
'PluginInstanceParent.h',
|
|
|
|
'PluginMessageUtils.h',
|
|
|
|
'PluginModuleChild.h',
|
|
|
|
'PluginModuleParent.h',
|
|
|
|
'PluginProcessChild.h',
|
|
|
|
'PluginProcessParent.h',
|
2015-08-12 15:00:25 +00:00
|
|
|
'PluginQuirks.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'PluginScriptableObjectChild.h',
|
|
|
|
'PluginScriptableObjectParent.h',
|
|
|
|
'PluginScriptableObjectUtils-inl.h',
|
|
|
|
'PluginScriptableObjectUtils.h',
|
|
|
|
'PluginStreamChild.h',
|
|
|
|
'PluginStreamParent.h',
|
|
|
|
'PluginUtilsOSX.h',
|
2014-11-12 20:59:19 +00:00
|
|
|
'PluginWidgetChild.h',
|
|
|
|
'PluginWidgetParent.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'StreamNotifyChild.h',
|
|
|
|
'StreamNotifyParent.h',
|
2015-03-06 19:31:17 +00:00
|
|
|
'TaskFactory.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
EXPORTS.mozilla.plugins += [
|
|
|
|
'PluginSurfaceParent.h',
|
|
|
|
]
|
2014-10-08 20:19:14 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'PluginHangUIParent.cpp',
|
2013-10-23 23:00:23 +00:00
|
|
|
'PluginSurfaceParent.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
2014-10-08 20:19:14 +00:00
|
|
|
SOURCES += [
|
|
|
|
'MiniShmParent.cpp', # Issues with CreateEvent
|
|
|
|
]
|
2013-11-11 08:04:11 +00:00
|
|
|
DEFINES['MOZ_HANGUI_PROCESS_NAME'] = '"plugin-hang-ui%s"' % CONFIG['BIN_SUFFIX']
|
|
|
|
LOCAL_INCLUDES += [
|
2014-10-23 17:16:45 +00:00
|
|
|
'/widget',
|
2013-11-11 08:04:11 +00:00
|
|
|
'hangui',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
EXPORTS.mozilla.plugins += [
|
|
|
|
'PluginInterposeOSX.h',
|
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_QT']:
|
2014-11-20 06:02:51 +00:00
|
|
|
SOURCES += [
|
2015-05-19 08:41:09 +00:00
|
|
|
'!moc_NestedLoopTimer.cpp',
|
2013-10-23 23:05:43 +00:00
|
|
|
'NestedLoopTimer.cpp',
|
2014-11-20 06:02:51 +00:00
|
|
|
'PluginHelperQt.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
|
2014-10-08 20:19:14 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'BrowserStreamChild.cpp',
|
|
|
|
'BrowserStreamParent.cpp',
|
|
|
|
'ChildAsyncCall.cpp',
|
|
|
|
'ChildTimer.cpp',
|
2014-12-29 23:14:38 +00:00
|
|
|
'PluginAsyncSurrogate.cpp',
|
2013-09-24 20:45:14 +00:00
|
|
|
'PluginBackgroundDestroyer.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'PluginInstanceParent.cpp',
|
|
|
|
'PluginMessageUtils.cpp',
|
|
|
|
'PluginModuleParent.cpp',
|
|
|
|
'PluginProcessChild.cpp',
|
|
|
|
'PluginProcessParent.cpp',
|
2015-08-12 15:00:25 +00:00
|
|
|
'PluginQuirks.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'PluginScriptableObjectChild.cpp',
|
|
|
|
'PluginScriptableObjectParent.cpp',
|
|
|
|
'PluginStreamChild.cpp',
|
|
|
|
'PluginStreamParent.cpp',
|
|
|
|
]
|
|
|
|
|
2014-10-08 20:19:14 +00:00
|
|
|
SOURCES += [
|
|
|
|
'PluginInstanceChild.cpp', # 'PluginThreadCallback' : ambiguous symbol
|
|
|
|
'PluginModuleChild.cpp', # Redefinition of mozilla::WindowsDllInterceptor sUser32Intercept
|
2014-11-12 20:59:19 +00:00
|
|
|
'PluginWidgetChild.cpp',
|
|
|
|
'PluginWidgetParent.cpp',
|
2014-10-08 20:19:14 +00:00
|
|
|
]
|
|
|
|
|
2013-07-01 16:32:40 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2014-10-08 20:19:14 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-07-01 16:32:40 +00:00
|
|
|
'PluginInterposeOSX.mm',
|
|
|
|
'PluginUtilsOSX.mm',
|
|
|
|
]
|
2013-07-01 13:56:28 +00:00
|
|
|
|
2015-12-02 19:31:17 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'D3D11SurfaceHolder.cpp',
|
|
|
|
]
|
|
|
|
|
2013-07-01 13:56:28 +00:00
|
|
|
IPDL_SOURCES += [
|
|
|
|
'PBrowserStream.ipdl',
|
2014-10-20 16:47:25 +00:00
|
|
|
'PluginTypes.ipdlh',
|
2013-07-01 13:56:28 +00:00
|
|
|
'PPluginBackgroundDestroyer.ipdl',
|
|
|
|
'PPluginInstance.ipdl',
|
|
|
|
'PPluginModule.ipdl',
|
|
|
|
'PPluginScriptableObject.ipdl',
|
|
|
|
'PPluginStream.ipdl',
|
|
|
|
'PPluginSurface.ipdl',
|
|
|
|
'PStreamNotify.ipdl',
|
|
|
|
]
|
2013-08-22 06:55:59 +00:00
|
|
|
|
2013-10-02 17:17:55 +00:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-19 02:47:14 +00:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-11 08:04:11 +00:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../base',
|
|
|
|
'/xpcom/base/',
|
|
|
|
]
|
|
|
|
|
2015-04-01 08:40:35 +00:00
|
|
|
if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/security/sandbox/chromium',
|
|
|
|
'/security/sandbox/chromium-shim',
|
|
|
|
]
|
|
|
|
|
2013-11-11 08:04:11 +00:00
|
|
|
DEFINES['FORCE_PR_LOG'] = True
|
|
|
|
|
2014-07-24 15:55:33 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gtk3':
|
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|
|
|
|
else:
|
|
|
|
# Force build against gtk+2 for struct offsets and such.
|
|
|
|
CXXFLAGS += CONFIG['MOZ_GTK2_CFLAGS']
|
|
|
|
|
|
|
|
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
2016-03-14 22:21:09 +00:00
|
|
|
|
2016-05-11 07:00:01 +00:00
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|
|
|
|
|
2016-03-14 22:21:09 +00:00
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
# This is intended as a temporary hack to support building with VS2015.
|
|
|
|
# conversion from 'X' to 'Y' requires a narrowing conversion
|
|
|
|
CXXFLAGS += ['-wd4838']
|
2016-03-24 05:26:04 +00:00
|
|
|
|
|
|
|
# 'type cast': conversion from 'unsigned int' to 'HIMC' of greater size
|
|
|
|
CXXFLAGS += ['-wd4312']
|