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/.
8 "nsIWifiAccessPoint.idl",
13 XPIDL_MODULE = "necko_wifi"
16 "nsWifiAccessPoint.cpp",
20 if CONFIG["OS_ARCH"] == "Darwin":
22 "nsWifiScannerMac.cpp",
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"):
33 "nsWifiScannerFreeBSD.cpp",
35 elif CONFIG["OS_ARCH"] == "WINNT":
37 "nsWifiScannerWin.cpp",
38 "win_wifiScanner.cpp",
39 "win_wlanLibrary.cpp",
41 elif CONFIG["OS_ARCH"] == "SunOS":
42 CXXFLAGS += CONFIG["GLIB_CFLAGS"]
44 "nsWifiScannerSolaris.cpp",
47 if CONFIG["NECKO_WIFI_DBUS"]:
49 "nsWifiScannerDBus.cpp",
52 if CONFIG["NECKO_WIFI_DBUS"]:
53 CXXFLAGS += CONFIG["MOZ_DBUS_GLIB_CFLAGS"]
57 REQUIRES_UNIFIED_BUILD = True