1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

fix mxe build

This commit is contained in:
godric3 2017-12-25 23:41:26 +01:00 committed by Alexander Shishkin
parent a209d10f23
commit e7ad517bb5

View File

@ -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: