gecko-dev/media/libyuv/moz.build
Dan Minor f7fe01502f Bug 1354350 - libyuv should not build with NVALGRIND under MOZ_VALGRIND builds; r=drno
This applies the fix from Bug 1354207 to the libyuv moz.build.

--HG--
extra : rebase_source : 006b869166a0c361fb006226a3769fb975b3dcb7
extra : amend_source : a3f9336cd38d07e37c31ec4f3f0614dee89cb1ed
2017-05-30 15:33:55 -04:00

39 lines
1.3 KiB
Python

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
with Files("**"):
BUG_COMPONENT = ("Core", "Graphics")
include('/build/gyp.mozbuild')
# Set gyp vars that libyuv needs when building under various analysis tools.
gyp_vars_copy = gyp_vars.copy()
if CONFIG['MOZ_VALGRIND']:
gyp_vars_copy.update(build_for_tool="memcheck")
elif CONFIG['MOZ_ASAN']:
gyp_vars_copy.update(build_for_tool="asan")
elif CONFIG['MOZ_TSAN']:
gyp_vars_copy.update(build_for_tool="tsan")
libyuv_non_unified_sources = [
'libyuv/source/convert.cc',
'libyuv/source/convert_from.cc',
'libyuv/source/mjpeg_decoder.cc',
'libyuv/source/rotate_argb.cc',
'libyuv/source/row_common.cc',
'libyuv/source/scale.cc',
'libyuv/source/scale_common.cc',
]
GYP_DIRS += ['libyuv']
GYP_DIRS['libyuv'].input = 'libyuv/libyuv.gyp'
GYP_DIRS['libyuv'].variables = gyp_vars_copy
GYP_DIRS['libyuv'].sandbox_vars['FINAL_LIBRARY'] = 'xul'
GYP_DIRS['libyuv'].non_unified_sources += libyuv_non_unified_sources
# We allow warnings for third-party code that can be updated from upstream.
GYP_DIRS['libyuv'].sandbox_vars['ALLOW_COMPILER_WARNINGS'] = True