Bug 1270832 - Activate standard c++ library hardening r=glandium
[gecko.git] / netwerk / wifi / moz.build
blob07d309ed39dd8d682591b26650e226d3b81ecc3e
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 # for socket
16 OS_LIBS += CONFIG["SOCKET_LIBS"]
18 UNIFIED_SOURCES += [
19     "nsWifiAccessPoint.cpp",
20     "nsWifiMonitor.cpp",
23 if CONFIG["OS_ARCH"] == "Darwin":
24     SOURCES += [
25         "mac/MacWifiScanner.mm",
26     ]
27     LOCAL_INCLUDES += [
28         "mac",
29     ]
30 elif CONFIG["OS_ARCH"] in ("DragonFly", "FreeBSD"):
31     UNIFIED_SOURCES += [
32         "freebsd/FreeBsdWifiScanner.cpp",
33     ]
34     LOCAL_INCLUDES += [
35         "freebsd",
36     ]
37 elif CONFIG["OS_ARCH"] == "WINNT":
38     UNIFIED_SOURCES += [
39         "win/WinWifiScanner.cpp",
40         "win/WlanLibrary.cpp",
41     ]
42     LOCAL_INCLUDES += [
43         "win",
44     ]
45 elif CONFIG["OS_ARCH"] == "SunOS":
46     CXXFLAGS += CONFIG["GLIB_CFLAGS"]
47     UNIFIED_SOURCES += [
48         "solaris/SolarisWifiScanner.cpp",
49     ]
50     LOCAL_INCLUDES += [
51         "solaris",
52     ]
53 elif CONFIG["NECKO_WIFI_DBUS"]:
54     UNIFIED_SOURCES += [
55         "dbus/DbusWifiScanner.cpp",
56     ]
57     LOCAL_INCLUDES += [
58         "dbus",
59     ]
60     CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]
62 TEST_DIRS += ["gtest"]
64 FINAL_LIBRARY = "xul"
66 include("/ipc/chromium/chromium-config.mozbuild")