msix-packaging/makelinux.sh

39 строки
610 B
Bash
Executable File

#!/bin/bash
# script to build on linux
build=MinSizeRel
usage()
{
echo "usage: makelinux [-b buildType]"
echo $'\t' "-b Build type. Default MinSizeRel"
}
printsetup()
{
echo "Build Type:" $build
}
while [ "$1" != "" ]; do
case $1 in
-b ) shift
build=$1
;;
-h ) usage
exit
;;
* ) usage
exit 1
esac
shift
done
printsetup
mkdir .vs
cd .vs
# clean up any old builds of msix modules
find . -name *msix* -d | xargs rm -r
cmake -DCMAKE_BUILD_TYPE=$build -DLINUX=on ..
make