2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:23 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2013-03-12 21:17:46 +04:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIWifiAccessPoint.idl',
|
|
|
|
'nsIWifiListener.idl',
|
|
|
|
'nsIWifiMonitor.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-12 09:00:00 +04:00
|
|
|
XPIDL_MODULE = 'necko_wifi'
|
|
|
|
|
2013-11-13 06:50:41 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsWifiAccessPoint.cpp',
|
2017-04-18 10:56:09 +03:00
|
|
|
'nsWifiMonitor.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'Darwin':
|
2013-11-13 06:50:41 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsWifiScannerMac.cpp',
|
|
|
|
]
|
2015-09-16 02:41:52 +03:00
|
|
|
SOURCES += [
|
2013-07-03 01:09:08 +04:00
|
|
|
'osx_corewlan.mm',
|
|
|
|
]
|
2015-09-16 02:41:52 +03:00
|
|
|
# osx_corewlan.mm has warnings about scanForNetworksWithParameters,
|
|
|
|
# bssidData and rssi. These are APIs that were removed in 10.7, so we need
|
|
|
|
# to accept the warnings when targeting the newer SDKs.
|
|
|
|
SOURCES['osx_corewlan.mm'].flags += ['-Wno-error=objc-method-access']
|
2014-11-24 08:10:00 +03:00
|
|
|
elif CONFIG['OS_ARCH'] in ('DragonFly', 'FreeBSD'):
|
2014-04-02 17:02:06 +04:00
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'nsWifiScannerFreeBSD.cpp',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
elif CONFIG['OS_ARCH'] == 'WINNT':
|
2013-11-13 06:50:41 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsWifiScannerWin.cpp',
|
2014-08-01 23:10:48 +04:00
|
|
|
'win_wifiScanner.cpp',
|
|
|
|
'win_wlanLibrary.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
elif CONFIG['OS_ARCH'] == 'SunOS':
|
2014-07-24 19:55:33 +04:00
|
|
|
CXXFLAGS += CONFIG['GLIB_CFLAGS']
|
2013-11-13 06:50:41 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsWifiScannerSolaris.cpp',
|
|
|
|
]
|
|
|
|
|
2013-07-17 17:57:28 +04:00
|
|
|
if CONFIG['NECKO_WIFI_DBUS']:
|
2013-11-13 06:50:41 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsWifiScannerDBus.cpp',
|
|
|
|
]
|
2016-05-11 10:00:01 +03:00
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|
2013-06-17 23:21:01 +04:00
|
|
|
|
2014-07-24 19:55:33 +04:00
|
|
|
if CONFIG['NECKO_WIFI_DBUS']:
|
|
|
|
CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|