Win CI scripts: create /usr/local/* if not

Ensure that /usr/local/{bin,include,lib} are created in scrips that copy
to that.

This is not problem for the CI because `.github/scripts/Windows/prepare_msys.sh`
already creates them but the scripts are standalone installers and it
can be run independently by a developer to install the particular dependency.
This commit is contained in:
Martin Pulec
2023-04-11 12:18:09 +02:00
parent 169bfee7f5
commit 96b9ff511c
2 changed files with 2 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ 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
mkdir -p /usr/local/include /usr/local/lib
cp natpmp.a /usr/local/lib/libnatpmp.a
cp natpmp_declspec.h natpmp.h /usr/local/include
cd -

View File

@@ -2,6 +2,7 @@
# Install SPOUT
git clone --depth 1 https://github.com/leadedge/Spout2.git
mkdir -p /usr/local/bin /usr/local/include /usr/local/lib
cp Spout2/BUILD/Binaries/x64/SpoutLibrary.dll /usr/local/bin
cp Spout2/BUILD/Binaries/x64/SpoutLibrary.lib /usr/local/lib
cp Spout2/SPOUTSDK/SpoutLibrary/SpoutLibrary.h /usr/local/include