PKGBUILDs/cmake/mingw-w64/mingw-wine.sh
Martchus ac647e596a Make flags in mingw-w64 build wrappers configurable
- Add mingw-w64-cmake and mingw-w64-configure
- Make default build flags configurable via
  CUSTOM_MINGW_FLAGS
2016-07-13 19:39:28 +02:00

22 lines
429 B
Bash

#!/bin/sh
set -e
mingw_prefix=/usr/@TRIPLE@
# run it in a custom WINEPREFIX to not mess with default ~/.wine
# also default prefix might be a 32 bits prefix, which will fail to run x86_64 exes
if ! test -d "${WINEPREFIX}"
then
export WINEPREFIX=~/.wine-@TRIPLE@
fi
# WINEPATH is used to find dlls, otherwise they should lie next to the exe
if test -z "${WINEPATH}"
then
export WINEPATH=${mingw_prefix}/bin
fi
wine "$@"