2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:21 +04:00
|
|
|
# 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/.
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
2013-12-13 21:31:57 +04:00
|
|
|
'YCbCrUtils.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2013-11-21 18:22:25 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2016-08-05 05:30:01 +03:00
|
|
|
'scale_yuv_argb.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'ycbcr_to_rgb565.cpp',
|
2013-12-13 21:31:57 +04:00
|
|
|
'YCbCrUtils.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'yuv_convert.cpp',
|
|
|
|
'yuv_row_c.cpp',
|
|
|
|
'yuv_row_table.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['INTEL_ARCHITECTURE']:
|
2014-03-03 00:41:32 +04:00
|
|
|
# These files use MMX and SSE2 intrinsics, so they need special compile flags
|
|
|
|
# on some compilers.
|
|
|
|
SOURCES += ['yuv_convert_sse2.cpp']
|
2014-03-20 05:55:00 +04:00
|
|
|
SOURCES['yuv_convert_sse2.cpp'].flags += CONFIG['SSE2_FLAGS']
|
2013-04-24 01:54:15 +04:00
|
|
|
|
|
|
|
# MSVC doesn't support MMX when targeting AMD64.
|
2019-02-15 00:45:27 +03:00
|
|
|
if CONFIG['CC_TYPE'] == 'clang-cl':
|
2018-07-24 23:08:56 +03:00
|
|
|
if CONFIG['CPU_ARCH'] == 'x86':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'yuv_convert_mmx.cpp',
|
|
|
|
]
|
|
|
|
else:
|
2014-03-03 00:41:32 +04:00
|
|
|
SOURCES += ['yuv_convert_mmx.cpp']
|
2014-03-20 05:55:00 +04:00
|
|
|
SOURCES['yuv_convert_mmx.cpp'].flags += CONFIG['MMX_FLAGS']
|
2013-04-24 01:54:15 +04:00
|
|
|
|
2019-02-15 00:45:27 +03:00
|
|
|
if CONFIG['CC_TYPE'] == 'clang-cl':
|
2018-11-08 22:04:11 +03:00
|
|
|
if CONFIG['CPU_ARCH'] == 'x86_64' or \
|
|
|
|
(CONFIG['CPU_ARCH'] == 'x86' and CONFIG['CC_TYPE'] == 'clang-cl'):
|
2015-01-07 20:16:14 +03:00
|
|
|
SOURCES += [
|
|
|
|
'yuv_row_win64.cpp',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
else:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'yuv_row_win.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['OS_ARCH'] in ('Linux', 'SunOS', 'Darwin', 'DragonFly',
|
|
|
|
'FreeBSD', 'NetBSD', 'OpenBSD'):
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'yuv_row_posix.cpp',
|
|
|
|
]
|
|
|
|
else:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'yuv_row_other.cpp',
|
|
|
|
]
|
|
|
|
|
2013-06-26 10:34:07 +04:00
|
|
|
if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['HAVE_ARM_NEON']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-06-26 10:34:07 +04:00
|
|
|
'yuv_row_arm.s',
|
|
|
|
]
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'yuv_convert_arm.cpp',
|
|
|
|
]
|
2013-06-17 23:21:01 +04:00
|
|
|
|
2017-02-24 22:01:56 +03:00
|
|
|
LOCAL_INCLUDES += ['/media/libyuv/libyuv/include']
|
2016-06-09 04:46:42 +03:00
|
|
|
|
2013-11-19 06:47:14 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|