summaryrefslogtreecommitdiffstats
path: root/media/libwebp/dsp/moz.build
blob: c00d5e140170a85a8d04862eba54832e8f2f0c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

with Files('**'):
    BUG_COMPONENT = ('Core', 'ImageLib')

SOURCES += [
    'alpha_processing.c',
    'alpha_processing_neon.c',
    'alpha_processing_sse2.c',
    'alpha_processing_sse41.c',
    'dec.c',
    'dec_clip_tables.c',
    'dec_neon.c',
    'dec_sse2.c',
    'dec_sse41.c',
    'filters.c',
    'filters_neon.c',
    'filters_sse2.c',
    'lossless.c',
    'lossless_neon.c',
    'lossless_sse2.c',
    'rescaler.c',
    'rescaler_neon.c',
    'rescaler_sse2.c',
    'upsampling.c',
    'upsampling_neon.c',
    'upsampling_sse2.c',
    'upsampling_sse41.c',
    'yuv.c',
    'yuv_neon.c',
    'yuv_sse2.c',
    'yuv_sse41.c',
]

if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['BUILD_ARM_NEON']:
    SOURCES['alpha_processing_neon.c'].flags += CONFIG['NEON_FLAGS']
    SOURCES['dec_neon.c'].flags += CONFIG['NEON_FLAGS']
    SOURCES['filters_neon.c'].flags += CONFIG['NEON_FLAGS']
    SOURCES['lossless_neon.c'].flags += CONFIG['NEON_FLAGS']
    SOURCES['rescaler_neon.c'].flags += CONFIG['NEON_FLAGS']
    SOURCES['upsampling_neon.c'].flags += CONFIG['NEON_FLAGS']
    SOURCES['yuv_neon.c'].flags += CONFIG['NEON_FLAGS']
elif CONFIG['INTEL_ARCHITECTURE']:
    SOURCES['alpha_processing_sse2.c'].flags += CONFIG['SSE2_FLAGS']
    SOURCES['alpha_processing_sse41.c'].flags += CONFIG['SSE2_FLAGS']
    SOURCES['dec_sse2.c'].flags += CONFIG['SSE2_FLAGS']
    SOURCES['dec_sse41.c'].flags += CONFIG['SSE2_FLAGS']
    SOURCES['filters_sse2.c'].flags += CONFIG['SSE2_FLAGS']
    SOURCES['lossless_sse2.c'].flags += CONFIG['SSE2_FLAGS']
    SOURCES['rescaler_sse2.c'].flags += CONFIG['SSE2_FLAGS']
    SOURCES['upsampling_sse2.c'].flags += CONFIG['SSE2_FLAGS']
    SOURCES['upsampling_sse41.c'].flags += CONFIG['SSE2_FLAGS']
    SOURCES['yuv_sse2.c'].flags += CONFIG['SSE2_FLAGS']
    SOURCES['yuv_sse41.c'].flags += CONFIG['SSE2_FLAGS']

FINAL_LIBRARY = 'gkmedias'

# We allow warnings for third-party code that can be updated from upstream.
ALLOW_COMPILER_WARNINGS = True