summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-14 17:09:09 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-14 17:09:09 +0300
commit6045a08795de838f8f05ed86b8579288c4d8cbaf (patch)
treed69e4631528b9150f1d75a35468c9e56d9271d18 /build
parent0d0ce1a1b6a0e992a91c40dfac254fd4dfefc5a7 (diff)
downloadmanaplus-6045a08795de838f8f05ed86b8579288c4d8cbaf.tar.gz
manaplus-6045a08795de838f8f05ed86b8579288c4d8cbaf.tar.bz2
manaplus-6045a08795de838f8f05ed86b8579288c4d8cbaf.tar.xz
manaplus-6045a08795de838f8f05ed86b8579288c4d8cbaf.zip
Add build scripts for windows 64 with mingw.
Diffstat (limited to 'build')
-rwxr-xr-xbuild/winmake1
-rwxr-xr-xbuild/winmake647
-rwxr-xr-xbuild/wintests1
-rwxr-xr-xbuild/wintests645
4 files changed, 14 insertions, 0 deletions
diff --git a/build/winmake b/build/winmake
index 6080eebb9..9b36957a1 100755
--- a/build/winmake
+++ b/build/winmake
@@ -1,5 +1,6 @@
#!/bin/bash
+export CROSS="i686-w64-mingw32.shared"
export CXXFLAGS="-Wall -g1 -O5 -ffast-math -std=gnu++1z -funswitch-loops -funsafe-loop-optimizations -pipe"
source ./mingw5flags.sh
diff --git a/build/winmake64 b/build/winmake64
new file mode 100755
index 000000000..5f39d9750
--- /dev/null
+++ b/build/winmake64
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+export CROSS="x86_64-w64-mingw32.shared"
+export CXXFLAGS="-Wall -g1 -O5 -ffast-math -std=gnu++1z -funswitch-loops -funsafe-loop-optimizations -pipe"
+source ./mingw5flags.sh
+
+./win_make
diff --git a/build/wintests b/build/wintests
index c9b194f5a..d46b7ac67 100755
--- a/build/wintests
+++ b/build/wintests
@@ -1,4 +1,5 @@
#!/bin/bash
+export CROSS="i686-w64-mingw32.shared"
export CXXFLAGS="-Wall -g1 -O5 -ffast-math -std=gnu++1z -funswitch-loops -funsafe-loop-optimizations -pipe"
./win_tests
diff --git a/build/wintests64 b/build/wintests64
new file mode 100755
index 000000000..06e4f5cff
--- /dev/null
+++ b/build/wintests64
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+export CROSS="x86_64-w64-mingw32.shared"
+export CXXFLAGS="-Wall -g1 -O5 -ffast-math -std=gnu++1z -funswitch-loops -funsafe-loop-optimizations -pipe"
+./win_tests