media/libyuv/moz.build
author Joel Maher <jmaher@mozilla.com>
Tue, 07 Mar 2017 13:06:45 -0500
changeset 396853 699eb94693d6a7e5c52fdbc98de95f38ec762481
parent 393784 c560b9eed8b12f88686453cbb8bf52c93a31636b
child 412030 dced7b9bcc5bd8ea3bc907536f3c1665788fd9fd
permissions -rw-r--r--
Bug 1344470 - add BUG_COMPONENT to media/* files. r=padenot MozReview-Commit-ID: C7xWOE0OwIK

# -*- 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')

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
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