Bug 1880216 - Migrate Fenix docs into Sphinx. r=owlish,geckoview-reviewers,android...
[gecko.git] / media / libyuv / moz.build
bloba7ad7436731ce00b08c6afa16e210cacdd537734
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 with Files("**"):
8     BUG_COMPONENT = ("Core", "Graphics")
10 include('/build/gyp.mozbuild')
12 # Set gyp vars that libyuv needs when building under various analysis tools.
13 gyp_vars_copy = gyp_vars.copy()
14 if CONFIG['MOZ_VALGRIND']:
15     gyp_vars_copy.update(build_for_tool="memcheck")
16 elif CONFIG['MOZ_ASAN']:
17     gyp_vars_copy.update(build_for_tool="asan")
18 elif CONFIG['MOZ_TSAN']:
19     gyp_vars_copy.update(build_for_tool="tsan")
21 libyuv_non_unified_sources = [
22     'libyuv/source/convert.cc',
23     'libyuv/source/convert_from.cc',
24     'libyuv/source/convert_from_argb.cc',  
25     'libyuv/source/mjpeg_decoder.cc',
26     'libyuv/source/rotate_argb.cc',
27     'libyuv/source/row_common.cc',
28     'libyuv/source/scale.cc',
29     'libyuv/source/scale_common.cc',
32 GYP_DIRS += ['libyuv']
33 GYP_DIRS['libyuv'].input = 'libyuv/libyuv.gyp'
34 GYP_DIRS['libyuv'].variables = gyp_vars_copy
35 GYP_DIRS['libyuv'].sandbox_vars['FINAL_LIBRARY'] = 'xul'
36 GYP_DIRS['libyuv'].non_unified_sources += libyuv_non_unified_sources
38 # We allow warnings for third-party code that can be updated from upstream.
39 GYP_DIRS['libyuv'].sandbox_vars['COMPILE_FLAGS'] = {'WARNINGS_AS_ERRORS': []}