|
1 # -*- Mode: python; c-basic-offset: 4; 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/. |
|
6 |
|
7 XPIDL_SOURCES += [ |
|
8 'nsIWifiAccessPoint.idl', |
|
9 'nsIWifiListener.idl', |
|
10 'nsIWifiMonitor.idl', |
|
11 ] |
|
12 |
|
13 XPIDL_MODULE = 'necko_wifi' |
|
14 |
|
15 UNIFIED_SOURCES += [ |
|
16 'nsWifiAccessPoint.cpp', |
|
17 ] |
|
18 |
|
19 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': |
|
20 UNIFIED_SOURCES += [ |
|
21 'nsWifiMonitorGonk.cpp', |
|
22 ] |
|
23 else: |
|
24 UNIFIED_SOURCES += [ |
|
25 'nsWifiMonitor.cpp', |
|
26 ] |
|
27 |
|
28 # osx_corewlan.mm has warnings I don't understand. |
|
29 FAIL_ON_WARNINGS = CONFIG['OS_ARCH'] != 'Darwin' |
|
30 |
|
31 if CONFIG['OS_ARCH'] == 'Darwin': |
|
32 UNIFIED_SOURCES += [ |
|
33 'nsWifiScannerMac.cpp', |
|
34 ] |
|
35 UNIFIED_SOURCES += [ |
|
36 'osx_corewlan.mm', |
|
37 ] |
|
38 elif CONFIG['OS_ARCH'] == 'FreeBSD': |
|
39 UNIFIED_SOURCES += [ |
|
40 'nsWifiScannerFreeBSD.cpp', |
|
41 ] |
|
42 elif CONFIG['OS_ARCH'] == 'WINNT': |
|
43 UNIFIED_SOURCES += [ |
|
44 'nsWifiScannerWin.cpp', |
|
45 ] |
|
46 elif CONFIG['OS_ARCH'] == 'SunOS': |
|
47 UNIFIED_SOURCES += [ |
|
48 'nsWifiScannerSolaris.cpp', |
|
49 ] |
|
50 |
|
51 if CONFIG['NECKO_WIFI_DBUS']: |
|
52 UNIFIED_SOURCES += [ |
|
53 'nsWifiScannerDBus.cpp', |
|
54 ] |
|
55 |
|
56 FINAL_LIBRARY = 'necko' |