mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-04-29 22:24:28 +02:00
35 lines
657 B
Bash
Executable File
35 lines
657 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_REPO="https://github.com/mm2/Little-CMS.git"
|
|
SCRIPT_COMMIT="f1060e7989a68f62dd3876aa7d755d974ffd9a3a"
|
|
|
|
ffbuild_enabled() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
mkdir build && cd build
|
|
|
|
local myconf=(
|
|
--prefix="$FFBUILD_PREFIX"
|
|
-Ddefault_library=static
|
|
-Dutils=false
|
|
-Dsamples=false
|
|
-Dfastfloat=true
|
|
-Dthreaded=true
|
|
)
|
|
|
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
|
myconf+=(
|
|
--cross-file=/cross.meson
|
|
)
|
|
else
|
|
echo "Unknown target"
|
|
return -1
|
|
fi
|
|
|
|
meson "${myconf[@]}" ..
|
|
ninja -j$(nproc)
|
|
ninja install
|
|
}
|