gfx/ycbcr/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/ycbcr/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,72 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +EXPORTS += [
    1.11 +    'chromium_types.h',
    1.12 +    'ycbcr_to_rgb565.h',
    1.13 +    'YCbCrUtils.h',
    1.14 +    'yuv_convert.h',
    1.15 +    'yuv_row.h',
    1.16 +]
    1.17 +
    1.18 +UNIFIED_SOURCES += [
    1.19 +    'ycbcr_to_rgb565.cpp',
    1.20 +    'YCbCrUtils.cpp',
    1.21 +    'yuv_convert.cpp',
    1.22 +    'yuv_row_c.cpp',
    1.23 +    'yuv_row_table.cpp',
    1.24 +]
    1.25 +
    1.26 +if CONFIG['INTEL_ARCHITECTURE']:
    1.27 +    # These files use MMX and SSE2 intrinsics, so they need special compile flags
    1.28 +    # on some compilers.
    1.29 +    SOURCES += ['yuv_convert_sse2.cpp']
    1.30 +    SOURCES['yuv_convert_sse2.cpp'].flags += CONFIG['SSE2_FLAGS']
    1.31 +
    1.32 +    # MSVC doesn't support MMX when targeting AMD64.
    1.33 +    if CONFIG['_MSC_VER']:
    1.34 +        if CONFIG['OS_TEST'] != 'x86_64':
    1.35 +            SOURCES += [
    1.36 +                'yuv_convert_mmx.cpp',
    1.37 +            ]
    1.38 +    else:
    1.39 +        SOURCES += ['yuv_convert_mmx.cpp']
    1.40 +        SOURCES['yuv_convert_mmx.cpp'].flags += CONFIG['MMX_FLAGS']
    1.41 +
    1.42 +if CONFIG['_MSC_VER']:
    1.43 +    if CONFIG['OS_TEST'] == 'x86_64':
    1.44 +        if CONFIG['_MSC_VER'] == '1400':
    1.45 +            # VC8 doesn't support some SSE2 built-in functions
    1.46 +            SOURCES += [
    1.47 +                'yuv_row_win.cpp',
    1.48 +            ]
    1.49 +        else:
    1.50 +            SOURCES += [
    1.51 +                'yuv_row_win64.cpp',
    1.52 +            ]
    1.53 +    else:
    1.54 +        SOURCES += [
    1.55 +            'yuv_row_win.cpp',
    1.56 +        ]
    1.57 +elif CONFIG['OS_ARCH'] in ('Linux', 'SunOS', 'Darwin', 'DragonFly',
    1.58 +                           'FreeBSD', 'NetBSD', 'OpenBSD'):
    1.59 +    SOURCES += [
    1.60 +        'yuv_row_posix.cpp',
    1.61 +    ]
    1.62 +else:
    1.63 +    SOURCES += [
    1.64 +        'yuv_row_other.cpp',
    1.65 +    ]
    1.66 +
    1.67 +if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['HAVE_ARM_NEON']:
    1.68 +    SOURCES += [
    1.69 +        'yuv_row_arm.s',
    1.70 +    ]
    1.71 +    SOURCES += [
    1.72 +        'yuv_convert_arm.cpp',
    1.73 +    ]
    1.74 +
    1.75 +FINAL_LIBRARY = 'xul'

mercurial