1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
13 'ycbcr_to_rgb565.cpp',
20 if CONFIG['INTEL_ARCHITECTURE']:
21 # These files use MMX and SSE2 intrinsics, so they need special compile flags
23 SOURCES += ['yuv_convert_sse2.cpp']
24 SOURCES['yuv_convert_sse2.cpp'].flags += CONFIG['SSE2_FLAGS']
26 # MSVC doesn't support MMX when targeting AMD64.
27 if CONFIG['CC_TYPE'] == 'clang-cl':
28 if CONFIG['TARGET_CPU'] == 'x86':
30 'yuv_convert_mmx.cpp',
33 SOURCES += ['yuv_convert_mmx.cpp']
34 SOURCES['yuv_convert_mmx.cpp'].flags += CONFIG['MMX_FLAGS']
36 if CONFIG['CC_TYPE'] == 'clang-cl':
37 if CONFIG['TARGET_CPU'] == 'x86_64' or \
38 (CONFIG['TARGET_CPU'] == 'x86' and CONFIG['CC_TYPE'] == 'clang-cl'):
46 elif CONFIG['OS_ARCH'] in ('Linux', 'SunOS', 'Darwin', 'DragonFly',
47 'FreeBSD', 'NetBSD', 'OpenBSD'):
56 if CONFIG['TARGET_CPU'] == 'arm' and CONFIG['HAVE_ARM_NEON']:
61 'yuv_convert_arm.cpp',
64 LOCAL_INCLUDES += ['/media/libyuv/libyuv/include']