2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:23 -08: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 10:17:46 -07:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIWifiAccessPoint.idl',
|
|
|
|
'nsIWifiListener.idl',
|
|
|
|
'nsIWifiMonitor.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-11 22:00:00 -07:00
|
|
|
XPIDL_MODULE = 'necko_wifi'
|
|
|
|
|
2013-11-12 18:50:41 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsWifiAccessPoint.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
2013-11-12 18:50:41 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsWifiMonitorGonk.cpp',
|
|
|
|
]
|
|
|
|
else:
|
2013-11-12 18:50:41 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsWifiMonitor.cpp',
|
|
|
|
]
|
|
|
|
|
2013-12-08 20:34:00 -08:00
|
|
|
# osx_corewlan.mm has warnings I don't understand.
|
|
|
|
FAIL_ON_WARNINGS = CONFIG['OS_ARCH'] != 'Darwin'
|
|
|
|
|
2013-04-23 14:54:15 -07:00
|
|
|
if CONFIG['OS_ARCH'] == 'Darwin':
|
2013-11-12 18:50:41 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsWifiScannerMac.cpp',
|
|
|
|
]
|
2013-11-12 18:50:41 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-07-02 14:09:08 -07:00
|
|
|
'osx_corewlan.mm',
|
|
|
|
]
|
2014-11-23 21:10:00 -08:00
|
|
|
elif CONFIG['OS_ARCH'] in ('DragonFly', 'FreeBSD'):
|
2014-04-02 06:02:06 -07:00
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'nsWifiScannerFreeBSD.cpp',
|
|
|
|
]
|
2013-04-23 14:54:15 -07:00
|
|
|
elif CONFIG['OS_ARCH'] == 'WINNT':
|
2013-11-12 18:50:41 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsWifiScannerWin.cpp',
|
2014-08-01 12:10:48 -07:00
|
|
|
'win_wifiScanner.cpp',
|
|
|
|
'win_wlanLibrary.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
elif CONFIG['OS_ARCH'] == 'SunOS':
|
2014-07-24 08:55:33 -07:00
|
|
|
CXXFLAGS += CONFIG['GLIB_CFLAGS']
|
2013-11-12 18:50:41 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsWifiScannerSolaris.cpp',
|
|
|
|
]
|
|
|
|
|
2013-07-17 06:57:28 -07:00
|
|
|
if CONFIG['NECKO_WIFI_DBUS']:
|
2013-11-12 18:50:41 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsWifiScannerDBus.cpp',
|
|
|
|
]
|
2013-06-17 12:21:01 -07:00
|
|
|
|
2014-07-24 08:55:33 -07:00
|
|
|
if CONFIG['NECKO_WIFI_DBUS']:
|
|
|
|
CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
|
|
|
|
|
2014-07-22 16:37:51 -07:00
|
|
|
FINAL_LIBRARY = 'xul'
|