- #!/bin/bash
- #
- # buildrdecygwin.bash - build ROVEMA RDE using Cygwin
- #
- set -o errexit
- set -o nounset # debug
- set -o xtrace
- printf $"%s: Start ...\n" "$0"
- #
- # Configuration paths
- #
- boost_Version='1_71_0'
- qt_Version='5_15_2'
- #
- # Prebuild RDE build tools (compiler etc)
- # (from $ git clone https://RovemaDevelopment@dev.azure.com/RovemaDevelopment/RDE-Development/_git/Dependencies #)
- #
- git_rde_dependicies_dir='/cygdrive/h/tmp/winnfstest/hummingbirdnfstest1/rde_windows_developmement/Dependencies/win/'
- #git_rde_dependicies_dir='/home/roland_mainz/work/rde/build_dep/Dependencies/win/'
- boostpath="${git_rde_dependicies_dir}/boost/boost_${boost_Version}/"
- qtpath="${git_rde_dependicies_dir}/qt/qt_${qt_Version}/"
- printf $"# building with boost version %s and qt version %s\n" "$boost_Version" "qt_Version"
- #
- # Setting-up PATH
- #
- export PATH="$qtpath/Tools/mingw810_64/bin/:$qtpath/5.15.2/mingw81_64/bin/:$qtpath/Tools/CMake_64/bin/:$boostpath/bin/:$boostpath/lib/:$PATH"
- printf $"# PATH=%s\n# Windows PATH=%s\n" "$PATH" "$(cygpath -p -w "$PATH")"
- printf $"# Probing PATH for tools ...\n"
- which -a gcc
- which -a g++
- which -a cmake
- which -a make
- #
- # Build
- #
- printf $"# Cleanup old build stuff ...\n"
- rm -Rf CMake* CPack* CTestTestfile.cmake app_translations.qrc cmake_install.cmake nowide tests RDS Makefile *.qm rde.rc rde_autogen tmp versioninfo.cpp
- printf $"# Running build configuration via cmake ...\n"
- # note: Windows/minGW uses '-G "MinGW Makefiles"', while compiling with Cygwin requires '-G "Unix Makefiles"'
- cmake -G "Unix Makefiles" -DBOOST_ROOT="$boostpath" -DBoost_LIB_PREFIX="lib" -DBoost_USE_STATIC_LIBS=TRUE -DBoost_ARCHITECTURE="-x64" -DBUILD_TESTS=ON ".."
- printf $"# Target clean ..."
- cmake --build . -j 1 --target clean
- printf $"# Building ..."
- cmake --build . -j 4
- #cmake --build . -j 4
- echo $"# finished cmake."
- printf $"%s: Done.\n" "$0"
- exit 0
- # EOF.
RDE: buildrdecygwin.bash
Posted by Anonymous on Fri 23rd Jun 2023 15:34
raw | new post
modification of post by Anonymous (view diff)
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.