Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | XPIDL_SOURCES += [ |
michael@0 | 8 | 'nsIWifiAccessPoint.idl', |
michael@0 | 9 | 'nsIWifiListener.idl', |
michael@0 | 10 | 'nsIWifiMonitor.idl', |
michael@0 | 11 | ] |
michael@0 | 12 | |
michael@0 | 13 | XPIDL_MODULE = 'necko_wifi' |
michael@0 | 14 | |
michael@0 | 15 | UNIFIED_SOURCES += [ |
michael@0 | 16 | 'nsWifiAccessPoint.cpp', |
michael@0 | 17 | ] |
michael@0 | 18 | |
michael@0 | 19 | if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': |
michael@0 | 20 | UNIFIED_SOURCES += [ |
michael@0 | 21 | 'nsWifiMonitorGonk.cpp', |
michael@0 | 22 | ] |
michael@0 | 23 | else: |
michael@0 | 24 | UNIFIED_SOURCES += [ |
michael@0 | 25 | 'nsWifiMonitor.cpp', |
michael@0 | 26 | ] |
michael@0 | 27 | |
michael@0 | 28 | # osx_corewlan.mm has warnings I don't understand. |
michael@0 | 29 | FAIL_ON_WARNINGS = CONFIG['OS_ARCH'] != 'Darwin' |
michael@0 | 30 | |
michael@0 | 31 | if CONFIG['OS_ARCH'] == 'Darwin': |
michael@0 | 32 | UNIFIED_SOURCES += [ |
michael@0 | 33 | 'nsWifiScannerMac.cpp', |
michael@0 | 34 | ] |
michael@0 | 35 | UNIFIED_SOURCES += [ |
michael@0 | 36 | 'osx_corewlan.mm', |
michael@0 | 37 | ] |
michael@0 | 38 | elif CONFIG['OS_ARCH'] == 'FreeBSD': |
michael@0 | 39 | UNIFIED_SOURCES += [ |
michael@0 | 40 | 'nsWifiScannerFreeBSD.cpp', |
michael@0 | 41 | ] |
michael@0 | 42 | elif CONFIG['OS_ARCH'] == 'WINNT': |
michael@0 | 43 | UNIFIED_SOURCES += [ |
michael@0 | 44 | 'nsWifiScannerWin.cpp', |
michael@0 | 45 | ] |
michael@0 | 46 | elif CONFIG['OS_ARCH'] == 'SunOS': |
michael@0 | 47 | UNIFIED_SOURCES += [ |
michael@0 | 48 | 'nsWifiScannerSolaris.cpp', |
michael@0 | 49 | ] |
michael@0 | 50 | |
michael@0 | 51 | if CONFIG['NECKO_WIFI_DBUS']: |
michael@0 | 52 | UNIFIED_SOURCES += [ |
michael@0 | 53 | 'nsWifiScannerDBus.cpp', |
michael@0 | 54 | ] |
michael@0 | 55 | |
michael@0 | 56 | FINAL_LIBRARY = 'necko' |