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/.
8 BUG_COMPONENT = ("Core", "Graphics: ImageLib")
33 if CONFIG['TARGET_CPU'] == 'arm' or CONFIG['TARGET_CPU'] == 'aarch64':
34 DEFINES['MOZ_PNG_USE_ARM_NEON'] = True
37 'arm/filter_neon_intrinsics.c',
38 'arm/palette_neon_intrinsics.c'
41 if CONFIG['TARGET_CPU'] == 'arm':
46 if CONFIG['INTEL_ARCHITECTURE']:
47 DEFINES['MOZ_PNG_USE_INTEL_SSE'] = True
49 'intel/filter_sse2_intrinsics.c',
53 if CONFIG['TARGET_CPU'] in ('mips32', 'mips64'):
54 DEFINES['MOZ_PNG_USE_MIPS_MSA'] = True
56 'mips/filter_mmi_inline_assembly.c',
57 'mips/filter_msa_intrinsics.c',
61 if CONFIG['HAVE_ALTIVEC']:
62 DEFINES['MOZ_PNG_USE_POWERPC'] = True
64 'powerpc/filter_vsx_intrinsics.c',
65 'powerpc/powerpc_init.c'
68 if CONFIG['MOZ_TREE_FREETYPE']:
69 DEFINES['FT_CONFIG_OPTION_USE_PNG'] = True
73 FINAL_LIBRARY = 'gkmedias'
75 # We allow warnings for third-party code that can be updated from upstream.
76 AllowCompilerWarnings()
78 if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
79 CFLAGS += ['-std=gnu89']