media/libpng/moz.build
author cku <cku@mozilla.com>
Mon, 15 May 2017 19:42:57 -0500
changeset 406618 1b51aa9afd06b56998da103ae853db5cac04ad8f
parent 396927 a6fe49ad11cbe5dfca3b172f2a71750de9e47b29
child 408194 5ef43ba36c8c519ed91d5136389cfa89d92f05a2
permissions -rw-r--r--
servo: Merge #16864 - Stylo: Change mask-repeat initial value from no-repeat to repeat (from CJKu:bug-1364273); r=heycam <!-- Please describe your changes on the following line: --> Change mask-repeat initial value from no-repeat to repeat. Gecko bug link: https://bugzilla.mozilla.org/show_bug.cgi?id=1364273 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 5403c2fff0877ba8833262fde191a3e205ddd247

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

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

EXPORTS += [
    'png.h',
    'pngconf.h',
    'pnglibconf.h'
]

UNIFIED_SOURCES += [
    'png.c',
    'pngerror.c',
    'pngget.c',
    'pngmem.c',
    'pngpread.c',
    'pngread.c',
    'pngrio.c',
    'pngrtran.c',
    'pngrutil.c',
    'pngset.c',
    'pngtrans.c',
    'pngwio.c',
    'pngwrite.c',
    'pngwutil.c'
]

if CONFIG['CPU_ARCH'] == 'arm':
    DEFINES['MOZ_PNG_USE_ARM_NEON'] = True
    UNIFIED_SOURCES += [
        'arm/arm_init.c',
        'arm/filter_neon_intrinsics.c'
    ]

    SOURCES += [
        'arm/filter_neon.S'
    ]

if CONFIG['INTEL_ARCHITECTURE']:
    DEFINES['MOZ_PNG_USE_INTEL_SSE'] = True
    UNIFIED_SOURCES += [
        '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'
    ]

Library('mozpng')

FINAL_LIBRARY = 'gkmedias'

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