Bug 1760181 [wpt PR 33182] - Update wpt metadata, a=testonly
[gecko.git] / netwerk / wifi / moz.build
blobad7a1e7ea5cf5ae366d50c438165f40c386db278
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/.
7 XPIDL_SOURCES += [
8     "nsIWifiAccessPoint.idl",
9     "nsIWifiListener.idl",
10     "nsIWifiMonitor.idl",
13 XPIDL_MODULE = "necko_wifi"
15 UNIFIED_SOURCES += [
16     "nsWifiAccessPoint.cpp",
17     "nsWifiMonitor.cpp",
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     ]
47 if CONFIG["NECKO_WIFI_DBUS"]:
48     UNIFIED_SOURCES += [
49         "nsWifiScannerDBus.cpp",
50     ]
52 if CONFIG["NECKO_WIFI_DBUS"]:
53     CXXFLAGS += CONFIG["MOZ_DBUS_GLIB_CFLAGS"]
55 FINAL_LIBRARY = "xul"
57 REQUIRES_UNIFIED_BUILD = True