|
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/. |
|
6 |
|
7 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': |
|
8 DIRS += ['interpose'] |
|
9 |
|
10 EXPORTS.mozilla += [ |
|
11 'PluginLibrary.h', |
|
12 ] |
|
13 |
|
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 'PluginIdentifierChild.h', |
|
25 'PluginIdentifierParent.h', |
|
26 'PluginInstanceChild.h', |
|
27 'PluginInstanceParent.h', |
|
28 'PluginMessageUtils.h', |
|
29 'PluginModuleChild.h', |
|
30 'PluginModuleParent.h', |
|
31 'PluginProcessChild.h', |
|
32 'PluginProcessParent.h', |
|
33 'PluginScriptableObjectChild.h', |
|
34 'PluginScriptableObjectParent.h', |
|
35 'PluginScriptableObjectUtils-inl.h', |
|
36 'PluginScriptableObjectUtils.h', |
|
37 'PluginStreamChild.h', |
|
38 'PluginStreamParent.h', |
|
39 'PluginUtilsOSX.h', |
|
40 'ScopedMethodFactory.h', |
|
41 'StreamNotifyChild.h', |
|
42 'StreamNotifyParent.h', |
|
43 ] |
|
44 |
|
45 if CONFIG['OS_ARCH'] == 'WINNT': |
|
46 EXPORTS.mozilla.plugins += [ |
|
47 'PluginSurfaceParent.h', |
|
48 ] |
|
49 # These files cannot be built in unified mode because they force NSPR logging. |
|
50 SOURCES += [ |
|
51 'COMMessageFilter.cpp', |
|
52 'MiniShmParent.cpp', |
|
53 'PluginHangUIParent.cpp', |
|
54 'PluginSurfaceParent.cpp', |
|
55 ] |
|
56 DEFINES['MOZ_HANGUI_PROCESS_NAME'] = '"plugin-hang-ui%s"' % CONFIG['BIN_SUFFIX'] |
|
57 LOCAL_INCLUDES += [ |
|
58 '/widget/shared', |
|
59 'hangui', |
|
60 ] |
|
61 |
|
62 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': |
|
63 EXPORTS.mozilla.plugins += [ |
|
64 'PluginInterposeOSX.h', |
|
65 ] |
|
66 |
|
67 if CONFIG['MOZ_ENABLE_QT']: |
|
68 GENERATED_SOURCES += [ |
|
69 'moc_NestedLoopTimer.cpp', |
|
70 ] |
|
71 # These files cannot be built in unified mode because they force NSPR logging. |
|
72 SOURCES += [ |
|
73 'NestedLoopTimer.cpp', |
|
74 ] |
|
75 |
|
76 # These files cannot be built in unified mode because they force NSPR logging. |
|
77 SOURCES += [ |
|
78 'BrowserStreamChild.cpp', |
|
79 'BrowserStreamParent.cpp', |
|
80 'ChildAsyncCall.cpp', |
|
81 'ChildTimer.cpp', |
|
82 'PluginBackgroundDestroyer.cpp', |
|
83 'PluginIdentifierChild.cpp', |
|
84 'PluginIdentifierParent.cpp', |
|
85 'PluginInstanceChild.cpp', |
|
86 'PluginInstanceParent.cpp', |
|
87 'PluginMessageUtils.cpp', |
|
88 'PluginModuleChild.cpp', |
|
89 'PluginModuleParent.cpp', |
|
90 'PluginProcessChild.cpp', |
|
91 'PluginProcessParent.cpp', |
|
92 'PluginScriptableObjectChild.cpp', |
|
93 'PluginScriptableObjectParent.cpp', |
|
94 'PluginStreamChild.cpp', |
|
95 'PluginStreamParent.cpp', |
|
96 ] |
|
97 |
|
98 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': |
|
99 # These files cannot be built in unified mode because they force NSPR logging. |
|
100 SOURCES += [ |
|
101 'PluginInterposeOSX.mm', |
|
102 'PluginUtilsOSX.mm', |
|
103 ] |
|
104 |
|
105 IPDL_SOURCES += [ |
|
106 'PBrowserStream.ipdl', |
|
107 'PPluginBackgroundDestroyer.ipdl', |
|
108 'PPluginIdentifier.ipdl', |
|
109 'PPluginInstance.ipdl', |
|
110 'PPluginModule.ipdl', |
|
111 'PPluginScriptableObject.ipdl', |
|
112 'PPluginStream.ipdl', |
|
113 'PPluginSurface.ipdl', |
|
114 'PStreamNotify.ipdl', |
|
115 ] |
|
116 |
|
117 FAIL_ON_WARNINGS = True |
|
118 |
|
119 include('/ipc/chromium/chromium-config.mozbuild') |
|
120 |
|
121 FINAL_LIBRARY = 'xul' |
|
122 LOCAL_INCLUDES += [ |
|
123 '../base', |
|
124 '/xpcom/base/', |
|
125 ] |
|
126 |
|
127 DEFINES['FORCE_PR_LOG'] = True |
|
128 |