gfx/ycbcr/moz.build
author Wes Johnston <wjohnston@mozilla.com>
Tue, 18 Jun 2013 09:39:33 -0700
changeset 135489 da161284668e4590e290635e6aa6998d50cbfc04
parent 133041 6e45e9f62d2171419a8d8780ad4779ff0488ccb5
child 135758 d4f61f0a66fd084876fc00fbbfbae9532801d29a
permissions -rw-r--r--
Bug 879482 - Use correct function when mapping results from file pickers. r=mfinkle

# -*- Mode: python; c-basic-offset: 4; 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/.

MODULE = 'ycbcr'

EXPORTS += [
    'chromium_types.h',
    'ycbcr_to_rgb565.h',
    'yuv_convert.h',
    'yuv_row.h',
]

CPP_SOURCES += [
    'ycbcr_to_rgb565.cpp',
    'yuv_convert.cpp',
    'yuv_row_c.cpp',
    'yuv_row_table.cpp',
]

if CONFIG['INTEL_ARCHITECTURE']:
    CPP_SOURCES += [
        'yuv_convert_sse2.cpp',
    ]

    # MSVC doesn't support MMX when targeting AMD64.
    if CONFIG['_MSC_VER']:
        if CONFIG['OS_TEST'] != 'x86_64':
            CPP_SOURCES += [
                'yuv_convert_mmx.cpp',
            ]
    else:
        CPP_SOURCES += [
            'yuv_convert_mmx.cpp',
        ]

if CONFIG['_MSC_VER']:
    if CONFIG['OS_TEST'] == 'x86_64':
        if CONFIG['_MSC_VER'] == '1400':
            # VC8 doesn't support some SSE2 built-in functions
            CPP_SOURCES += [
                'yuv_row_win.cpp',
            ]
        else:
            CPP_SOURCES += [
                'yuv_row_win64.cpp',
            ]
    else:
        CPP_SOURCES += [
            'yuv_row_win.cpp',
        ]
elif CONFIG['OS_ARCH'] in ('Linux', 'SunOS', 'Darwin', 'DragonFly',
                           'FreeBSD', 'NetBSD', 'OpenBSD'):
    CPP_SOURCES += [
        'yuv_row_posix.cpp',
    ]
else:
    CPP_SOURCES += [
        'yuv_row_other.cpp',
    ]

if CONFIG['OS_TEST'] == 'arm' and CONFIG['HAVE_ARM_NEON']:
    CPP_SOURCES += [
        'yuv_convert_arm.cpp',
    ]