mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-04-05 05:04:49 +00:00
CI: fixed Windows natpmp build error
Fixes failed run https://github.com/CESNET/UltraGrid/actions/runs/3894640814/jobs/6648919900. cmd.exe script for unknown reason ceased to work, copied appropriate parts of script to our script. + use shell debug flag for the script
This commit is contained in:
9
.github/scripts/Windows/install_natpmp.sh
vendored
9
.github/scripts/Windows/install_natpmp.sh
vendored
@@ -1,8 +1,13 @@
|
||||
#!/bin/sh -eu
|
||||
#!/bin/sh -eux
|
||||
|
||||
git clone --depth 1 https://github.com/miniupnp/libnatpmp
|
||||
cd libnatpmp
|
||||
cmd /c build.bat
|
||||
|
||||
gcc -c -Wall -Os -DWIN32 -DNATPMP_STATICLIB -DENABLE_STRNATPMPERR getgateway.c
|
||||
gcc -c -Wall -Os -DWIN32 -DNATPMP_STATICLIB -DENABLE_STRNATPMPERR natpmp.c
|
||||
gcc -c -Wall -Os -DWIN32 wingettimeofday.c
|
||||
ar cr natpmp.a getgateway.o natpmp.o wingettimeofday.o
|
||||
|
||||
cp natpmp.a /usr/local/lib/libnatpmp.a
|
||||
cp natpmp_declspec.h natpmp.h /usr/local/include
|
||||
cd -
|
||||
|
||||
Reference in New Issue
Block a user