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'] == 'cocoa': michael@0: DIRS += ['interpose'] michael@0: michael@0: EXPORTS.mozilla += [ michael@0: 'PluginLibrary.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla.plugins += [ michael@0: 'AStream.h', michael@0: 'BrowserStreamChild.h', michael@0: 'BrowserStreamParent.h', michael@0: 'ChildAsyncCall.h', michael@0: 'ChildTimer.h', michael@0: 'NPEventAndroid.h', michael@0: 'NPEventOSX.h', michael@0: 'NPEventUnix.h', michael@0: 'NPEventWindows.h', michael@0: 'PluginIdentifierChild.h', michael@0: 'PluginIdentifierParent.h', michael@0: 'PluginInstanceChild.h', michael@0: 'PluginInstanceParent.h', michael@0: 'PluginMessageUtils.h', michael@0: 'PluginModuleChild.h', michael@0: 'PluginModuleParent.h', michael@0: 'PluginProcessChild.h', michael@0: 'PluginProcessParent.h', michael@0: 'PluginScriptableObjectChild.h', michael@0: 'PluginScriptableObjectParent.h', michael@0: 'PluginScriptableObjectUtils-inl.h', michael@0: 'PluginScriptableObjectUtils.h', michael@0: 'PluginStreamChild.h', michael@0: 'PluginStreamParent.h', michael@0: 'PluginUtilsOSX.h', michael@0: 'ScopedMethodFactory.h', michael@0: 'StreamNotifyChild.h', michael@0: 'StreamNotifyParent.h', michael@0: ] michael@0: michael@0: if CONFIG['OS_ARCH'] == 'WINNT': michael@0: EXPORTS.mozilla.plugins += [ michael@0: 'PluginSurfaceParent.h', michael@0: ] michael@0: # These files cannot be built in unified mode because they force NSPR logging. michael@0: SOURCES += [ michael@0: 'COMMessageFilter.cpp', michael@0: 'MiniShmParent.cpp', michael@0: 'PluginHangUIParent.cpp', michael@0: 'PluginSurfaceParent.cpp', michael@0: ] michael@0: DEFINES['MOZ_HANGUI_PROCESS_NAME'] = '"plugin-hang-ui%s"' % CONFIG['BIN_SUFFIX'] michael@0: LOCAL_INCLUDES += [ michael@0: '/widget/shared', michael@0: 'hangui', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': michael@0: EXPORTS.mozilla.plugins += [ michael@0: 'PluginInterposeOSX.h', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_ENABLE_QT']: michael@0: GENERATED_SOURCES += [ michael@0: 'moc_NestedLoopTimer.cpp', michael@0: ] michael@0: # These files cannot be built in unified mode because they force NSPR logging. michael@0: SOURCES += [ michael@0: 'NestedLoopTimer.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: 'BrowserStreamChild.cpp', michael@0: 'BrowserStreamParent.cpp', michael@0: 'ChildAsyncCall.cpp', michael@0: 'ChildTimer.cpp', michael@0: 'PluginBackgroundDestroyer.cpp', michael@0: 'PluginIdentifierChild.cpp', michael@0: 'PluginIdentifierParent.cpp', michael@0: 'PluginInstanceChild.cpp', michael@0: 'PluginInstanceParent.cpp', michael@0: 'PluginMessageUtils.cpp', michael@0: 'PluginModuleChild.cpp', michael@0: 'PluginModuleParent.cpp', michael@0: 'PluginProcessChild.cpp', michael@0: 'PluginProcessParent.cpp', michael@0: 'PluginScriptableObjectChild.cpp', michael@0: 'PluginScriptableObjectParent.cpp', michael@0: 'PluginStreamChild.cpp', michael@0: 'PluginStreamParent.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': michael@0: # These files cannot be built in unified mode because they force NSPR logging. michael@0: SOURCES += [ michael@0: 'PluginInterposeOSX.mm', michael@0: 'PluginUtilsOSX.mm', michael@0: ] michael@0: michael@0: IPDL_SOURCES += [ michael@0: 'PBrowserStream.ipdl', michael@0: 'PPluginBackgroundDestroyer.ipdl', michael@0: 'PPluginIdentifier.ipdl', michael@0: 'PPluginInstance.ipdl', michael@0: 'PPluginModule.ipdl', michael@0: 'PPluginScriptableObject.ipdl', michael@0: 'PPluginStream.ipdl', michael@0: 'PPluginSurface.ipdl', michael@0: 'PStreamNotify.ipdl', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'xul' michael@0: LOCAL_INCLUDES += [ michael@0: '../base', michael@0: '/xpcom/base/', michael@0: ] michael@0: michael@0: DEFINES['FORCE_PR_LOG'] = True michael@0: