media/libpng/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libpng/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,48 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +EXPORTS += [
    1.11 +    'mozpngconf.h',
    1.12 +    'png.h',
    1.13 +    'pngconf.h'
    1.14 +]
    1.15 +
    1.16 +UNIFIED_SOURCES += [
    1.17 +    'png.c',
    1.18 +    'pngerror.c',
    1.19 +    'pngget.c',
    1.20 +    'pngmem.c',
    1.21 +    'pngpread.c',
    1.22 +    'pngread.c',
    1.23 +    'pngrio.c',
    1.24 +    'pngrtran.c',
    1.25 +    'pngrutil.c',
    1.26 +    'pngset.c',
    1.27 +    'pngtrans.c',
    1.28 +    'pngwio.c',
    1.29 +    'pngwrite.c',
    1.30 +    'pngwutil.c'
    1.31 +]
    1.32 +
    1.33 +if CONFIG['MOZ_PNG_ARM_NEON']:
    1.34 +    DEFINES['MOZ_PNG_HAVE_ARM_NEON'] = True
    1.35 +    UNIFIED_SOURCES += [
    1.36 +        'arm/arm_init.c',
    1.37 +        'arm/filter_neon_intrinsics.c'
    1.38 +    ]
    1.39 +
    1.40 +    SOURCES += [
    1.41 +        'arm/filter_neon.S'
    1.42 +    ]
    1.43 +
    1.44 +LIBRARY_NAME = 'mozpng'
    1.45 +
    1.46 +MSVC_ENABLE_PGO = True
    1.47 +
    1.48 +if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
    1.49 +    NO_VISIBILITY_FLAGS = True
    1.50 +
    1.51 +FINAL_LIBRARY = 'gkmedias'

mercurial