moz.build 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. 'nsIScriptError.idl'
  7. ]
  8. XPIDL_MODULE = 'dom_bindings'
  9. EXPORTS.ipc += [
  10. 'ErrorIPCUtils.h',
  11. ]
  12. EXPORTS.mozilla += [
  13. 'ErrorResult.h',
  14. 'RootedOwningNonNull.h',
  15. 'RootedRefPtr.h',
  16. ]
  17. EXPORTS.mozilla.dom += [
  18. 'AtomList.h',
  19. 'BindingDeclarations.h',
  20. 'BindingUtils.h',
  21. 'CallbackFunction.h',
  22. 'CallbackInterface.h',
  23. 'CallbackObject.h',
  24. 'Date.h',
  25. 'DOMJSClass.h',
  26. 'DOMJSProxyHandler.h',
  27. 'DOMString.h',
  28. 'Errors.msg',
  29. 'Exceptions.h',
  30. 'FakeString.h',
  31. 'IterableIterator.h',
  32. 'JSSlots.h',
  33. 'NonRefcountedDOMObject.h',
  34. 'Nullable.h',
  35. 'PrimitiveConversions.h',
  36. 'Record.h',
  37. 'RootedDictionary.h',
  38. 'SimpleGlobalObject.h',
  39. 'StructuredClone.h',
  40. 'ToJSValue.h',
  41. 'TypedArray.h',
  42. 'UnionMember.h',
  43. 'WebIDLGlobalNameHash.h',
  44. 'XrayExpandoClass.h',
  45. ]
  46. # Generated bindings reference *Binding.h, not mozilla/dom/*Binding.h. And,
  47. # since we generate exported bindings directly to $(DIST)/include, we need
  48. # to add that path to the search list.
  49. #
  50. # Ideally, binding generation uses the prefixed header file names.
  51. # Bug 932082 tracks.
  52. LOCAL_INCLUDES += [
  53. '!/dist/include/mozilla/dom',
  54. ]
  55. LOCAL_INCLUDES += [
  56. '/dom/base',
  57. '/dom/canvas',
  58. '/dom/geolocation',
  59. '/dom/html',
  60. '/dom/indexedDB',
  61. '/dom/media/webaudio',
  62. '/dom/svg',
  63. '/dom/workers',
  64. '/dom/xbl',
  65. '/dom/xml',
  66. '/dom/xslt/base',
  67. '/dom/xslt/xpath',
  68. '/dom/xul',
  69. '/js/xpconnect/src',
  70. '/js/xpconnect/wrappers',
  71. '/layout/generic',
  72. '/layout/style',
  73. '/layout/xul/tree',
  74. '/media/mtransport',
  75. '/media/webrtc/',
  76. '/media/webrtc/signaling/src/common/time_profiling',
  77. '/media/webrtc/signaling/src/peerconnection',
  78. ]
  79. SOURCES += [
  80. 'BindingUtils.cpp',
  81. 'CallbackInterface.cpp',
  82. 'CallbackObject.cpp',
  83. 'Date.cpp',
  84. 'DOMJSProxyHandler.cpp',
  85. 'Exceptions.cpp',
  86. 'IterableIterator.cpp',
  87. 'nsScriptError.cpp',
  88. 'nsScriptErrorWithStack.cpp',
  89. 'SimpleGlobalObject.cpp',
  90. 'ToJSValue.cpp',
  91. 'WebIDLGlobalNameHash.cpp',
  92. ]
  93. SOURCES += [
  94. 'StructuredClone.cpp',
  95. ]
  96. include('/ipc/chromium/chromium-config.mozbuild')
  97. if CONFIG['MOZ_AUDIO_CHANNEL_MANAGER']:
  98. LOCAL_INCLUDES += [
  99. '/dom/system/gonk',
  100. ]
  101. FINAL_LIBRARY = 'xul'
  102. SPHINX_TREES['webidl'] = 'docs'
  103. SPHINX_PYTHON_PACKAGE_DIRS += ['mozwebidlcodegen']
  104. if CONFIG['MOZ_PHOENIX'] or CONFIG['MOZ_XULRUNNER']:
  105. # This is needed for Window.webidl
  106. DEFINES['HAVE_SIDEBAR'] = True
  107. PYTHON_UNIT_TESTS += [
  108. 'mozwebidlcodegen/test/test_mozwebidlcodegen.py',
  109. ]
  110. if CONFIG['GNU_CXX']:
  111. CXXFLAGS += ['-Wno-error=shadow']
  112. if CONFIG['COMPILE_ENVIRONMENT']:
  113. GENERATED_FILES += ['CSS2Properties.webidl']
  114. css_props = GENERATED_FILES['CSS2Properties.webidl']
  115. css_props.script = 'GenerateCSS2PropertiesWebIDL.py:generate'
  116. css_props.inputs = [
  117. '/dom/webidl/CSS2Properties.webidl.in',
  118. '/layout/style/PythonCSSProps.h',
  119. ]