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/.
16 if CONFIG["MOZ_USING_WASM_SANDBOXING"]:
18 "rlbox_wasm2c_sandbox",
19 "wasm2c_sandbox_compiler",
22 if not CONFIG["MOZ_SYSTEM_JPEG"]:
23 external_dirs += ["media/libjpeg"]
26 "/third_party/msgpack",
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"]
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 if CONFIG["TARGET_CPU"] == "arm":
53 external_dirs += ["media/openmax_dl/dl"]
55 if CONFIG["MOZ_FFVPX"]:
56 external_dirs += ["media/ffvpx"]
59 external_dirs += ["media/libjxl", "media/highway"]
69 "media/libspeex_resampler",
70 "media/libsoundtouch",
71 "media/mp4parse-rust",
75 DIRS += ["../../" + i for i in external_dirs]