media/libyuv/moz.build
author Emilio Cobos Álvarez <emilio@crisal.io>
Sat, 19 Sep 2020 14:28:51 +0000
changeset 549372 ab4f6932ea8abfd45cb679568b95ec9394af6656
parent 388310 5f700fe50260b6ce9362506b02e1e5244b3c7686
permissions -rw-r--r--
Bug 1665823 - Consider display: none elements as having current style for animation-only traversal. r=hiro This is mostly a band-aid, though it also serves sorta as an optimization. The issue here is basically bug 1393323. By re-cascading, right now we can't come up with the right before-change style if CSSOM has mutated the rules. We really need a better way to come up with the before-change style, as the animation-only traversal is not really sustainable (nor fast, for that matter...). But this avoids crashing and prevents the regression easily, so let's do that for now. Differential Revision: https://phabricator.services.mozilla.com/D90700

# -*- 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': []}