mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 12:49:54 +00:00
68837aaf4a
# Conflicts: # .travis.yml # CI/before_script.linux.sh # CMakeLists.txt # apps/openmw/mwgui/containeritemmodel.cpp # apps/openmw/mwgui/tradewindow.cpp # apps/openmw/mwphysics/actor.cpp # apps/openmw/mwworld/actionteleport.cpp # apps/openmw/mwworld/containerstore.cpp
56 lines
1.6 KiB
Bash
56 lines
1.6 KiB
Bash
#!/bin/bash -ex
|
|
|
|
free -m
|
|
|
|
if [[ "${BUILD_TESTS_ONLY}" ]]; then
|
|
export GOOGLETEST_DIR="$(pwd)/googletest/build/install"
|
|
env GENERATOR='Unix Makefiles' CONFIGURATION=Release CI/build_googletest.sh
|
|
fi
|
|
|
|
mkdir build
|
|
cd build
|
|
|
|
# Set up compilers
|
|
if [ ! -z "${MATRIX_CC}" ]; then
|
|
eval "${MATRIX_CC}"
|
|
fi
|
|
|
|
export RAKNET_ROOT=~/CrabNet
|
|
|
|
if [[ "${BUILD_TESTS_ONLY}" ]]; then
|
|
${ANALYZE} cmake \
|
|
-D CMAKE_C_COMPILER="${CC}" \
|
|
-D CMAKE_CXX_COMPILER="${CXX}" \
|
|
-D CMAKE_C_COMPILER_LAUNCHER=ccache \
|
|
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
|
-D CMAKE_INSTALL_PREFIX=install \
|
|
-D CMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-D USE_SYSTEM_TINYXML=TRUE \
|
|
-D BUILD_OPENMW=OFF \
|
|
-D BUILD_OPENMW_MP=OFF \
|
|
-D BUILD_BSATOOL=OFF \
|
|
-D BUILD_ESMTOOL=OFF \
|
|
-D BUILD_LAUNCHER=OFF \
|
|
-D BUILD_BROWSER=OFF \
|
|
-D BUILD_MWINIIMPORTER=OFF \
|
|
-D BUILD_ESSIMPORTER=OFF \
|
|
-D BUILD_OPENCS=OFF \
|
|
-D BUILD_WIZARD=OFF \
|
|
-D BUILD_UNITTESTS=ON \
|
|
-D GTEST_ROOT="${GOOGLETEST_DIR}" \
|
|
-D GMOCK_ROOT="${GOOGLETEST_DIR}" \
|
|
..
|
|
else
|
|
${ANALYZE} cmake \
|
|
-D CMAKE_C_COMPILER="${CC}" \
|
|
-D CMAKE_CXX_COMPILER="${CXX}" \
|
|
-D CMAKE_C_COMPILER_LAUNCHER=ccache \
|
|
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
|
-D BUILD_OPENCS=OFF \
|
|
-D USE_SYSTEM_TINYXML=TRUE \
|
|
-D CMAKE_INSTALL_PREFIX=install \
|
|
-D CMAKE_BUILD_TYPE=Debug \
|
|
-D RakNet_LIBRARY_RELEASE=~/CrabNet/lib/libRakNetLibStatic.a \
|
|
-D RakNet_LIBRARY_DEBUG=~/CrabNet/lib/libRakNetLibStatic.a
|
|
..
|
|
fi
|