summaryrefslogtreecommitdiff
path: root/mingw.bld
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-01-19 11:31:18 -0700
committerMike Buland <eichlan@xagasoft.com>2012-01-19 11:31:18 -0700
commit09eb0733854da12146570060e84f5f7b4203e1bc (patch)
tree217986bff60af512c87688aa3309cf81ac3b4a1f /mingw.bld
parent3232d0069421a1585e7e42f503c1ed7b1910891c (diff)
downloadstage-09eb0733854da12146570060e84f5f7b4203e1bc.tar.gz
stage-09eb0733854da12146570060e84f5f7b4203e1bc.tar.bz2
stage-09eb0733854da12146570060e84f5f7b4203e1bc.tar.xz
stage-09eb0733854da12146570060e84f5f7b4203e1bc.zip
Added gats, verified in linux and win32.
Diffstat (limited to 'mingw.bld')
-rw-r--r--mingw.bld8
1 files changed, 5 insertions, 3 deletions
diff --git a/mingw.bld b/mingw.bld
index 43d1486..407047d 100644
--- a/mingw.bld
+++ b/mingw.bld
@@ -22,10 +22,11 @@ action "clean"
22 clean: targets(); 22 clean: targets();
23} 23}
24 24
25ZIPFILE = "stage-$(git describe).zip"; 25ZIPFILE = "stage-win32-$(git describe).zip";
26ZIPINPUT = [ 26ZIPINPUT = [
27 "stage.exe", 27 "stage.exe",
28 "bloodfields.stage", 28 "bloodfields.stage",
29 "demo.stage",
29 "libgcc_s_dw2-1.dll", 30 "libgcc_s_dw2-1.dll",
30 "libstdc++-6.dll", 31 "libstdc++-6.dll",
31 "stage.txt" 32 "stage.txt"
@@ -42,6 +43,7 @@ target ZIPFILE
42{ 43{
43 profile "build" 44 profile "build"
44 { 45 {
46 execute("wine strip --strip-all stage.exe");
45 execute("zip -9 ${ZIPFILE} ${ZIPINPUT}"); 47 execute("zip -9 ${ZIPFILE} ${ZIPINPUT}");
46 } 48 }
47} 49}
@@ -54,9 +56,9 @@ target "stage.exe"
54 ]; 56 ];
55 rule "winexe"; 57 rule "winexe";
56 58
57 CXXFLAGS += "-O2 -frtti -fexceptions -Wall -Ilibbu++/support/windows -Isrc"; 59 CXXFLAGS += "-O2 -frtti -fexceptions -Wall -Ilibbu++/support/windows -Isrc -Ilibgats";
58 60
59 LDFLAGS += "-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -lmingw32 -Llibbu++ -lbu++win -Llibbu++/support/windows -lbz2 -Wl,-subsystem,console"; 61 LDFLAGS += "-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -lmingw32 -Llibbu++ -lbu++win -Llibbu++/support/windows -lbz2 -Wl,-subsystem,console -Llibgats -lgatswin";
60 62
61 CXXFLAGS += "-Ilibbu++"; 63 CXXFLAGS += "-Ilibbu++";
62} 64}