2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:20 +04: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'] == 'android':
|
|
|
|
DIRS += ['android']
|
|
|
|
|
2013-03-12 21:17:46 +04:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIHTTPHeaderListener.idl',
|
|
|
|
'nsIPluginDocument.idl',
|
|
|
|
'nsIPluginHost.idl',
|
|
|
|
'nsIPluginInputStream.idl',
|
|
|
|
'nsIPluginInstanceOwner.idl',
|
|
|
|
'nsIPluginTag.idl',
|
|
|
|
'nspluginroot.idl',
|
|
|
|
]
|
|
|
|
|
2013-11-19 06:47:43 +04:00
|
|
|
XPIDL_MODULE = 'plugin'
|
2013-03-19 22:47:00 +04:00
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'npapi.h',
|
|
|
|
'npfunctions.h',
|
|
|
|
'npruntime.h',
|
|
|
|
'nptypes.h',
|
|
|
|
'nsJSNPRuntime.h',
|
|
|
|
'nsNPAPIPluginInstance.h',
|
|
|
|
'nsPluginDirServiceProvider.h',
|
|
|
|
'nsPluginHost.h',
|
|
|
|
'nsPluginInstanceOwner.h',
|
|
|
|
'nsPluginLogging.h',
|
|
|
|
'nsPluginNativeWindow.h',
|
|
|
|
'nsPluginsCID.h',
|
|
|
|
'nsPluginsDir.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'nsPluginTags.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'PluginPRLibrary.h',
|
|
|
|
]
|
|
|
|
|
2013-11-26 20:38:52 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-11-26 21:30:55 +04:00
|
|
|
'nsJSNPRuntime.cpp',
|
2014-10-09 00:19:14 +04:00
|
|
|
'nsNPAPIPluginInstance.cpp',
|
|
|
|
'nsNPAPIPluginStreamListener.cpp',
|
2013-11-26 20:38:52 +04:00
|
|
|
'nsPluginInstanceOwner.cpp',
|
|
|
|
'nsPluginModule.cpp',
|
2014-10-09 00:19:14 +04:00
|
|
|
'nsPluginStreamListenerPeer.cpp',
|
|
|
|
'nsPluginTags.cpp',
|
2013-11-26 20:38:52 +04:00
|
|
|
'PluginPRLibrary.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
SOURCES += [
|
2014-10-09 00:19:14 +04:00
|
|
|
'nsNPAPIPlugin.cpp', # Conflict with X11 headers
|
|
|
|
'nsPluginHost.cpp', # Conflict with NS_NPAPIPLUGIN_CALLBACK
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
2013-11-26 20:38:52 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsPluginDirServiceProvider.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'nsPluginNativeWindowWin.cpp',
|
|
|
|
'nsPluginsDirWin.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2013-11-26 20:38:52 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsPluginNativeWindow.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'nsPluginsDirDarwin.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
else:
|
2013-11-26 20:38:52 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2017-02-09 19:53:50 +03:00
|
|
|
'nsPluginNativeWindow.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsPluginsDirUnix.cpp',
|
|
|
|
]
|
2013-08-22 10:55:59 +04:00
|
|
|
|
2013-10-24 01:20:55 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/dom/base',
|
2014-12-11 17:44:07 +03:00
|
|
|
'/dom/plugins/ipc',
|
2013-10-24 01:20:55 +04:00
|
|
|
'/layout/generic',
|
2013-12-04 05:06:16 +04:00
|
|
|
'/layout/xul',
|
2015-01-21 23:13:00 +03:00
|
|
|
'/netwerk/base',
|
2014-10-23 21:16:45 +04:00
|
|
|
'/widget',
|
2013-11-11 12:04:11 +04:00
|
|
|
'/widget/android',
|
2014-12-11 17:44:07 +03:00
|
|
|
'/widget/cocoa',
|
2013-11-11 12:04:11 +04:00
|
|
|
'/xpcom/base',
|
2013-10-24 01:20:55 +04:00
|
|
|
]
|
2013-10-02 21:17:55 +04:00
|
|
|
|
2013-11-11 12:04:11 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/dom/plugins/base/android',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/xpcom/base',
|
|
|
|
]
|
|
|
|
|
2013-10-24 01:20:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
2013-11-11 12:04:11 +04:00
|
|
|
|
|
|
|
DEFINES['SK_BUILD_FOR_ANDROID_NDK'] = True
|
|
|
|
|
2013-11-19 06:47:14 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2014-07-24 19:55:33 +04:00
|
|
|
|
|
|
|
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|
2016-05-11 10:00:01 +03:00
|
|
|
|
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|