aboutsummaryrefslogtreecommitdiffstats
path: root/.travis/targets/win32.sh
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-10 01:56:23 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-10 01:56:23 +0100
commitb0c1fd006da846a71fd94bfa152f6ac78d2004e9 (patch)
treebe3220e91a5078be24fb920fa9e93c959ef3d46f /.travis/targets/win32.sh
parent82d3d97920b6f460185ff25802c3a919c51d7698 (diff)
downloadblogc-b0c1fd006da846a71fd94bfa152f6ac78d2004e9.tar.gz
blogc-b0c1fd006da846a71fd94bfa152f6ac78d2004e9.tar.bz2
blogc-b0c1fd006da846a71fd94bfa152f6ac78d2004e9.zip
travis: re-add windows builds
Diffstat (limited to '.travis/targets/win32.sh')
-rw-r--r--.travis/targets/win32.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/.travis/targets/win32.sh b/.travis/targets/win32.sh
new file mode 100644
index 0000000..85a781f
--- /dev/null
+++ b/.travis/targets/win32.sh
@@ -0,0 +1,35 @@
+build() {
+ unset CC
+ pushd build > /dev/null
+ ../configure \
+ CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4" \
+ --host=i686-w64-mingw32 \
+ --target=i686-w64-mingw32 \
+ --enable-ronn \
+ --disable-silent-rules \
+ --disable-tests \
+ --disable-valgrind \
+ --disable-git-receiver \
+ --disable-make-embedded \
+ --disable-runserver
+ popd > /dev/null
+
+ make -C build blogc.exe
+
+ PN="$(grep PACKAGE_TARNAME build/config.h | cut -d\" -f2)"
+ PV="$(grep PACKAGE_VERSION build/config.h | cut -d\" -f2)"
+ DEST_DIR="${PN}-${PV}-${TARGET}"
+
+ rm -rf "${DEST_DIR}"
+ mkdir -p "${DEST_DIR}"
+
+ cp build/.libs/blogc.exe "${DEST_DIR}/"
+ cp LICENSE "${DEST_DIR}/"
+ cp README.md "${DEST_DIR}/"
+
+ zip "build/${DEST_DIR}.zip" "${DEST_DIR}"/*
+}
+
+deploy() {
+ FILES=( build/*.zip )
+}