From e7ad517bb5ce59cf6e2c756455a5eacbdeaf0fc1 Mon Sep 17 00:00:00 2001 From: godric3 Date: Mon, 25 Dec 2017 23:41:26 +0100 Subject: [PATCH] fix mxe build --- .travis.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3a4668c26..3719f79c4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,9 +62,17 @@ before_script: - if [[ $TRAVIS_BRANCH != 'coverity_scan' ]]; then source $TRAVIS_BUILD_DIR/CI/get_package_name.sh; - cmake -G "Unix Makefiles" .. $VCMI_CMAKE_FLAGS + if [[ $VCMI_PLATFORM == 'mxe' ]]; + then + /usr/lib/mxe/usr/bin/i686-w64-mingw32.shared-cmake -G "Unix Makefiles" .. $VCMI_CMAKE_FLAGS -DPACKAGE_NAME_SUFFIX:STRING="$VCMI_PACKAGE_NAME_SUFFIX" -DPACKAGE_FILE_NAME:STRING="$VCMI_PACKAGE_FILE_NAME"; + else + cmake -G "Unix Makefiles" .. $VCMI_CMAKE_FLAGS + -DPACKAGE_NAME_SUFFIX:STRING="$VCMI_PACKAGE_NAME_SUFFIX" + -DPACKAGE_FILE_NAME:STRING="$VCMI_PACKAGE_FILE_NAME"; + fi + fi script: