stlink/generate_binaries.sh

29 wiersze
661 B
Bash
Czysty Zwykły widok Historia

###
# Build package with binaries for Windows
###
# Install this cross-compiler toolchain:
# sudo apt-get install mingw-w64
# x86_64
mkdir build-mingw-64
cd build-mingw-64
cmake -DCMAKE_SYSTEM_NAME=Windows \
-DTOOLCHAIN_PREFIX=x86_64-w64-mingw32 \
-DCMAKE_TOOLCHAIN_FILE=./cmake/modules/set_toolchain.cmake ..
make package
2021-04-24 20:47:02 +00:00
sudo cp dist/*.zip ../build/Release/dist
make clean
cd ..
# i686
mkdir build-mingw-32
cd build-mingw-32
cmake -DCMAKE_SYSTEM_NAME=Windows \
-DTOOLCHAIN_PREFIX=i686-w64-mingw32 \
-DCMAKE_TOOLCHAIN_FILE=./cmake/modules/set_toolchain.cmake ..
make package
2021-04-24 20:47:02 +00:00
sudo cp dist/*.zip ../build/Release/dist
make clean
cd ..