2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; 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 += [
|
|
|
|
'chromium_types.h',
|
|
|
|
'ycbcr_to_rgb565.h',
|
2013-12-13 21:31:57 +04:00
|
|
|
'YCbCrUtils.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'yuv_convert.h',
|
|
|
|
'yuv_row.h',
|
|
|
|
]
|
|
|
|
|
2013-11-21 18:22:25 +04:00
|
|
|
UNIFIED_SOURCES += [
|
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.
|
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
if CONFIG['OS_TEST'] != 'x86_64':
|
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
|
|
|
|
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
if CONFIG['OS_TEST'] == 'x86_64':
|
|
|
|
if CONFIG['_MSC_VER'] == '1400':
|
|
|
|
# VC8 doesn't support some SSE2 built-in functions
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'yuv_row_win.cpp',
|
|
|
|
]
|
|
|
|
else:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'yuv_row_win64.cpp',
|
|
|
|
]
|
|
|
|
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
|
|
|
|
2013-11-19 06:47:14 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|