moz.build 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
  6. if toolkit == 'windows':
  7. DIRS += ['windows']
  8. elif toolkit == 'android':
  9. DIRS += ['android']
  10. elif toolkit in ('gtk2', 'gtk3'):
  11. DIRS += ['linux']
  12. XPIDL_SOURCES += [
  13. 'nsIOSFileConstantsService.idl',
  14. 'nsISystemUpdateProvider.idl',
  15. ]
  16. XPIDL_MODULE = 'dom_system'
  17. EXPORTS += [
  18. 'nsDeviceSensors.h',
  19. ]
  20. EXPORTS.mozilla += [
  21. 'OSFileConstants.h',
  22. ]
  23. SOURCES += [
  24. 'nsDeviceSensors.cpp',
  25. 'OSFileConstants.cpp',
  26. ]
  27. EXTRA_COMPONENTS += [
  28. 'NetworkGeolocationProvider.js',
  29. 'NetworkGeolocationProvider.manifest',
  30. 'SystemUpdate.manifest',
  31. 'SystemUpdateManager.js',
  32. ]
  33. EXTRA_JS_MODULES += [
  34. 'SystemUpdateService.jsm',
  35. ]
  36. include('/ipc/chromium/chromium-config.mozbuild')
  37. FINAL_LIBRARY = 'xul'
  38. # We fire the nsDOMDeviceAcceleration
  39. LOCAL_INCLUDES += [
  40. '/dom/base',
  41. '/dom/bindings',
  42. '/js/xpconnect/loader',
  43. ]
  44. DEFINES['DLL_PREFIX'] = '"%s"' % CONFIG['DLL_PREFIX']
  45. DEFINES['DLL_SUFFIX'] = '"%s"' % CONFIG['DLL_SUFFIX']
  46. MOCHITEST_CHROME_MANIFESTS += ['tests/chrome.ini']
  47. MOCHITEST_MANIFESTS += ['tests/mochitest.ini']