michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: XPIDL_SOURCES += [ michael@0: 'nsIWifiAccessPoint.idl', michael@0: 'nsIWifiListener.idl', michael@0: 'nsIWifiMonitor.idl', michael@0: ] michael@0: michael@0: XPIDL_MODULE = 'necko_wifi' michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'nsWifiAccessPoint.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': michael@0: UNIFIED_SOURCES += [ michael@0: 'nsWifiMonitorGonk.cpp', michael@0: ] michael@0: else: michael@0: UNIFIED_SOURCES += [ michael@0: 'nsWifiMonitor.cpp', michael@0: ] michael@0: michael@0: # osx_corewlan.mm has warnings I don't understand. michael@0: FAIL_ON_WARNINGS = CONFIG['OS_ARCH'] != 'Darwin' michael@0: michael@0: if CONFIG['OS_ARCH'] == 'Darwin': michael@0: UNIFIED_SOURCES += [ michael@0: 'nsWifiScannerMac.cpp', michael@0: ] michael@0: UNIFIED_SOURCES += [ michael@0: 'osx_corewlan.mm', michael@0: ] michael@0: elif CONFIG['OS_ARCH'] == 'FreeBSD': michael@0: UNIFIED_SOURCES += [ michael@0: 'nsWifiScannerFreeBSD.cpp', michael@0: ] michael@0: elif CONFIG['OS_ARCH'] == 'WINNT': michael@0: UNIFIED_SOURCES += [ michael@0: 'nsWifiScannerWin.cpp', michael@0: ] michael@0: elif CONFIG['OS_ARCH'] == 'SunOS': michael@0: UNIFIED_SOURCES += [ michael@0: 'nsWifiScannerSolaris.cpp', michael@0: ] michael@0: michael@0: if CONFIG['NECKO_WIFI_DBUS']: michael@0: UNIFIED_SOURCES += [ michael@0: 'nsWifiScannerDBus.cpp', michael@0: ] michael@0: michael@0: FINAL_LIBRARY = 'necko'