Backed out changeset 78e845d3d322 (bug 1885960) for causing xpc failures @ test_notif...
[gecko.git] / config / external / moz.build
blobf9f0113216c8ee9e846abb111f2721cc932b8fad
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 external_dirs = []
9 DIRS += [
10     "gkcodecs",
11     "lgpllibs",
12     "rlbox",
13     "sqlite",
16 if CONFIG["MOZ_USING_WASM_SANDBOXING"]:
17     DIRS += [
18         "rlbox_wasm2c_sandbox",
19         "wasm2c_sandbox_compiler",
20     ]
22 if not CONFIG["MOZ_SYSTEM_JPEG"]:
23     external_dirs += ["media/libjpeg"]
25 DIRS += [
26     "/third_party/msgpack",
27     "/third_party/sipcc",
30 # There's no "native" brotli or woff2 yet, but probably in the future...
31 external_dirs += ["modules/brotli"]
32 external_dirs += ["modules/woff2"]
34 external_dirs += ["modules/xz-embedded"]
36 if CONFIG["MOZ_VORBIS"]:
37     external_dirs += ["media/libvorbis"]
39 if not CONFIG["MOZ_SYSTEM_LIBVPX"]:
40     external_dirs += ["media/libvpx"]
42 if CONFIG["MOZ_AV1"]:
43     external_dirs += ["media/libaom"]
44     external_dirs += ["media/libdav1d"]
46 if not CONFIG["MOZ_SYSTEM_PNG"]:
47     external_dirs += ["media/libpng"]
49 if not CONFIG["MOZ_SYSTEM_WEBP"]:
50     external_dirs += ["media/libwebp"]
52 external_dirs += ["media/ffvpx"]
54 if CONFIG["MOZ_JXL"]:
55     external_dirs += ["media/libjxl", "media/highway"]
57 external_dirs += [
58     "media/libcubeb",
59     "media/libmkv",
60     "media/libnestegg",
61     "media/libogg",
62     "media/libopus",
63     "media/libtheora",
64     "media/libspeex_resampler",
65     "media/libsoundtouch",
66     "media/mp4parse-rust",
67     "media/psshparser",
70 DIRS += ["../../" + i for i in external_dirs]