mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 22:40:18 +00:00
This fixes all occurences of `cmake --build` as it already was in one case with commit HEAD~7. If omitted, CMake leaves the number of processes used on underlying implementation, which turns out to `make -j`, thus unlimited number of cores, which is undesirable.
21 lines
637 B
Bash
Executable File
21 lines
637 B
Bash
Executable File
#!/bin/sh -eux
|
|
# Install SPOUT
|
|
|
|
build() {(
|
|
cd /c
|
|
rm -rf Spout2
|
|
git clone --depth 1 https://github.com/leadedge/Spout2.git
|
|
cd Spout2
|
|
/c/Program\ Files/CMake/bin/cmake.exe -Bbuild2 . # ./BUILD already exists
|
|
/c/Program\ Files/CMake/bin/cmake.exe --build build2 -j "$(nproc)"
|
|
)}
|
|
|
|
install() {(
|
|
mkdir -p /usr/local/bin /usr/local/include /usr/local/lib
|
|
cp /c/Spout2/build2/Binaries/x64/SpoutLibrary.dll /usr/local/bin/
|
|
cp /c/Spout2/build2/Binaries/x64/SpoutLibrary.lib /usr/local/lib/
|
|
cp /c/Spout2/SPOUTSDK/SpoutLibrary/SpoutLibrary.h /usr/local/include/
|
|
)}
|
|
|
|
$1
|