2016-07-14 16:16:42 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:22 +00: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/.
|
|
|
|
|
2017-03-07 18:06:45 +00:00
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Core", "ImageLib")
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'png.h',
|
2014-08-22 11:11:00 +00:00
|
|
|
'pngconf.h',
|
|
|
|
'pnglibconf.h'
|
2013-04-16 19:24:43 +00:00
|
|
|
]
|
|
|
|
|
2013-11-11 16:56:58 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-06-04 15:08:44 +00:00
|
|
|
'png.c',
|
|
|
|
'pngerror.c',
|
|
|
|
'pngget.c',
|
|
|
|
'pngmem.c',
|
|
|
|
'pngpread.c',
|
|
|
|
'pngread.c',
|
|
|
|
'pngrio.c',
|
|
|
|
'pngrtran.c',
|
|
|
|
'pngrutil.c',
|
2013-07-18 14:27:21 +00:00
|
|
|
'pngset.c',
|
|
|
|
'pngtrans.c',
|
2013-06-04 15:08:44 +00:00
|
|
|
'pngwio.c',
|
|
|
|
'pngwrite.c',
|
2013-12-20 16:37:47 +00:00
|
|
|
'pngwutil.c'
|
2013-06-04 15:08:44 +00:00
|
|
|
]
|
2013-06-17 19:21:01 +00:00
|
|
|
|
2016-08-24 19:44:00 +00:00
|
|
|
if CONFIG['CPU_ARCH'] == 'arm':
|
2016-09-07 17:30:00 +00:00
|
|
|
DEFINES['MOZ_PNG_USE_ARM_NEON'] = True
|
2013-12-04 13:01:34 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-12-20 16:37:47 +00:00
|
|
|
'arm/arm_init.c',
|
|
|
|
'arm/filter_neon_intrinsics.c'
|
2013-07-18 14:27:21 +00:00
|
|
|
]
|
2013-06-17 19:21:01 +00:00
|
|
|
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-07-18 14:27:21 +00:00
|
|
|
'arm/filter_neon.S'
|
|
|
|
]
|
|
|
|
|
2016-08-11 13:50:00 +00:00
|
|
|
if CONFIG['INTEL_ARCHITECTURE']:
|
2016-09-07 17:30:00 +00:00
|
|
|
DEFINES['MOZ_PNG_USE_INTEL_SSE'] = True
|
2016-08-11 13:50:00 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2017-03-18 14:33:00 +00:00
|
|
|
'intel/filter_sse2_intrinsics.c',
|
|
|
|
'intel/intel_init.c'
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['HAVE_ALTIVEC']:
|
|
|
|
DEFINES['MOZ_PNG_USE_POWERPC'] = True
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'powerpc/filter_vsx_intrinsics.c',
|
|
|
|
'powerpc/powerpc_init.c'
|
2016-08-11 13:50:00 +00:00
|
|
|
]
|
|
|
|
|
2017-05-22 04:00:33 +00:00
|
|
|
if CONFIG['MOZ_TREE_FREETYPE']:
|
|
|
|
DEFINES['FT_CONFIG_OPTION_USE_PNG'] = True
|
|
|
|
|
2014-09-03 05:10:54 +00:00
|
|
|
Library('mozpng')
|
2013-08-22 06:56:01 +00:00
|
|
|
|
2013-11-19 02:47:14 +00:00
|
|
|
FINAL_LIBRARY = 'gkmedias'
|
2015-12-17 06:57:51 +00:00
|
|
|
|
|
|
|
# We allow warnings for third-party code that can be updated from upstream.
|
|
|
|
ALLOW_COMPILER_WARNINGS = True
|