moz.build 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. with Files('**'):
  6. BUG_COMPONENT = ('Core', 'XP Toolkit/Widgets: XUL')
  7. with Files('*Menu*'):
  8. BUG_COMPONENT = ('Core', 'XP Toolkit/Widgets: Menus')
  9. if CONFIG['ENABLE_TESTS']:
  10. MOCHITEST_MANIFESTS += ['test/mochitest.ini']
  11. MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
  12. BROWSER_CHROME_MANIFESTS += ['test/browser.ini']
  13. XPIDL_SOURCES += [
  14. 'nsIBoxObject.idl',
  15. 'nsIBrowserBoxObject.idl',
  16. 'nsIContainerBoxObject.idl',
  17. 'nsIListBoxObject.idl',
  18. 'nsIMenuBoxObject.idl',
  19. 'nsIScrollBoxObject.idl',
  20. 'nsISliderListener.idl',
  21. ]
  22. XPIDL_MODULE = 'layout_xul'
  23. EXPORTS += [
  24. 'nsBox.h',
  25. 'nsIScrollbarMediator.h',
  26. 'nsPIBoxObject.h',
  27. 'nsPIListBoxObject.h',
  28. 'nsXULPopupManager.h',
  29. ]
  30. EXPORTS.mozilla.dom += [
  31. 'BoxObject.h',
  32. 'ContainerBoxObject.h',
  33. 'ListBoxObject.h',
  34. 'MenuBoxObject.h',
  35. 'PopupBoxObject.h',
  36. 'ScrollBoxObject.h',
  37. ]
  38. SOURCES += [
  39. 'BoxObject.cpp',
  40. 'nsBox.cpp',
  41. 'nsBoxFrame.cpp',
  42. 'nsBoxLayout.cpp',
  43. 'nsBoxLayoutState.cpp',
  44. 'nsButtonBoxFrame.cpp',
  45. 'nsRepeatService.cpp',
  46. 'nsRootBoxFrame.cpp',
  47. 'nsScrollbarButtonFrame.cpp',
  48. 'nsScrollbarFrame.cpp',
  49. 'nsScrollBoxFrame.cpp',
  50. 'nsSliderFrame.cpp',
  51. 'nsSprocketLayout.cpp',
  52. 'nsStackFrame.cpp',
  53. 'nsStackLayout.cpp',
  54. 'nsXULTooltipListener.cpp',
  55. ]
  56. if CONFIG['MOZ_XUL']:
  57. SOURCES += [
  58. 'ContainerBoxObject.cpp',
  59. 'ListBoxObject.cpp',
  60. 'MenuBoxObject.cpp',
  61. 'nsDeckFrame.cpp',
  62. 'nsDocElementBoxFrame.cpp',
  63. 'nsGroupBoxFrame.cpp',
  64. 'nsImageBoxFrame.cpp',
  65. 'nsLeafBoxFrame.cpp',
  66. 'nsListBoxBodyFrame.cpp',
  67. 'nsListBoxLayout.cpp',
  68. 'nsListItemFrame.cpp',
  69. 'nsMenuBarFrame.cpp',
  70. 'nsMenuBarListener.cpp',
  71. 'nsMenuFrame.cpp',
  72. 'nsMenuPopupFrame.cpp',
  73. 'nsPopupSetFrame.cpp',
  74. 'nsProgressMeterFrame.cpp',
  75. 'nsResizerFrame.cpp',
  76. 'nsSplitterFrame.cpp',
  77. 'nsTextBoxFrame.cpp',
  78. 'nsTitleBarFrame.cpp',
  79. 'nsXULLabelFrame.cpp',
  80. 'nsXULPopupManager.cpp',
  81. 'PopupBoxObject.cpp',
  82. 'ScrollBoxObject.cpp',
  83. ]
  84. if CONFIG['MOZ_XUL']:
  85. DIRS += ['tree', 'grid']
  86. FINAL_LIBRARY = 'xul'
  87. LOCAL_INCLUDES += [
  88. '../base',
  89. '../generic',
  90. '../style',
  91. '/dom/base',
  92. ]
  93. if CONFIG['GNU_CXX']:
  94. CXXFLAGS += ['-Wno-error=shadow']