2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:21 +04:00
|
|
|
# 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.
|
2019-08-21 15:25:42 +03:00
|
|
|
if toolkit == "gtk":
|
2013-02-26 00:47:21 +04:00
|
|
|
DIRS += ["icon/gtk", "icon"]
|
|
|
|
|
|
|
|
if CONFIG["OS_ARCH"] == "WINNT":
|
|
|
|
DIRS += ["icon/win", "icon"]
|
|
|
|
|
|
|
|
if toolkit == "cocoa":
|
|
|
|
DIRS += ["icon/mac", "icon"]
|
|
|
|
elif toolkit == "android":
|
|
|
|
DIRS += ["icon/android", "icon"]
|
2013-03-19 22:47:00 +04:00
|
|
|
|
2013-11-19 17:19:16 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-08-25 11:19:42 +04:00
|
|
|
"EXIF.cpp",
|
2015-03-08 04:21:28 +03:00
|
|
|
"iccjpeg.c",
|
|
|
|
"nsBMPDecoder.cpp",
|
2013-04-24 01:54:15 +04:00
|
|
|
"nsGIFDecoder2.cpp",
|
|
|
|
"nsICODecoder.cpp",
|
|
|
|
"nsIconDecoder.cpp",
|
|
|
|
"nsJPEGDecoder.cpp",
|
|
|
|
"nsPNGDecoder.cpp",
|
2018-10-04 00:40:35 +03:00
|
|
|
"nsWebPDecoder.cpp",
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2020-05-04 23:30:58 +03:00
|
|
|
if CONFIG["MOZ_AV1"]:
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
"nsAVIFDecoder.cpp",
|
|
|
|
]
|
|
|
|
|
2021-05-06 05:00:57 +03:00
|
|
|
if CONFIG["MOZ_JXL"]:
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
"nsJXLDecoder.cpp",
|
|
|
|
]
|
|
|
|
|
2016-02-26 03:21:29 +03:00
|
|
|
include("/ipc/chromium/chromium-config.mozbuild")
|
|
|
|
|
2013-10-20 11:25:19 +04:00
|
|
|
LOCAL_INCLUDES += [
|
2016-02-26 03:21:29 +03:00
|
|
|
# Access to Skia headers for Downscaler.
|
|
|
|
"/gfx/2d",
|
|
|
|
# Decoders need ImageLib headers.
|
2015-05-15 06:52:05 +03:00
|
|
|
"/image",
|
2021-01-26 03:24:57 +03:00
|
|
|
# for libyuv::ARGBAttenuate and ::ARGBUnattenuate
|
|
|
|
"/media/libyuv/libyuv/include",
|
2013-10-20 11:25:19 +04:00
|
|
|
]
|
2013-11-19 06:47:14 +04:00
|
|
|
|
2016-02-26 03:21:29 +03:00
|
|
|
LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = "xul"
|
2016-05-11 10:00:01 +03:00
|
|
|
|
2021-03-19 03:58:23 +03:00
|
|
|
CXXFLAGS += ["-Werror=switch"]
|
|
|
|
|
2020-05-08 18:18:49 +03:00
|
|
|
# Add libFuzzer configuration directives
|
|
|
|
include("/tools/fuzzing/libfuzzer-config.mozbuild")
|