Source code

Revision control

Other Tools

1
# -*- Mode: python; 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
XPIDL_SOURCES += [
8
'nsIWifiAccessPoint.idl',
9
'nsIWifiListener.idl',
10
'nsIWifiMonitor.idl',
11
]
12
13
XPIDL_MODULE = 'necko_wifi'
14
15
UNIFIED_SOURCES += [
16
'nsWifiAccessPoint.cpp',
17
'nsWifiMonitor.cpp',
18
]
19
20
if CONFIG['OS_ARCH'] == 'Darwin':
21
UNIFIED_SOURCES += [
22
'nsWifiScannerMac.cpp',
23
]
24
SOURCES += [
25
'osx_corewlan.mm',
26
]
27
# osx_corewlan.mm has warnings about scanForNetworksWithParameters,
28
# bssidData and rssi. These are APIs that were removed in 10.7, so we need
29
# to accept the warnings when targeting the newer SDKs.
30
SOURCES['osx_corewlan.mm'].flags += ['-Wno-error=objc-method-access']
31
elif CONFIG['OS_ARCH'] in ('DragonFly', 'FreeBSD'):
32
UNIFIED_SOURCES += [
33
'nsWifiScannerFreeBSD.cpp',
34
]
35
elif CONFIG['OS_ARCH'] == 'WINNT':
36
UNIFIED_SOURCES += [
37
'nsWifiScannerWin.cpp',
38
'win_wifiScanner.cpp',
39
'win_wlanLibrary.cpp',
40
]
41
elif CONFIG['OS_ARCH'] == 'SunOS':
42
CXXFLAGS += CONFIG['GLIB_CFLAGS']
43
UNIFIED_SOURCES += [
44
'nsWifiScannerSolaris.cpp',
45
]
46
47
if CONFIG['NECKO_WIFI_DBUS']:
48
UNIFIED_SOURCES += [
49
'nsWifiScannerDBus.cpp',
50
]
51
CXXFLAGS += ['-Wno-error=shadow']
52
53
if CONFIG['NECKO_WIFI_DBUS']:
54
CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
55
56
FINAL_LIBRARY = 'xul'