Bumping manifests a=b2g-bump
[gecko.git] / dom / plugins / ipc / moz.build
blobf1f171efbf034cb782d1f488bf417d16cdc6ccf9
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':
8     DIRS += ['interpose']
10 EXPORTS.mozilla += [
11     'PluginLibrary.h',
14 EXPORTS.mozilla.plugins += [
15     'AStream.h',
16     'BrowserStreamChild.h',
17     'BrowserStreamParent.h',
18     'ChildAsyncCall.h',
19     'ChildTimer.h',
20     'NPEventAndroid.h',
21     'NPEventOSX.h',
22     'NPEventUnix.h',
23     'NPEventWindows.h',
24     'PluginAsyncSurrogate.h',
25     'PluginBridge.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',
40     'PluginUtilsOSX.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',
51     ]
52     UNIFIED_SOURCES += [
53         'COMMessageFilter.cpp',
54         'PluginHangUIParent.cpp',
55         'PluginSurfaceParent.cpp',
56     ]
57     SOURCES += [
58         'MiniShmParent.cpp', # Issues with CreateEvent
59     ]
60     DEFINES['MOZ_HANGUI_PROCESS_NAME'] = '"plugin-hang-ui%s"' % CONFIG['BIN_SUFFIX']
61     LOCAL_INCLUDES += [
62         '/widget',
63         'hangui',
64     ]
66 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
67     EXPORTS.mozilla.plugins += [
68         'PluginInterposeOSX.h',
69     ]
71 if CONFIG['MOZ_ENABLE_QT']:
72     GENERATED_SOURCES += [
73         'moc_NestedLoopTimer.cpp',
74     ]
75     SOURCES += [
76         'NestedLoopTimer.cpp',
77         'PluginHelperQt.cpp',
78     ]
80 UNIFIED_SOURCES += [
81     'BrowserStreamChild.cpp',
82     'BrowserStreamParent.cpp',
83     'ChildAsyncCall.cpp',
84     'ChildTimer.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',
98 SOURCES += [
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':
106     UNIFIED_SOURCES += [
107         'PluginInterposeOSX.mm',
108         'PluginUtilsOSX.mm',
109     ]
111 IPDL_SOURCES += [
112     'PBrowserStream.ipdl',
113     'PluginTypes.ipdlh',
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'
128 LOCAL_INCLUDES += [
129     '../base',
130     '/xpcom/base/',
133 DEFINES['FORCE_PR_LOG'] = True
135 if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gtk3':
136     CXXFLAGS += CONFIG['TK_CFLAGS']
137 else:
138     # Force build against gtk+2 for struct offsets and such.
139     CXXFLAGS += CONFIG['MOZ_GTK2_CFLAGS']
141 CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']