2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; 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',
|
|
|
|
'nsIPluginTagInfo.idl',
|
|
|
|
'nspluginroot.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-19 22:47:00 +04:00
|
|
|
MODULE = 'plugin'
|
|
|
|
|
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',
|
|
|
|
'nsPluginPlayPreviewInfo.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-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsJSNPRuntime.cpp',
|
|
|
|
'nsNPAPIPlugin.cpp',
|
|
|
|
'nsNPAPIPluginInstance.cpp',
|
|
|
|
'nsNPAPIPluginStreamListener.cpp',
|
|
|
|
'nsPluginHost.cpp',
|
|
|
|
'nsPluginInstanceOwner.cpp',
|
|
|
|
'nsPluginModule.cpp',
|
|
|
|
'nsPluginPlayPreviewInfo.cpp',
|
|
|
|
'nsPluginStreamListenerPeer.cpp',
|
|
|
|
'nsPluginTags.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'PluginPRLibrary.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
2013-10-25 03:23:05 +04:00
|
|
|
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'] == 'os2':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsPluginNativeWindowOS2.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'nsPluginsDirOS2.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2013-10-25 03:23:05 +04:00
|
|
|
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-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsPluginsDirUnix.cpp',
|
|
|
|
]
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk2':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsPluginNativeWindowGtk2.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsPluginNativeWindowQt.cpp',
|
|
|
|
]
|
|
|
|
else:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsPluginNativeWindow.cpp',
|
|
|
|
]
|
2013-08-22 10:55:59 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
|
|
|
|
# android_npapi.h extends the NPNVariable and NPPVariable enums
|
|
|
|
# using #defines, which results in Wswitch warnings in gcc-4.6.
|
|
|
|
# Therefore, enable FAIL_ON_WARNINGS only on non-Android platforms.
|
|
|
|
FAIL_ON_WARNINGS = True
|
2013-08-22 10:56:00 +04:00
|
|
|
|
|
|
|
LIBXUL_LIBRARY = True
|
|
|
|
|
2013-08-22 10:56:01 +04:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-08-15 17:02:09 +04:00
|
|
|
LIBRARY_NAME = 'gkplugin'
|
|
|
|
|
2013-10-03 11:11:13 +04:00
|
|
|
EXPORT_LIBRARY = True
|
|
|
|
|
2013-10-24 01:20:55 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/content/base/src',
|
|
|
|
'/dom/base',
|
2013-11-11 12:04:11 +04:00
|
|
|
'/gfx/skia/include/config',
|
|
|
|
'/gfx/skia/include/core',
|
2013-10-24 01:20:55 +04:00
|
|
|
'/layout/generic',
|
|
|
|
'/layout/xul/base/src',
|
2013-11-11 12:04:11 +04:00
|
|
|
'/widget/android',
|
|
|
|
'/widget/xpwidgets',
|
|
|
|
'/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
|
|
|
|
|