image/decoders/moz.build
author Danilo Cesar Lemes de Paula <danilo.cesar@collabora.co.uk>
Mon, 04 May 2015 07:15:00 +0200
changeset 273955 5b146d08b2c59b69bd7349b1a1e79355886b29a2
parent 263468 4c69651be4e069a8707c6454c8f37013a18c73c1
child 276121 0b122f0b6fcfda45606c4ee6166436201578f167
permissions -rw-r--r--
Bug 1160897 - Fixing .ycm_extra_conf for Fennec. r=ehsan Looks like ycmd fails to parse the file if the -march=arm* option is given Removing it doesn't solve all YCM problems for Fennec, but it allows us to use JumpToDefinition, GetType and semantic auto-completion.

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

toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']

# The Icon Channel stuff really shouldn't live in decoders/icon, but we'll
# fix that another time.
if CONFIG['MOZ_WIDGET_GTK']:
    DIRS += ['icon/gtk', 'icon']
elif toolkit == 'qt':
    DIRS += ['icon/qt', 'icon']

if CONFIG['OS_ARCH'] == 'WINNT':
    DIRS += ['icon/win', 'icon']

if toolkit == 'cocoa':
    DIRS += ['icon/mac', 'icon']
elif toolkit == 'android':
    DIRS += ['icon/android', 'icon']

UNIFIED_SOURCES += [
    'EXIF.cpp',
    'iccjpeg.c',
    'nsBMPDecoder.cpp',
    'nsGIFDecoder2.cpp',
    'nsICODecoder.cpp',
    'nsIconDecoder.cpp',
    'nsJPEGDecoder.cpp',
    'nsPNGDecoder.cpp',
]

FAIL_ON_WARNINGS = True

# Decoders need RasterImage.h
LOCAL_INCLUDES += [
    '/image/src',
]

FINAL_LIBRARY = 'xul'