2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; 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',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
2013-11-13 06:50:41 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsWifiMonitorGonk.cpp',
|
|
|
|
]
|
|
|
|
else:
|
2013-11-13 06:50:41 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsWifiMonitor.cpp',
|
|
|
|
]
|
|
|
|
|
2013-12-09 08:34:00 +04:00
|
|
|
# osx_corewlan.mm has warnings I don't understand.
|
|
|
|
FAIL_ON_WARNINGS = CONFIG['OS_ARCH'] != 'Darwin'
|
|
|
|
|
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',
|
|
|
|
]
|
2013-11-13 06:50:41 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-07-03 01:09:08 +04:00
|
|
|
'osx_corewlan.mm',
|
|
|
|
]
|
2014-04-02 17:02:06 +04:00
|
|
|
elif CONFIG['OS_ARCH'] == 'FreeBSD':
|
|
|
|
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',
|
|
|
|
]
|
|
|
|
elif CONFIG['OS_ARCH'] == 'SunOS':
|
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',
|
|
|
|
]
|
2013-06-17 23:21:01 +04:00
|
|
|
|
2013-11-19 06:47:14 +04:00
|
|
|
FINAL_LIBRARY = 'necko'
|