Bug 1673285 - Enable Wasm sandboxing for SoundTouch. r=glandium

Part of patch 4 and patch 5 from previous effort.

Differential Revision: https://phabricator.services.mozilla.com/D183628
This commit is contained in:
Willy R. Vasquez 2023-08-29 06:26:34 +00:00
Родитель bb50d4a28b
Коммит 13fb7e7835
2 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@ -100,6 +100,18 @@ if CONFIG["MOZ_WASM_SANDBOXING_WOFF2"]:
WASM_SOURCES += ["/modules/woff2/" + s for s in woff2_sources]
LOCAL_INCLUDES += ["/modules/woff2/include"]
if CONFIG["MOZ_WASM_SANDBOXING_SOUNDTOUCH"]:
include("/media/libsoundtouch/src/sources.mozbuild")
WASM_SOURCES += ["/media/libsoundtouch/src/" + s for s in soundtouch_sources]
if CONFIG["MOZ_SAMPLE_TYPE_FLOAT32"]:
WASM_DEFINES["MOZ_SAMPLE_TYPE_FLOAT32"] = 1
for k, v in soundtouch_defines:
WASM_DEFINES[k] = v
LOCAL_INCLUDES += ["/media/libsoundtouch"]
# Ideally we'd also list rlbox.wasm.h as an output, but that would put the
# generation in export rather than pre-compile, and we prefer the latter.
GeneratedFile(

Просмотреть файл

@ -2475,6 +2475,7 @@ def wasm_sandboxing_libraries():
"hunspell",
"expat",
"woff2",
"soundtouch",
)