diff options
author | Martin Herkt <lachs0r@srsfckn.biz> | 2018-07-05 20:55:53 +0200 |
---|---|---|
committer | Martin Herkt <lachs0r@srsfckn.biz> | 2018-07-05 21:33:03 +0200 |
commit | c75f98e3ab8635c95f3cf2965e039102ee07c869 (patch) | |
tree | ab69b308d818fa73f8da6c6282e624463aeaeeed /ci | |
parent | 034b33d695d6e1981b7a5b687279bb11eb55bc29 (diff) |
ci: add mingw64 targets
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/build-mingw64.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/ci/build-mingw64.sh b/ci/build-mingw64.sh new file mode 100755 index 0000000000..c60f70e421 --- /dev/null +++ b/ci/build-mingw64.sh @@ -0,0 +1,35 @@ +#!/bin/sh +set -e + +_mingw_sysroot=/usr/$TARGET/sysroot +_mingw_prefix=$_mingw_sysroot/mingw +_mingw_exec_prefix=$_mingw_prefix +_mingw_libdir=$_mingw_exec_prefix/lib +_mingw_datadir=$_mingw_prefix/share + +export PKG_CONFIG_PATH="$_mingw_libdir/pkgconfig:$_mingw_datadir/pkgconfig"; +export CC=$TARGET-gcc +export CXX=$TARGET-g++ +export AR=$TARGET-ar +export NM=$TARGET-nm +export RANLIB=$TARGET-ranlib +export CFLAGS="-O2 -mtune=intel -g -ggdb -pipe -Wall --param=ssp-buffer-size=4 -mms-bitfields -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -fstack-protector-strong -fno-ident" +export LDFLAGS="-Wl,--no-keep-memory -fstack-protector-strong" + +./bootstrap.py +./waf configure \ + --enable-static-build \ + --enable-libmpv-shared \ + --enable-lua \ + --enable-javascript \ + --enable-libarchive \ + --enable-libass \ + --enable-libbluray \ + --enable-dvdread \ + --enable-dvdnav \ + --enable-uchardet \ + --enable-vulkan \ + --enable-shaderc \ + --enable-rubberband \ + --enable-lcms2 +./waf build --verbose |