moz.build 865 B

1234567891011121314151617181920212223242526
  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. include('/build/gyp.mozbuild')
  6. GYP_DIRS += ['.']
  7. libyuv_non_unified_sources = [
  8. 'source/convert.cc',
  9. 'source/convert_from.cc',
  10. 'source/mjpeg_decoder.cc',
  11. 'source/rotate_argb.cc',
  12. 'source/row_common.cc',
  13. 'source/scale.cc',
  14. 'source/scale_common.cc',
  15. ]
  16. GYP_DIRS['.'].input = 'libyuv.gyp'
  17. GYP_DIRS['.'].variables = gyp_vars
  18. GYP_DIRS['.'].sandbox_vars['FINAL_LIBRARY'] = 'xul'
  19. GYP_DIRS['.'].non_unified_sources += libyuv_non_unified_sources
  20. # We allow warnings for third-party code that can be updated from upstream.
  21. GYP_DIRS['.'].sandbox_vars['ALLOW_COMPILER_WARNINGS'] = True