moz.build 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. external_dirs = []
  6. DIRS += ['lgpllibs']
  7. if not CONFIG['MOZ_SYSTEM_JPEG']:
  8. external_dirs += ['media/libjpeg']
  9. if CONFIG['MOZ_UPDATER']:
  10. if not CONFIG['MOZ_SYSTEM_BZ2']:
  11. external_dirs += ['modules/libbz2']
  12. # There's no "native" brotli or woff2 yet, but probably in the future...
  13. external_dirs += ['modules/brotli']
  14. external_dirs += ['modules/woff2']
  15. if CONFIG['MOZ_VORBIS']:
  16. external_dirs += ['media/libvorbis']
  17. if CONFIG['MOZ_TREMOR']:
  18. external_dirs += ['media/libtremor']
  19. if CONFIG['MOZ_WEBM_ENCODER']:
  20. external_dirs += ['media/libmkv']
  21. external_dirs += ['media/libvpx']
  22. if CONFIG['MOZ_AV1']:
  23. external_dirs += ['media/libaom']
  24. external_dirs += ['media/libpng']
  25. external_dirs += ['media/libwebp']
  26. if CONFIG['CPU_ARCH'] == 'arm':
  27. external_dirs += ['media/openmax_dl']
  28. if CONFIG['MOZ_FFVPX']:
  29. external_dirs += ['media/ffvpx']
  30. external_dirs += [
  31. 'media/kiss_fft',
  32. 'media/libcubeb',
  33. 'media/libnestegg',
  34. 'media/libogg',
  35. 'media/libopus',
  36. 'media/libtheora',
  37. 'media/libspeex_resampler',
  38. 'media/libstagefright',
  39. 'media/libsoundtouch',
  40. 'media/psshparser'
  41. ]
  42. if CONFIG['MOZ_LINKER']:
  43. external_dirs += ['modules/xz-embedded']
  44. DIRS += ['../../' + i for i in external_dirs]