michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': michael@0: DIRS += ['android'] michael@0: michael@0: XPIDL_SOURCES += [ michael@0: 'nsIHTTPHeaderListener.idl', michael@0: 'nsIPluginDocument.idl', michael@0: 'nsIPluginHost.idl', michael@0: 'nsIPluginInputStream.idl', michael@0: 'nsIPluginInstanceOwner.idl', michael@0: 'nsIPluginTag.idl', michael@0: 'nspluginroot.idl', michael@0: ] michael@0: michael@0: XPIDL_MODULE = 'plugin' michael@0: michael@0: EXPORTS += [ michael@0: 'npapi.h', michael@0: 'npfunctions.h', michael@0: 'npruntime.h', michael@0: 'nptypes.h', michael@0: 'nsJSNPRuntime.h', michael@0: 'nsNPAPIPluginInstance.h', michael@0: 'nsPluginDirServiceProvider.h', michael@0: 'nsPluginHost.h', michael@0: 'nsPluginInstanceOwner.h', michael@0: 'nsPluginLogging.h', michael@0: 'nsPluginNativeWindow.h', michael@0: 'nsPluginPlayPreviewInfo.h', michael@0: 'nsPluginsCID.h', michael@0: 'nsPluginsDir.h', michael@0: 'nsPluginTags.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla += [ michael@0: 'PluginPRLibrary.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'nsJSNPRuntime.cpp', michael@0: 'nsPluginInstanceOwner.cpp', michael@0: 'nsPluginModule.cpp', michael@0: 'nsPluginPlayPreviewInfo.cpp', michael@0: 'PluginPRLibrary.cpp', michael@0: ] michael@0: michael@0: # These files cannot be built in unified mode because they force NSPR logging. michael@0: SOURCES += [ michael@0: 'nsNPAPIPlugin.cpp', michael@0: 'nsNPAPIPluginInstance.cpp', michael@0: 'nsNPAPIPluginStreamListener.cpp', michael@0: 'nsPluginHost.cpp', michael@0: 'nsPluginStreamListenerPeer.cpp', michael@0: 'nsPluginTags.cpp', michael@0: ] michael@0: michael@0: if CONFIG['OS_ARCH'] == 'WINNT': michael@0: UNIFIED_SOURCES += [ michael@0: 'nsPluginDirServiceProvider.cpp', michael@0: 'nsPluginNativeWindowWin.cpp', michael@0: 'nsPluginsDirWin.cpp', michael@0: ] michael@0: elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': michael@0: UNIFIED_SOURCES += [ michael@0: 'nsPluginNativeWindow.cpp', michael@0: 'nsPluginsDirDarwin.cpp', michael@0: ] michael@0: else: michael@0: UNIFIED_SOURCES += [ michael@0: 'nsPluginsDirUnix.cpp', michael@0: ] michael@0: if CONFIG['MOZ_ENABLE_GTK']: michael@0: # This file cannot be built in unified mode because of name clashes in X11 headers. michael@0: SOURCES += [ michael@0: 'nsPluginNativeWindowGtk.cpp', michael@0: ] michael@0: elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt': michael@0: UNIFIED_SOURCES += [ michael@0: 'nsPluginNativeWindowQt.cpp', michael@0: ] michael@0: else: michael@0: UNIFIED_SOURCES += [ michael@0: 'nsPluginNativeWindow.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android': michael@0: # android_npapi.h extends the NPNVariable and NPPVariable enums michael@0: # using #defines, which results in Wswitch warnings in gcc-4.6. michael@0: # Therefore, enable FAIL_ON_WARNINGS only on non-Android platforms. michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '/content/base/src', michael@0: '/dom/base', michael@0: '/gfx/skia/include/config', michael@0: '/gfx/skia/include/core', michael@0: '/layout/generic', michael@0: '/layout/xul', michael@0: '/netwerk/base/src', michael@0: '/widget/android', michael@0: '/widget/xpwidgets', michael@0: '/xpcom/base', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': michael@0: LOCAL_INCLUDES += [ michael@0: '/dom/plugins/base/android', michael@0: ] michael@0: michael@0: if CONFIG['OS_ARCH'] == 'WINNT': michael@0: LOCAL_INCLUDES += [ michael@0: '/xpcom/base', michael@0: ] michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: DEFINES['SK_BUILD_FOR_ANDROID_NDK'] = True michael@0: michael@0: FINAL_LIBRARY = 'xul'