You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/CI/build.msvc.sh

44 lines
861 B
Bash

#!/bin/bash
if [ -z $PLATFORM ]; then
PLATFORM=`uname -m`
fi
if [ -z $CONFIGURATION ]; then
CONFIGURATION="Debug"
fi
10 years ago
case $PLATFORM in
x32|x86|i686|i386|win32|Win32 )
BITS=32 ;;
10 years ago
x64|x86_64|x86-64|win64|Win64 )
BITS=64 ;;
* )
10 years ago
echo "Unknown platform $PLATFORM."
exit 1 ;;
esac
if [ -z $APPVEYOR ]; then
echo "Running $BITS-bit $CONFIGURATION build outside of Appveyor."
DIR=$(echo "$0" | sed "s,\\\\,/,g" | sed "s,\(.\):,/\\1,")
cd $(dirname "$DIR")/..
else
echo "Running $BITS-bit $CONFIGURATION build in Appveyor."
cd $APPVEYOR_BUILD_FOLDER
fi
cd build_$BITS
which msbuild > /dev/null
if [ $? -ne 0 ]; then
msbuild() {
/c/Program\ Files\ \(x86\)/MSBuild/12.0/Bin/MSBuild.exe "$@"
}
fi
10 years ago
msbuild OpenMW.sln //t:Build //p:Configuration=$CONFIGURATION //m:8 //logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"