moz.build 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. DIRS += ['build', 'decoders', 'encoders']
  6. with Files('**'):
  7. BUG_COMPONENT = ('Core', 'ImageLib')
  8. BROWSER_CHROME_MANIFESTS += ['test/browser/browser.ini']
  9. MOCHITEST_MANIFESTS += ['test/mochitest/mochitest.ini']
  10. MOCHITEST_CHROME_MANIFESTS += ['test/mochitest/chrome.ini']
  11. XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
  12. XPIDL_SOURCES += [
  13. 'imgICache.idl',
  14. 'imgIContainer.idl',
  15. 'imgIContainerDebug.idl',
  16. 'imgIEncoder.idl',
  17. 'imgILoader.idl',
  18. 'imgINotificationObserver.idl',
  19. 'imgIOnloadBlocker.idl',
  20. 'imgIRequest.idl',
  21. 'imgIScriptedNotificationObserver.idl',
  22. 'imgITools.idl',
  23. 'nsIIconURI.idl',
  24. ]
  25. XPIDL_MODULE = 'imglib2'
  26. EXPORTS += [
  27. 'DrawResult.h',
  28. 'ImageCacheKey.h',
  29. 'ImageLogging.h',
  30. 'ImageOps.h',
  31. 'ImageRegion.h',
  32. 'imgLoader.h',
  33. 'imgRequest.h',
  34. 'imgRequestProxy.h',
  35. 'IProgressObserver.h',
  36. 'Orientation.h',
  37. 'SurfaceCacheUtils.h',
  38. ]
  39. UNIFIED_SOURCES += [
  40. 'AnimationSurfaceProvider.cpp',
  41. 'ClippedImage.cpp',
  42. 'DecodedSurfaceProvider.cpp',
  43. 'DecodePool.cpp',
  44. 'Decoder.cpp',
  45. 'DecoderFactory.cpp',
  46. 'DynamicImage.cpp',
  47. 'FrameAnimator.cpp',
  48. 'FrozenImage.cpp',
  49. 'IDecodingTask.cpp',
  50. 'Image.cpp',
  51. 'ImageCacheKey.cpp',
  52. 'ImageFactory.cpp',
  53. 'ImageOps.cpp',
  54. 'ImageWrapper.cpp',
  55. 'imgFrame.cpp',
  56. 'imgTools.cpp',
  57. 'MultipartImage.cpp',
  58. 'OrientedImage.cpp',
  59. 'ScriptedNotificationObserver.cpp',
  60. 'ShutdownTracker.cpp',
  61. 'SourceBuffer.cpp',
  62. 'SurfaceCache.cpp',
  63. 'SurfaceCacheUtils.cpp',
  64. 'SurfacePipe.cpp',
  65. 'SVGDocumentWrapper.cpp',
  66. 'VectorImage.cpp',
  67. ]
  68. if CONFIG['MOZ_ENABLE_SKIA']:
  69. UNIFIED_SOURCES += [ 'Downscaler.cpp']
  70. # These files can't be unified because of ImageLogging.h #include order issues.
  71. SOURCES += [
  72. 'imgLoader.cpp',
  73. 'imgRequest.cpp',
  74. 'imgRequestProxy.cpp',
  75. 'ProgressTracker.cpp',
  76. 'RasterImage.cpp',
  77. ]
  78. include('/ipc/chromium/chromium-config.mozbuild')
  79. FINAL_LIBRARY = 'xul'
  80. LOCAL_INCLUDES += [
  81. # Because SVGDocumentWrapper.cpp includes "mozilla/dom/SVGSVGElement.h"
  82. '/dom/base',
  83. '/dom/svg',
  84. # Access to Skia headers for Downscaler
  85. '/gfx/2d',
  86. # We need to instantiate the decoders
  87. '/image/decoders',
  88. # Because VectorImage.cpp includes nsSVGUtils.h and nsSVGEffects.h
  89. '/layout/svg',
  90. # For URI-related functionality
  91. '/netwerk/base',
  92. # DecodePool uses thread-related facilities.
  93. '/xpcom/threads',
  94. ]
  95. # Because imgFrame.cpp includes "cairo.h"
  96. CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
  97. LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
  98. if CONFIG['GNU_CXX']:
  99. CXXFLAGS += ['-Wno-error=shadow']