Difference between
modified post 8b06f0c by Anonymous on Tue 20th Jun 2023 17:19
original post af0cb23da by Anonymous on Tue 30th May 2023 11:26
Download diff
Show
old version |
new version |
both versions
| 1 | 1 | #!/bin/bash | |
| 2 | 2 | ||
| 3 | 3 | # | |
| 4 | 4 | # buildrdecygwin.bash - build ROVEMA RDE using Cygwin | |
| 5 | 5 | # | |
| 6 | 6 | ||
| 7 | 7 | set -o errexit | |
| 8 | 8 | set -o nounset # debug | |
| 9 | 9 | set -o xtrace | |
| 10 | 10 | ||
| 11 | + | printf $"%s: Start ...\n" "$0" | |
| 13 | 12 | ||
| 14 | - | git_rde_dependicies_dir='/cygdrive/c/cygwin64/home/roland.mainz/work/rde/bins/Dependencies/win/' | |
| 13 | + | # | |
| 14 | + | # Configuration paths | |
| 15 | 18 | ||
| 19 | + | git_rde_dependicies_dir='/cygdrive/h/tmp/winnfstest/hummingbirdnfstest1/rde_windows_developmement/Dependencies/win/' | |
| 16 | 22 | boostpath="${git_rde_dependicies_dir}/boost/boost_${boost_Version}/" | |
| 17 | 23 | qtpath="${git_rde_dependicies_dir}/qt/qt_${qt_Version}/" | |
| 18 | 24 | ||
| 19 | 25 | printf $"# building with boost version %s and qt version %s\n" "$boost_Version" "qt_Version" | |
| 20 | 26 | ||
| 21 | - | export PATH="$qtpath/Tools/mingw810_64/bin:$qtpath/5.15.2/mingw81_64/bin:$qtpath/Tools/CMake_64/bin:$boostpath/bin:$boostpath/lib:$PATH" | |
| 27 | + | # | |
| 28 | + | # Setting-up PATH | |
| 22 | 30 | ||
| 23 | - | printf $"# Probing PATH for tools...\n" | |
| 31 | + | export PATH="$qtpath/Tools/mingw810_64/bin/:$qtpath/5.15.2/mingw81_64/bin/:$qtpath/Tools/CMake_64/bin/:$boostpath/bin/:$boostpath/lib/:$PATH" | |
| 26 | 32 | ||
| 27 | - | printf $"mkdir \$(Build.SourcesDirectory)\build | cd build\n" | |
| 33 | + | printf $"# PATH=%s\n# Windows PATH=%s\n" "$PATH" "$(cygpath -p -w "$PATH")" | |
| 34 | + | printf $"# Probing PATH for tools ...\n" | |
| 28 | 39 | ||
| 29 | - | printf "# Running build configuration via cmake\n" | |
| 40 | + | # | |
| 30 | - | cmake -G "MinGW Makefiles" -DBOOST_ROOT="$boostpath" -DBoost_LIB_PREFIX="lib" -DBoost_USE_STATIC_LIBS=TRUE -DBoost_ARCHITECTURE="-x64" -DBUILD_TESTS=ON ".." | |
| 41 | + | # Build | |
| 42 | + | # | |
| 31 | 43 | ||
| 32 | - | printf $"# Building..." | |
| 44 | + | printf "# Cleanup old build stuff ...\n" | |
| 33 | - | cmake --build . -j 1 | |
| 45 | + | rm -Rf CMake* CPack* CTestTestfile.cmake app_translations.qrc cmake_install.cmake nowide tests RDS Makefile | |
| 34 | 46 | ||
| 35 | - | echo "finished cmake" | |
| 47 | + | printf "# Running build configuration via cmake ...\n" | |
| 48 | + | # note: Windows/minGW uses '-G "MinGW Makefiles"', while compiling with Cygwin requires '-G "Unix Makefiles"' | |
| 36 | 50 | ||
| 51 | + | printf $"# Target clean ..." | |
| 37 | 53 | ||
| 38 | - | # EOF. | |
| 54 | + | printf $"# Building ..." | |
| 55 | + | cmake --build . -j 4 | |
| 39 | 56 | ||
| 57 | + | echo $"# finished cmake." | |
| 40 | 58 | ||
| 41 | - | ||
| 59 | + | printf $"%s: Done.\n" "$0" | |
| 42 | - | ||
| 60 | + | exit 0 | |
| 43 | 61 | ||
| 44 | - | ||
| 62 | + | # EOF. | |
| 45 | 63 |
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.
rovema.kpaste.net RSS