moz.build 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
  2. # This Source Code Form is subject to the terms of the Mozilla Public
  3. # License, v. 2.0. If a copy of the MPL was not distributed with this
  4. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  5. XPIDL_SOURCES += [
  6. 'nsIWifiAccessPoint.idl',
  7. 'nsIWifiListener.idl',
  8. 'nsIWifiMonitor.idl',
  9. ]
  10. XPIDL_MODULE = 'necko_wifi'
  11. SOURCES += [
  12. 'nsWifiAccessPoint.cpp',
  13. 'nsWifiMonitor.cpp',
  14. ]
  15. if CONFIG['OS_ARCH'] == 'Darwin':
  16. SOURCES += [
  17. 'nsWifiScannerMac.cpp',
  18. ]
  19. SOURCES += [
  20. 'osx_corewlan.mm',
  21. ]
  22. # osx_corewlan.mm has warnings about scanForNetworksWithParameters,
  23. # bssidData and rssi. These are APIs that were removed in 10.7, so we need
  24. # to accept the warnings when targeting the newer SDKs.
  25. SOURCES['osx_corewlan.mm'].flags += ['-Wno-error=objc-method-access']
  26. elif CONFIG['OS_ARCH'] in ('DragonFly', 'FreeBSD'):
  27. SOURCES += [
  28. 'nsWifiScannerFreeBSD.cpp',
  29. ]
  30. elif CONFIG['OS_ARCH'] == 'WINNT':
  31. SOURCES += [
  32. 'nsWifiScannerWin.cpp',
  33. 'win_wifiScanner.cpp',
  34. 'win_wlanLibrary.cpp',
  35. ]
  36. elif CONFIG['OS_ARCH'] == 'SunOS':
  37. CXXFLAGS += CONFIG['GLIB_CFLAGS']
  38. SOURCES += [
  39. 'nsWifiScannerSolaris.cpp',
  40. ]
  41. if CONFIG['NECKO_WIFI_DBUS']:
  42. SOURCES += [
  43. 'nsWifiScannerDBus.cpp',
  44. ]
  45. CXXFLAGS += ['-Wno-error=shadow']
  46. if CONFIG['NECKO_WIFI_DBUS']:
  47. CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
  48. FINAL_LIBRARY = 'xul'