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

@ -11,13 +11,16 @@ XPIDL_SOURCES += [
XPIDL_MODULE = 'necko_wifi'
SOURCES += [
UNIFIED_SOURCES += [
'nsWifiAccessPoint.cpp',
]
UNIFIED_SOURCES += [
'nsWifiMonitor.cpp',
]
if CONFIG['OS_ARCH'] == 'Darwin':
SOURCES += [
UNIFIED_SOURCES += [
'nsWifiScannerMac.cpp',
]
SOURCES += [
@ -28,11 +31,11 @@ if CONFIG['OS_ARCH'] == 'Darwin':
# to accept the warnings when targeting the newer SDKs.
SOURCES['osx_corewlan.mm'].flags += ['-Wno-error=objc-method-access']
elif CONFIG['OS_ARCH'] in ('DragonFly', 'FreeBSD'):
SOURCES += [
UNIFIED_SOURCES += [
'nsWifiScannerFreeBSD.cpp',
]
elif CONFIG['OS_ARCH'] == 'WINNT':
SOURCES += [
UNIFIED_SOURCES += [
'nsWifiScannerWin.cpp',
'win_wifiScanner.cpp',
'win_wlanLibrary.cpp',
@ -40,12 +43,12 @@ elif CONFIG['OS_ARCH'] == 'WINNT':
]
elif CONFIG['OS_ARCH'] == 'SunOS':
CXXFLAGS += CONFIG['GLIB_CFLAGS']
SOURCES += [
UNIFIED_SOURCES += [
'nsWifiScannerSolaris.cpp',
]
if CONFIG['NECKO_WIFI_DBUS']:
SOURCES += [
UNIFIED_SOURCES += [
'nsWifiScannerDBus.cpp',
]
CXXFLAGS += ['-Wno-error=shadow']