2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:21 -08: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 12:24:43 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'chromium_types.h',
|
|
|
|
'ycbcr_to_rgb565.h',
|
2013-12-13 09:31:57 -08:00
|
|
|
'YCbCrUtils.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'yuv_convert.h',
|
|
|
|
'yuv_row.h',
|
|
|
|
]
|
|
|
|
|
2013-11-21 06:22:25 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'ycbcr_to_rgb565.cpp',
|
2013-12-13 09:31:57 -08:00
|
|
|
'YCbCrUtils.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'yuv_convert.cpp',
|
|
|
|
'yuv_row_c.cpp',
|
|
|
|
'yuv_row_table.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['INTEL_ARCHITECTURE']:
|
2014-03-02 12:41:32 -08:00
|
|
|
# These files use MMX and SSE2 intrinsics, so they need special compile flags
|
|
|
|
# on some compilers.
|
|
|
|
SOURCES += ['yuv_convert_sse2.cpp']
|
2014-03-19 18:55:00 -07:00
|
|
|
SOURCES['yuv_convert_sse2.cpp'].flags += CONFIG['SSE2_FLAGS']
|
2013-04-23 14:54:15 -07:00
|
|
|
|
|
|
|
# MSVC doesn't support MMX when targeting AMD64.
|
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
if CONFIG['OS_TEST'] != 'x86_64':
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'yuv_convert_mmx.cpp',
|
|
|
|
]
|
|
|
|
else:
|
2014-03-02 12:41:32 -08:00
|
|
|
SOURCES += ['yuv_convert_mmx.cpp']
|
2014-03-19 18:55:00 -07:00
|
|
|
SOURCES['yuv_convert_mmx.cpp'].flags += CONFIG['MMX_FLAGS']
|
2013-04-23 14:54:15 -07: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-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'yuv_row_win.cpp',
|
|
|
|
]
|
|
|
|
else:
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'yuv_row_win64.cpp',
|
|
|
|
]
|
|
|
|
else:
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'yuv_row_win.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['OS_ARCH'] in ('Linux', 'SunOS', 'Darwin', 'DragonFly',
|
|
|
|
'FreeBSD', 'NetBSD', 'OpenBSD'):
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'yuv_row_posix.cpp',
|
|
|
|
]
|
|
|
|
else:
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'yuv_row_other.cpp',
|
|
|
|
]
|
|
|
|
|
2013-06-25 23:34:07 -07:00
|
|
|
if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['HAVE_ARM_NEON']:
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-06-25 23:34:07 -07:00
|
|
|
'yuv_row_arm.s',
|
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'yuv_convert_arm.cpp',
|
|
|
|
]
|
2013-06-17 12:21:01 -07:00
|
|
|
|
2013-11-18 18:47:14 -08:00
|
|
|
FINAL_LIBRARY = 'xul'
|