From b1f186df78ed14cbc8be919e7f552df2bd7561e0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 16 Feb 2018 14:13:38 -0800 Subject: [PATCH] Add mingw32.sh and mingw64.sh --- RELEASING.md | 28 +--------------------------- mingw32.sh | 22 ++++++++++++++++++++++ mingw64.sh | 22 ++++++++++++++++++++++ 3 files changed, 45 insertions(+), 27 deletions(-) create mode 100755 mingw32.sh create mode 100755 mingw64.sh diff --git a/RELEASING.md b/RELEASING.md index 1863c6e39..47d82ba10 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -35,7 +35,7 @@ HarfBuzz release walk-through checklist: a. Put contents of [this](https://drive.google.com/open?id=0B3_fQkxDZZXXbWltRGd5bjVrUDQ) on your `~/.local/i686-w64-mingw32`, - b. Run `./MING32 --with-uniscribe` script (available below) to configure harfbuzz with mingw in a subdirector (eg. winbuild/), + b. Run `../[mingw32.sh](./mingw32.sh) --with-uniscribe` script (available below) to configure harfbuzz with mingw in a subdirector (eg. winbuild/), c. make @@ -63,32 +63,6 @@ HarfBuzz release walk-through checklist: edit the tag, upload artefacts and NEWS entry and save. -## MING32 -```bash -#!/bin/bash - -target=i686-w64-mingw32 - -unset CC -unset CXX -unset CPP -unset LD -unset LDFLAGS -unset CFLAGS -unset CXXFLAGS -unset PKG_CONFIG_PATH - -# Removed -static from the following -export CFLAGS="-static-libgcc" -export CXXFLAGS="-static-libgcc -static-libstdc++" -export CPPFLAGS=-I$HOME/.local/$target/include -export LDFLAGS=-L$HOME/.local/$target/lib -export PKG_CONFIG_LIBDIR=$HOME/.local/$target/lib/pkgconfig -export PATH=$HOME/.local/$target/bin:$PATH - -../configure --build=`../config.guess` --host=$target --prefix=$HOME/.local/$target "$@" -``` - ## UPDATE.sh ```bash #!/bin/bash diff --git a/mingw32.sh b/mingw32.sh new file mode 100755 index 000000000..67744051c --- /dev/null +++ b/mingw32.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +target=i686-w64-mingw32 + +unset CC +unset CXX +unset CPP +unset LD +unset LDFLAGS +unset CFLAGS +unset CXXFLAGS +unset PKG_CONFIG_PATH + +# Removed -static from the following +export CFLAGS="-static-libgcc" +export CXXFLAGS="-static-libgcc -static-libstdc++" +export CPPFLAGS="-I$HOME/.local/$target/include -O2" +export LDFLAGS=-L$HOME/.local/$target/lib +export PKG_CONFIG_LIBDIR=$HOME/.local/$target/lib/pkgconfig +export PATH=$HOME/.local/$target/bin:$PATH + +../configure --build=`../config.guess` --host=$target --prefix=$HOME/.local/$target "$@" diff --git a/mingw64.sh b/mingw64.sh new file mode 100755 index 000000000..49a143179 --- /dev/null +++ b/mingw64.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +target=x86_64-w64-mingw32 + +unset CC +unset CXX +unset CPP +unset LD +unset LDFLAGS +unset CFLAGS +unset CXXFLAGS +unset PKG_CONFIG_PATH + +# Removed -static from the following +export CFLAGS="-static-libgcc" +export CXXFLAGS="-static-libgcc -static-libstdc++" +export CPPFLAGS="-I$HOME/.local/$target/include -O2" +export LDFLAGS=-L$HOME/.local/$target/lib +export PKG_CONFIG_LIBDIR=$HOME/.local/$target/lib/pkgconfig +export PATH=$HOME/.local/$target/bin:$PATH + +../configure --build=`../config.guess` --host=$target --prefix=$HOME/.local/$target "$@"