image/src/moz.build
author James Kitchener <jkitch.bug@internode.on.net>
Tue, 20 Jan 2015 03:58:00 -0500
changeset 253625 4ec37503ea6a752baf92e053ede5f0ff7750ff36
parent 253476 c3ae3c5f147ae31374a7a0a8f72cfb41ecf9d520
child 260352 538fd67bb6377d1e2ff99a0577142f6846b3e5b0
permissions -rw-r--r--
Bug 1100184 - Flatten netwerk/base/{public,src}/ directories. r=mcmanus, r=poiru

# -*- 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/.

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

UNIFIED_SOURCES += [
    'ClippedImage.cpp',
    'DecodePool.cpp',
    'Decoder.cpp',
    'Downscaler.cpp',
    'DynamicImage.cpp',
    'FrameAnimator.cpp',
    'FrozenImage.cpp',
    'Image.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',
]

# 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',
]

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