1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/wifi/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,56 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +XPIDL_SOURCES += [ 1.11 + 'nsIWifiAccessPoint.idl', 1.12 + 'nsIWifiListener.idl', 1.13 + 'nsIWifiMonitor.idl', 1.14 +] 1.15 + 1.16 +XPIDL_MODULE = 'necko_wifi' 1.17 + 1.18 +UNIFIED_SOURCES += [ 1.19 + 'nsWifiAccessPoint.cpp', 1.20 +] 1.21 + 1.22 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': 1.23 + UNIFIED_SOURCES += [ 1.24 + 'nsWifiMonitorGonk.cpp', 1.25 + ] 1.26 +else: 1.27 + UNIFIED_SOURCES += [ 1.28 + 'nsWifiMonitor.cpp', 1.29 + ] 1.30 + 1.31 +# osx_corewlan.mm has warnings I don't understand. 1.32 +FAIL_ON_WARNINGS = CONFIG['OS_ARCH'] != 'Darwin' 1.33 + 1.34 +if CONFIG['OS_ARCH'] == 'Darwin': 1.35 + UNIFIED_SOURCES += [ 1.36 + 'nsWifiScannerMac.cpp', 1.37 + ] 1.38 + UNIFIED_SOURCES += [ 1.39 + 'osx_corewlan.mm', 1.40 + ] 1.41 +elif CONFIG['OS_ARCH'] == 'FreeBSD': 1.42 + UNIFIED_SOURCES += [ 1.43 + 'nsWifiScannerFreeBSD.cpp', 1.44 + ] 1.45 +elif CONFIG['OS_ARCH'] == 'WINNT': 1.46 + UNIFIED_SOURCES += [ 1.47 + 'nsWifiScannerWin.cpp', 1.48 + ] 1.49 +elif CONFIG['OS_ARCH'] == 'SunOS': 1.50 + UNIFIED_SOURCES += [ 1.51 + 'nsWifiScannerSolaris.cpp', 1.52 + ] 1.53 + 1.54 +if CONFIG['NECKO_WIFI_DBUS']: 1.55 + UNIFIED_SOURCES += [ 1.56 + 'nsWifiScannerDBus.cpp', 1.57 + ] 1.58 + 1.59 +FINAL_LIBRARY = 'necko'