summaryrefslogtreecommitdiffstats
path: root/media/libyuv/moz.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /media/libyuv/moz.build
parentInitial commit. (diff)
downloadfirefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz
firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'media/libyuv/moz.build')
-rw-r--r--media/libyuv/moz.build38
1 files changed, 38 insertions, 0 deletions
diff --git a/media/libyuv/moz.build b/media/libyuv/moz.build
new file mode 100644
index 0000000000..3121978937
--- /dev/null
+++ b/media/libyuv/moz.build
@@ -0,0 +1,38 @@
+# -*- 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['COMPILE_FLAGS'] = {'WARNINGS_AS_ERRORS': []}