moz.build 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. MOCHITEST_MANIFESTS += ['test/mochitest.ini']
  6. MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
  7. if CONFIG['MOZ_XUL']:
  8. DIRS += ['templates']
  9. XPIDL_SOURCES += [
  10. 'nsIXULOverlayProvider.idl',
  11. ]
  12. EXPORTS += [
  13. 'nsIXULDocument.h',
  14. ]
  15. SOURCES += [
  16. 'nsXULCommandDispatcher.cpp',
  17. 'nsXULContentSink.cpp',
  18. 'nsXULElement.cpp',
  19. 'nsXULPopupListener.cpp',
  20. 'nsXULPrototypeCache.cpp',
  21. 'nsXULPrototypeDocument.cpp',
  22. 'XULDocument.cpp',
  23. ]
  24. XPIDL_SOURCES += [
  25. 'nsIController.idl',
  26. 'nsIControllers.idl',
  27. ]
  28. XPIDL_MODULE = 'xul'
  29. SOURCES += [
  30. 'nsXULControllers.cpp',
  31. ]
  32. LOCAL_INCLUDES += [
  33. '/docshell/base',
  34. '/dom/base',
  35. '/dom/html',
  36. '/dom/xbl',
  37. '/dom/xml',
  38. '/dom/xul/templates',
  39. '/layout/base',
  40. '/layout/generic',
  41. '/layout/style',
  42. '/layout/xul',
  43. ]
  44. FINAL_LIBRARY = 'xul'
  45. if CONFIG['GNU_CXX']:
  46. CXXFLAGS += ['-Wno-error=shadow']