Skip to content

Commit

Permalink
.github/scripts/Windows/prepare_msys.sh: delta+gpujpeg to fn
Browse files Browse the repository at this point in the history
Moved the components to its respective functions to be consistent with
the rest of the code.
  • Loading branch information
MartinPulec committed Nov 16, 2023
1 parent 9b855d4 commit 9eab706
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/scripts/Windows/prepare_msys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ install_aja() {(
data/scripts/build_aja_lib_win64.sh
)}

# DELTACAST
if [ -n "$SDK_URL" ]; then
install_deltacast() {(
if [ -z "$SDK_URL" ]; then
return
fi
mkdir VideoMaster
cd VideoMaster
if curl -f -S "$SDK_URL/VideoMaster_SDK_Windows.zip" -O; then
Expand All @@ -87,7 +89,7 @@ if [ -n "$SDK_URL" ]; then
fi
cd ..
rm -rf VideoMaster
fi
)}

build_cineform() {
(
Expand All @@ -98,6 +100,12 @@ build_cineform() {
cp Release/CFHDCodec.dll /usr/local/bin && cp Release/CFHDCodec.lib /usr/local/lib && cp ../Common/* /usr/local/include && cp libcineformsdk.pc /usr/local/lib/pkgconfig
)
}
install_gpujpeg() {(
wget --no-verbose \
https://github.com/CESNET/GPUJPEG/releases/download/continuous/GPUJPEG.zip
unzip GPUJPEG.zip
cp -r GPUJPEG/* /usr/local
)}

install_soundfont() {
. "$GITHUB_WORKSPACE/.github/scripts/defs.sh"
Expand All @@ -111,10 +119,10 @@ install_soundfont() {

"$GITHUB_WORKSPACE/.github/scripts/Windows/install_natpmp.sh"

# Install GPUJPEG
( wget --no-verbose https://github.com/CESNET/GPUJPEG/releases/download/continuous/GPUJPEG.zip && unzip GPUJPEG.zip && cp -r GPUJPEG/* /usr/local || exit 1 )

build_cineform
install_aja
install_deltacast
install_gpujpeg
install_soundfont

0 comments on commit 9eab706

Please sign in to comment.