Bug 1858921 - Part 2: Move WasmStructObject inlinable allocation methods to new inlin...
[gecko.git] / netwerk / wifi / moz.build
blob75a9384c09876993ffb409da3007de8b04cf6a69
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     SOURCES += [
22         "mac/MacWifiScanner.mm",
23     ]
24     LOCAL_INCLUDES += [
25         "mac",
26     ]
27 elif CONFIG["OS_ARCH"] in ("DragonFly", "FreeBSD"):
28     UNIFIED_SOURCES += [
29         "freebsd/FreeBsdWifiScanner.cpp",
30     ]
31     LOCAL_INCLUDES += [
32         "freebsd",
33     ]
34 elif CONFIG["OS_ARCH"] == "WINNT":
35     UNIFIED_SOURCES += [
36         "win/WinWifiScanner.cpp",
37         "win/WlanLibrary.cpp",
38     ]
39     LOCAL_INCLUDES += [
40         "win",
41     ]
42 elif CONFIG["OS_ARCH"] == "SunOS":
43     CXXFLAGS += CONFIG["GLIB_CFLAGS"]
44     UNIFIED_SOURCES += [
45         "solaris/SolarisWifiScanner.cpp",
46     ]
47     LOCAL_INCLUDES += [
48         "solaris",
49     ]
50 elif CONFIG["NECKO_WIFI_DBUS"]:
51     UNIFIED_SOURCES += [
52         "dbus/DbusWifiScanner.cpp",
53     ]
54     LOCAL_INCLUDES += [
55         "dbus",
56     ]
57     CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]
59 TEST_DIRS += ["gtest"]
61 FINAL_LIBRARY = "xul"
63 include("/ipc/chromium/chromium-config.mozbuild")