mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 23:22:36 +00:00
Add osx+cmake support to travis.
(cherry-picked from commit f53c6b84cd96fa07405ebec699262158fb3311c3)
This commit is contained in:
parent
5d8d6a94e1
commit
b53e875bc6
@ -20,16 +20,23 @@ if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|||||||
|
|
||||||
exit $BUILD_RET
|
exit $BUILD_RET
|
||||||
else
|
else
|
||||||
ln -s $HOME/build-cache/ build
|
|
||||||
|
|
||||||
./utils/travis/check_utf8.sh || exit 1
|
./utils/travis/check_utf8.sh || exit 1
|
||||||
./utils/travis/utf8_bom_dog.sh || exit 1
|
./utils/travis/utf8_bom_dog.sh || exit 1
|
||||||
|
|
||||||
"$CXX" --version
|
"$CXX" --version
|
||||||
|
if [ "$TOOL" == "scons" ]; then
|
||||||
|
ln -s $HOME/build-cache/ build
|
||||||
|
|
||||||
scons wesnoth wesnothd campaignd boost_unit_tests build=release \
|
scons wesnoth wesnothd campaignd boost_unit_tests build=release \
|
||||||
ctool="$CC" cxxtool="$CXX" cxx_std="$CXXSTD" \
|
ctool="$CC" cxxtool="$CXX" cxx_std="$CXXSTD" \
|
||||||
extra_flags_config="-pipe" opt="$OPT" strict=true \
|
extra_flags_config="-pipe" opt="$OPT" strict=true \
|
||||||
nls="$NLS" enable_lto="$LTO" jobs=2 --debug=time
|
nls="$NLS" enable_lto="$LTO" jobs=2 --debug=time
|
||||||
|
else
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_GAME=true -DENABLE_SERVER=true -DENABLE_CAMPAIGN_SERVER=true -DENABLE_TESTS=true -DENABLE_NLS=false \
|
||||||
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCXX_STD="$CXXSTD"\
|
||||||
|
-DEXTRA_FLAGS_CONFIG="-pipe" -DOPT="$OPT" -DENABLE_STRICT_COMPILATION="$STRICT" && \
|
||||||
|
make VERBOSE=1 -j2
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
docker run --volume "$HOME"/build-cache:/home/wesnoth-travis/build \
|
docker run --volume "$HOME"/build-cache:/home/wesnoth-travis/build \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user