Skip to content

Commit 98ea3d6

Browse files
committed
Add Meson and Ninja dependencies for dav1d compilation; enhance host machine build condition in prepare.php
1 parent 3960ebf commit 98ea3d6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

prepare.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232

3333
// Compile directly on the host machine, not in the docker container
34-
if ($p->getInputOption('without-docker') || $p->isMacos()) {
34+
if ($p->getInputOption('without-docker') || ($p->isMacos()) || ($p->isLinux() && is_file('/.dockerenv'))) {
3535
$p->setWorkDir(__DIR__);
3636
$p->setBuildDir(__DIR__ . '/thirdparty');
3737
}

sapi/docker/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ RUN apk add libc++-static libltdl-static
1919
RUN apk add python3
2020
# Compiling AOM requires the use of NASM/YASM assembly compiler
2121
RUN apk add nasm
22+
# Compiling dav1d requires the use of Meson and Ninja tools
23+
RUN apk add meson ninja
2224
WORKDIR /work

0 commit comments

Comments
 (0)