1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
14 EXPORTS.mozilla.plugins += [
16 'BrowserStreamChild.h',
17 'BrowserStreamParent.h',
24 'PluginAsyncSurrogate.h',
26 'PluginDataResolver.h',
27 'PluginInstanceChild.h',
28 'PluginInstanceParent.h',
29 'PluginMessageUtils.h',
30 'PluginModuleChild.h',
31 'PluginModuleParent.h',
32 'PluginProcessChild.h',
33 'PluginProcessParent.h',
34 'PluginScriptableObjectChild.h',
35 'PluginScriptableObjectParent.h',
36 'PluginScriptableObjectUtils-inl.h',
37 'PluginScriptableObjectUtils.h',
38 'PluginStreamChild.h',
39 'PluginStreamParent.h',
41 'PluginWidgetChild.h',
42 'PluginWidgetParent.h',
43 'ScopedMethodFactory.h',
44 'StreamNotifyChild.h',
45 'StreamNotifyParent.h',
48 if CONFIG['OS_ARCH'] == 'WINNT':
49 EXPORTS.mozilla.plugins += [
50 'PluginSurfaceParent.h',
53 'COMMessageFilter.cpp',
54 'PluginHangUIParent.cpp',
55 'PluginSurfaceParent.cpp',
58 'MiniShmParent.cpp', # Issues with CreateEvent
60 DEFINES['MOZ_HANGUI_PROCESS_NAME'] = '"plugin-hang-ui%s"' % CONFIG['BIN_SUFFIX']
66 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
67 EXPORTS.mozilla.plugins += [
68 'PluginInterposeOSX.h',
71 if CONFIG['MOZ_ENABLE_QT']:
72 GENERATED_SOURCES += [
73 'moc_NestedLoopTimer.cpp',
76 'NestedLoopTimer.cpp',
81 'BrowserStreamChild.cpp',
82 'BrowserStreamParent.cpp',
85 'PluginAsyncSurrogate.cpp',
86 'PluginBackgroundDestroyer.cpp',
87 'PluginInstanceParent.cpp',
88 'PluginMessageUtils.cpp',
89 'PluginModuleParent.cpp',
90 'PluginProcessChild.cpp',
91 'PluginProcessParent.cpp',
92 'PluginScriptableObjectChild.cpp',
93 'PluginScriptableObjectParent.cpp',
94 'PluginStreamChild.cpp',
95 'PluginStreamParent.cpp',
99 'PluginInstanceChild.cpp', # 'PluginThreadCallback' : ambiguous symbol
100 'PluginModuleChild.cpp', # Redefinition of mozilla::WindowsDllInterceptor sUser32Intercept
101 'PluginWidgetChild.cpp',
102 'PluginWidgetParent.cpp',
105 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
107 'PluginInterposeOSX.mm',
112 'PBrowserStream.ipdl',
114 'PPluginBackgroundDestroyer.ipdl',
115 'PPluginInstance.ipdl',
116 'PPluginModule.ipdl',
117 'PPluginScriptableObject.ipdl',
118 'PPluginStream.ipdl',
119 'PPluginSurface.ipdl',
120 'PStreamNotify.ipdl',
123 FAIL_ON_WARNINGS = True
125 include('/ipc/chromium/chromium-config.mozbuild')
127 FINAL_LIBRARY = 'xul'
133 DEFINES['FORCE_PR_LOG'] = True
135 if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gtk3':
136 CXXFLAGS += CONFIG['TK_CFLAGS']
138 # Force build against gtk+2 for struct offsets and such.
139 CXXFLAGS += CONFIG['MOZ_GTK2_CFLAGS']
141 CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']