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/.
15 if CONFIG["MOZ_USING_WASM_SANDBOXING"]:
17 "rlbox_wasm2c_sandbox",
18 "wasm2c_sandbox_compiler",
21 if not CONFIG["MOZ_SYSTEM_JPEG"]:
22 external_dirs += ["media/libjpeg"]
25 "/third_party/msgpack",
29 if CONFIG["MOZ_ICU4X"]:
32 # There's no "native" brotli or woff2 yet, but probably in the future...
33 external_dirs += ["modules/brotli"]
34 external_dirs += ["modules/woff2"]
36 external_dirs += ["modules/xz-embedded"]
38 if CONFIG["MOZ_VORBIS"]:
39 external_dirs += ["media/libvorbis"]
41 if CONFIG["MOZ_TREMOR"]:
42 external_dirs += ["media/libtremor"]
44 if not CONFIG["MOZ_SYSTEM_LIBVPX"]:
45 external_dirs += ["media/libvpx"]
48 external_dirs += ["media/libaom"]
49 external_dirs += ["media/libdav1d"]
51 if not CONFIG["MOZ_SYSTEM_PNG"]:
52 external_dirs += ["media/libpng"]
54 if not CONFIG["MOZ_SYSTEM_WEBP"]:
55 external_dirs += ["media/libwebp"]
57 if CONFIG["CPU_ARCH"] == "arm":
58 external_dirs += ["media/openmax_dl/dl"]
60 if CONFIG["MOZ_FFVPX"]:
61 external_dirs += ["media/ffvpx"]
64 external_dirs += ["media/libjxl", "media/highway"]
74 "media/libspeex_resampler",
75 "media/libsoundtouch",
76 "media/mp4parse-rust",
80 DIRS += ["../../" + i for i in external_dirs]