Issue #80 - reinstated unified building for some large chunks of our code.

This should reduce compile complexity saving time and reducing linker stress.
This commit is contained in:
Moonchild 2022-09-04 11:50:24 +00:00 committed by roytam1
commit 5dfded811d
115 changed files with 293 additions and 258 deletions

View file

@ -37,12 +37,10 @@ EXPORTS.mozilla += [
'PluginPRLibrary.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'nsJSNPRuntime.cpp',
'nsNPAPIPlugin.cpp',
'nsNPAPIPluginInstance.cpp',
'nsNPAPIPluginStreamListener.cpp',
'nsPluginHost.cpp',
'nsPluginInstanceOwner.cpp',
'nsPluginModule.cpp',
'nsPluginStreamListenerPeer.cpp',
@ -50,19 +48,24 @@ SOURCES += [
'PluginPRLibrary.cpp',
]
SOURCES += [
'nsNPAPIPlugin.cpp', # Conflict with X11 headers
'nsPluginHost.cpp', # Conflict with NS_NPAPIPLUGIN_CALLBACK
]
if CONFIG['OS_ARCH'] == 'WINNT':
SOURCES += [
UNIFIED_SOURCES += [
'nsPluginDirServiceProvider.cpp',
'nsPluginNativeWindowWin.cpp',
'nsPluginsDirWin.cpp',
]
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
SOURCES += [
UNIFIED_SOURCES += [
'nsPluginNativeWindow.cpp',
'nsPluginsDirDarwin.cpp',
]
else:
SOURCES += [
UNIFIED_SOURCES += [
'nsPluginsDirUnix.cpp',
]
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
@ -71,7 +74,7 @@ else:
'nsPluginNativeWindowGtk.cpp',
]
else:
SOURCES += [
UNIFIED_SOURCES += [
'nsPluginNativeWindow.cpp',
]