1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/image/decoders/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,50 @@ 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 +toolkit = CONFIG['MOZ_WIDGET_TOOLKIT'] 1.11 + 1.12 +# The Icon Channel stuff really shouldn't live in decoders/icon, but we'll 1.13 +# fix that another time. 1.14 +if CONFIG['MOZ_WIDGET_GTK']: 1.15 + DIRS += ['icon/gtk', 'icon'] 1.16 +elif toolkit == 'qt': 1.17 + DIRS += ['icon/qt', 'icon'] 1.18 + 1.19 +if CONFIG['OS_ARCH'] == 'WINNT': 1.20 + DIRS += ['icon/win', 'icon'] 1.21 + 1.22 +if toolkit == 'cocoa': 1.23 + DIRS += ['icon/mac', 'icon'] 1.24 +elif toolkit == 'android': 1.25 + DIRS += ['icon/android', 'icon'] 1.26 + 1.27 +UNIFIED_SOURCES += [ 1.28 + 'EXIF.cpp', 1.29 + 'nsGIFDecoder2.cpp', 1.30 + 'nsICODecoder.cpp', 1.31 + 'nsIconDecoder.cpp', 1.32 +] 1.33 + 1.34 +# These files cannot be built in unified mode because they want to force NSPR 1.35 +# logging. 1.36 +SOURCES += [ 1.37 + 'nsBMPDecoder.cpp', 1.38 + 'nsJPEGDecoder.cpp', 1.39 + 'nsPNGDecoder.cpp', 1.40 +] 1.41 + 1.42 +FAIL_ON_WARNINGS = True 1.43 + 1.44 +SOURCES += [ 1.45 + 'iccjpeg.c', 1.46 +] 1.47 + 1.48 +# Decoders need RasterImage.h 1.49 +LOCAL_INCLUDES += [ 1.50 + '/image/src', 1.51 +] 1.52 + 1.53 +FINAL_LIBRARY = 'imglib2'