image/moz.build
author Jeff Walden <jwalden@mit.edu>
Fri, 12 Jun 2015 14:25:23 -0700
changeset 250763 80841ebc9acaa84a19a944e1f5b74c8d435d51f4
parent 244850 da24d90ca18780c51e061fdf4109f636e7152f88
child 254298 2ac5cb9669db666fb358be9ad5613ef71c7cac30
permissions -rw-r--r--
Bug 1075758 - Update the local patch to suppress various clang warnings in ICU. r=glandium

# -*- Mode: python; c-basic-offset: 4; 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/.

DIRS += ['build', 'decoders', 'encoders']

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

BROWSER_CHROME_MANIFESTS += ['test/browser/browser.ini']

MOCHITEST_MANIFESTS += ['test/mochitest/mochitest.ini']

MOCHITEST_CHROME_MANIFESTS += ['test/mochitest/chrome.ini']

XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']

XPIDL_SOURCES += [
    'imgICache.idl',
    'imgIContainer.idl',
    'imgIContainerDebug.idl',
    'imgIEncoder.idl',
    'imgILoader.idl',
    'imgINotificationObserver.idl',
    'imgIOnloadBlocker.idl',
    'imgIRequest.idl',
    'imgIScriptedNotificationObserver.idl',
    'imgITools.idl',
    'nsIIconURI.idl',
]

XPIDL_MODULE = 'imglib2'

EXPORTS += [
    'ImageCacheKey.h',
    'ImageLogging.h',
    'ImageOps.h',
    'ImageRegion.h',
    'imgLoader.h',
    'imgRequest.h',
    'imgRequestProxy.h',
    'IProgressObserver.h',
    'Orientation.h',
    'SurfaceCache.h',
]

UNIFIED_SOURCES += [
    'ClippedImage.cpp',
    'DecodePool.cpp',
    'Decoder.cpp',
    'DynamicImage.cpp',
    'FrameAnimator.cpp',
    'FrozenImage.cpp',
    'Image.cpp',
    'ImageCacheKey.cpp',
    'ImageFactory.cpp',
    'ImageMetadata.cpp',
    'ImageOps.cpp',
    'ImageWrapper.cpp',
    'imgFrame.cpp',
    'imgTools.cpp',
    'MultipartImage.cpp',
    'OrientedImage.cpp',
    'ScriptedNotificationObserver.cpp',
    'ShutdownTracker.cpp',
    'SourceBuffer.cpp',
    'SurfaceCache.cpp',
    'SVGDocumentWrapper.cpp',
    'VectorImage.cpp',
]
if CONFIG['MOZ_ENABLE_SKIA']:
    UNIFIED_SOURCES += [ 'Downscaler.cpp']

# These files can't be unified because of ImageLogging.h #include order issues.
SOURCES += [
    'imgLoader.cpp',
    'imgRequest.cpp',
    'imgRequestProxy.cpp',
    'ProgressTracker.cpp',
    'RasterImage.cpp',
]

FAIL_ON_WARNINGS = True

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'xul'

LOCAL_INCLUDES += [
    # Because SVGDocumentWrapper.cpp includes "mozilla/dom/SVGSVGElement.h"
    '/dom/base',
    '/dom/svg',
    # Access to Skia headers for Downscaler
    '/gfx/2d',
    # We need to instantiate the decoders
    '/image/decoders',
    # Because VectorImage.cpp includes nsSVGUtils.h and nsSVGEffects.h
    '/layout/svg',
    # For URI-related functionality
    '/netwerk/base',
    # DecodePool uses thread-related facilities.
    '/xpcom/threads',
]

# Because imgFrame.cpp includes "cairo.h"
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']