Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': |
michael@0 | 8 | DIRS += ['interpose'] |
michael@0 | 9 | |
michael@0 | 10 | EXPORTS.mozilla += [ |
michael@0 | 11 | 'PluginLibrary.h', |
michael@0 | 12 | ] |
michael@0 | 13 | |
michael@0 | 14 | EXPORTS.mozilla.plugins += [ |
michael@0 | 15 | 'AStream.h', |
michael@0 | 16 | 'BrowserStreamChild.h', |
michael@0 | 17 | 'BrowserStreamParent.h', |
michael@0 | 18 | 'ChildAsyncCall.h', |
michael@0 | 19 | 'ChildTimer.h', |
michael@0 | 20 | 'NPEventAndroid.h', |
michael@0 | 21 | 'NPEventOSX.h', |
michael@0 | 22 | 'NPEventUnix.h', |
michael@0 | 23 | 'NPEventWindows.h', |
michael@0 | 24 | 'PluginIdentifierChild.h', |
michael@0 | 25 | 'PluginIdentifierParent.h', |
michael@0 | 26 | 'PluginInstanceChild.h', |
michael@0 | 27 | 'PluginInstanceParent.h', |
michael@0 | 28 | 'PluginMessageUtils.h', |
michael@0 | 29 | 'PluginModuleChild.h', |
michael@0 | 30 | 'PluginModuleParent.h', |
michael@0 | 31 | 'PluginProcessChild.h', |
michael@0 | 32 | 'PluginProcessParent.h', |
michael@0 | 33 | 'PluginScriptableObjectChild.h', |
michael@0 | 34 | 'PluginScriptableObjectParent.h', |
michael@0 | 35 | 'PluginScriptableObjectUtils-inl.h', |
michael@0 | 36 | 'PluginScriptableObjectUtils.h', |
michael@0 | 37 | 'PluginStreamChild.h', |
michael@0 | 38 | 'PluginStreamParent.h', |
michael@0 | 39 | 'PluginUtilsOSX.h', |
michael@0 | 40 | 'ScopedMethodFactory.h', |
michael@0 | 41 | 'StreamNotifyChild.h', |
michael@0 | 42 | 'StreamNotifyParent.h', |
michael@0 | 43 | ] |
michael@0 | 44 | |
michael@0 | 45 | if CONFIG['OS_ARCH'] == 'WINNT': |
michael@0 | 46 | EXPORTS.mozilla.plugins += [ |
michael@0 | 47 | 'PluginSurfaceParent.h', |
michael@0 | 48 | ] |
michael@0 | 49 | # These files cannot be built in unified mode because they force NSPR logging. |
michael@0 | 50 | SOURCES += [ |
michael@0 | 51 | 'COMMessageFilter.cpp', |
michael@0 | 52 | 'MiniShmParent.cpp', |
michael@0 | 53 | 'PluginHangUIParent.cpp', |
michael@0 | 54 | 'PluginSurfaceParent.cpp', |
michael@0 | 55 | ] |
michael@0 | 56 | DEFINES['MOZ_HANGUI_PROCESS_NAME'] = '"plugin-hang-ui%s"' % CONFIG['BIN_SUFFIX'] |
michael@0 | 57 | LOCAL_INCLUDES += [ |
michael@0 | 58 | '/widget/shared', |
michael@0 | 59 | 'hangui', |
michael@0 | 60 | ] |
michael@0 | 61 | |
michael@0 | 62 | if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': |
michael@0 | 63 | EXPORTS.mozilla.plugins += [ |
michael@0 | 64 | 'PluginInterposeOSX.h', |
michael@0 | 65 | ] |
michael@0 | 66 | |
michael@0 | 67 | if CONFIG['MOZ_ENABLE_QT']: |
michael@0 | 68 | GENERATED_SOURCES += [ |
michael@0 | 69 | 'moc_NestedLoopTimer.cpp', |
michael@0 | 70 | ] |
michael@0 | 71 | # These files cannot be built in unified mode because they force NSPR logging. |
michael@0 | 72 | SOURCES += [ |
michael@0 | 73 | 'NestedLoopTimer.cpp', |
michael@0 | 74 | ] |
michael@0 | 75 | |
michael@0 | 76 | # These files cannot be built in unified mode because they force NSPR logging. |
michael@0 | 77 | SOURCES += [ |
michael@0 | 78 | 'BrowserStreamChild.cpp', |
michael@0 | 79 | 'BrowserStreamParent.cpp', |
michael@0 | 80 | 'ChildAsyncCall.cpp', |
michael@0 | 81 | 'ChildTimer.cpp', |
michael@0 | 82 | 'PluginBackgroundDestroyer.cpp', |
michael@0 | 83 | 'PluginIdentifierChild.cpp', |
michael@0 | 84 | 'PluginIdentifierParent.cpp', |
michael@0 | 85 | 'PluginInstanceChild.cpp', |
michael@0 | 86 | 'PluginInstanceParent.cpp', |
michael@0 | 87 | 'PluginMessageUtils.cpp', |
michael@0 | 88 | 'PluginModuleChild.cpp', |
michael@0 | 89 | 'PluginModuleParent.cpp', |
michael@0 | 90 | 'PluginProcessChild.cpp', |
michael@0 | 91 | 'PluginProcessParent.cpp', |
michael@0 | 92 | 'PluginScriptableObjectChild.cpp', |
michael@0 | 93 | 'PluginScriptableObjectParent.cpp', |
michael@0 | 94 | 'PluginStreamChild.cpp', |
michael@0 | 95 | 'PluginStreamParent.cpp', |
michael@0 | 96 | ] |
michael@0 | 97 | |
michael@0 | 98 | if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': |
michael@0 | 99 | # These files cannot be built in unified mode because they force NSPR logging. |
michael@0 | 100 | SOURCES += [ |
michael@0 | 101 | 'PluginInterposeOSX.mm', |
michael@0 | 102 | 'PluginUtilsOSX.mm', |
michael@0 | 103 | ] |
michael@0 | 104 | |
michael@0 | 105 | IPDL_SOURCES += [ |
michael@0 | 106 | 'PBrowserStream.ipdl', |
michael@0 | 107 | 'PPluginBackgroundDestroyer.ipdl', |
michael@0 | 108 | 'PPluginIdentifier.ipdl', |
michael@0 | 109 | 'PPluginInstance.ipdl', |
michael@0 | 110 | 'PPluginModule.ipdl', |
michael@0 | 111 | 'PPluginScriptableObject.ipdl', |
michael@0 | 112 | 'PPluginStream.ipdl', |
michael@0 | 113 | 'PPluginSurface.ipdl', |
michael@0 | 114 | 'PStreamNotify.ipdl', |
michael@0 | 115 | ] |
michael@0 | 116 | |
michael@0 | 117 | FAIL_ON_WARNINGS = True |
michael@0 | 118 | |
michael@0 | 119 | include('/ipc/chromium/chromium-config.mozbuild') |
michael@0 | 120 | |
michael@0 | 121 | FINAL_LIBRARY = 'xul' |
michael@0 | 122 | LOCAL_INCLUDES += [ |
michael@0 | 123 | '../base', |
michael@0 | 124 | '/xpcom/base/', |
michael@0 | 125 | ] |
michael@0 | 126 | |
michael@0 | 127 | DEFINES['FORCE_PR_LOG'] = True |
michael@0 | 128 |