-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configuration - update FFmpeg building scripts
- Loading branch information
Showing
3 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# Small help to build dav1d for MinGW [for sView project] | ||
# https://code.videolan.org/videolan/dav1d | ||
|
||
# go to the script directory | ||
aScriptPath=${BASH_SOURCE%/*}; if [ -d "${aScriptPath}" ]; then cd "$aScriptPath"; fi; aScriptPath="$PWD"; | ||
aSrcRoot=$aScriptPath | ||
|
||
buildProject () { | ||
aPrefix=$1 | ||
aBuildRoot="$aSrcRoot/build" | ||
aBuildPath="$aBuildRoot/dav1d-${aPrefix}-make" | ||
aDistPath="$aBuildRoot/dav1d-${aPrefix}" | ||
rm -f -r "$aBuildPath" | ||
rm -f -r "$aDistPath" | ||
rm -f -r "$aBuildRoot/dav1d-${aPrefix}.7z" | ||
|
||
meson setup "${aBuildPath}" --cross-file=package/crossfiles/${aPrefix}.meson --default-library=static --prefix=$aDistPath | ||
pushd "${aBuildPath}" | ||
ninja | ||
ninja install | ||
popd | ||
} | ||
|
||
set -o pipefail | ||
buildProject "i686-w64-mingw32" | ||
buildProject "x86_64-w64-mingw32" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# Small help to build libopenjpeg for MinGW [for sView project] | ||
# https://www.openjpeg.org/ | ||
|
||
# go to the script directory | ||
aScriptPath=${BASH_SOURCE%/*}; if [ -d "${aScriptPath}" ]; then cd "$aScriptPath"; fi; aScriptPath="$PWD"; | ||
aSrcRoot=$aScriptPath | ||
|
||
buildProject () { | ||
aPrefix=$1 | ||
aBuildRoot="$aSrcRoot/build" | ||
aBuildPath="$aBuildRoot/openjpeg-${aPrefix}-make" | ||
aDistPath="$aBuildRoot/openjpeg-${aPrefix}" | ||
rm -f -r "$aBuildPath" | ||
rm -f -r "$aDistPath" | ||
rm -f -r "$aBuildRoot/openjpeg-${aPrefix}.7z" | ||
cmake -G "Ninja" \ | ||
-D CMAKE_TOOLCHAIN_FILE="~/develop/${aPrefix}.cmake" \ | ||
-D CMAKE_BUILD_TYPE:STRING="Release" \ | ||
-D CMAKE_INSTALL_PREFIX:PATH="$aDistPath" \ | ||
-D BUILD_SHARED_LIBS:BOOL="OFF" \ | ||
-B "$aBuildPath" -S "$aSrcRoot" | ||
|
||
cmake --build "$aBuildPath" --config Release --target clean | ||
cmake --build "$aBuildPath" --config Release | ||
cmake --build "$aBuildPath" --config Release --target install | ||
|
||
cp -f "$aSrcRoot/LICENSE" "$aDistPath" | ||
cp -f "$aSrcRoot/README.md" "$aDistPath" | ||
7za a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on "$aBuildRoot/openjpeg-${aPrefix}.7z" "$aDistPath" | ||
} | ||
|
||
set -o pipefail | ||
buildProject "i686-w64-mingw32" | ||
buildProject "x86_64-w64-mingw32" |