moz.build 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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', 'Video/Audio')
  7. EXPORTS.vorbis += [
  8. 'include/vorbis/codec.h',
  9. 'include/vorbis/vorbisenc.h',
  10. ]
  11. UNIFIED_SOURCES += [
  12. 'lib/vorbis_analysis.c',
  13. 'lib/vorbis_bitrate.c',
  14. 'lib/vorbis_block.c',
  15. 'lib/vorbis_envelope.c',
  16. 'lib/vorbis_floor0.c',
  17. 'lib/vorbis_lookup.c',
  18. 'lib/vorbis_lpc.c',
  19. 'lib/vorbis_lsp.c',
  20. 'lib/vorbis_mapping0.c',
  21. 'lib/vorbis_mdct.c',
  22. 'lib/vorbis_psy.c',
  23. 'lib/vorbis_registry.c',
  24. 'lib/vorbis_sharedbook.c',
  25. 'lib/vorbis_smallft.c',
  26. 'lib/vorbis_synthesis.c',
  27. 'lib/vorbisenc.c',
  28. ]
  29. # These files can't be unified because of function redefinitions.
  30. SOURCES += [
  31. 'lib/vorbis_codebook.c',
  32. 'lib/vorbis_floor1.c',
  33. 'lib/vorbis_info.c',
  34. 'lib/vorbis_res0.c',
  35. 'lib/vorbis_window.c',
  36. ]
  37. LOCAL_INCLUDES += ['lib']
  38. if CONFIG['OS_ARCH'] == 'AIX':
  39. DEFINES['alloca'] = '__alloca'
  40. if CONFIG['OS_ARCH'] == 'SunOS':
  41. DEFINES['HAVE_ALLOCA_H'] = True
  42. if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
  43. NO_VISIBILITY_FLAGS = True
  44. # We allow warnings for third-party code that can be updated from upstream.
  45. ALLOW_COMPILER_WARNINGS = True
  46. FINAL_LIBRARY = 'gkmedias'
  47. # Suppress warnings in third-party code.
  48. if CONFIG['GNU_CC']:
  49. CFLAGS += ['-Wno-uninitialized']