moz.build 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. # The Icon Channel stuff really shouldn't live in decoders/icon, but we'll
  7. # fix that another time.
  8. if 'gtk' in toolkit:
  9. DIRS += ['icon/gtk', 'icon']
  10. if CONFIG['OS_ARCH'] == 'WINNT':
  11. DIRS += ['icon/win', 'icon']
  12. UNIFIED_SOURCES += [
  13. 'EXIF.cpp',
  14. 'iccjpeg.c',
  15. 'nsBMPDecoder.cpp',
  16. 'nsGIFDecoder2.cpp',
  17. 'nsICODecoder.cpp',
  18. 'nsIconDecoder.cpp',
  19. 'nsJPEGDecoder.cpp',
  20. 'nsPNGDecoder.cpp',
  21. 'nsWebPDecoder.cpp',
  22. ]
  23. include('/ipc/chromium/chromium-config.mozbuild')
  24. LOCAL_INCLUDES += [
  25. # Access to Skia headers for Downscaler.
  26. '/gfx/2d',
  27. # Decoders need ImageLib headers.
  28. '/image',
  29. ]
  30. LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
  31. FINAL_LIBRARY = 'xul'
  32. if CONFIG['GNU_CXX']:
  33. CXXFLAGS += ['-Wno-error=shadow']