aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-02-11 01:03:23 +0000
committerMike Buland <eichlan@xagasoft.com>2012-02-11 01:03:23 +0000
commit06f34a151f59343809154268da272022994fef45 (patch)
tree304ff0a391dba216af9de735fc77a4780fd4acdb
parent4843dede4add1764ced095ecf3e41ecc3a53240e (diff)
downloadlibgats-06f34a151f59343809154268da272022994fef45.tar.gz
libgats-06f34a151f59343809154268da272022994fef45.tar.bz2
libgats-06f34a151f59343809154268da272022994fef45.tar.xz
libgats-06f34a151f59343809154268da272022994fef45.zip
Builds gatscon for windows now :)
-rw-r--r--mingw.bld33
-rw-r--r--src/gatscon/clientwidget.h1
2 files changed, 34 insertions, 0 deletions
diff --git a/mingw.bld b/mingw.bld
index dafb73d..9ed7af3 100644
--- a/mingw.bld
+++ b/mingw.bld
@@ -11,6 +11,11 @@ action "default"
11 build: [targets("header-links"), "libgatswin.a"]; 11 build: [targets("header-links"), "libgatswin.a"];
12} 12}
13 13
14action "gatscon"
15{
16 build: ["gatscon.exe"];
17}
18
14target files("src/*.h").replace("src/", "gats/") 19target files("src/*.h").replace("src/", "gats/")
15{ 20{
16 tag "header-links"; 21 tag "header-links";
@@ -39,6 +44,20 @@ target "libgatswin.a"
39 CXXFLAGS += "-I. -Ilibbu++"; 44 CXXFLAGS += "-I. -Ilibbu++";
40} 45}
41 46
47target "gatscon.exe"
48{
49 rule "winexe";
50 tag "exe";
51 input files("src/gatscon/*.cpp", "src/gatscon/*.ui", "src/gatscon/*.h",
52 "tmp/*.cpp");
53
54 CXXFLAGS += "-O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -IC:/Qt/qt-4/include/QtCore -IC:/Qt/qt-4/include/QtGui -IC:/Qt/qt-4/include/QtSvg -IC:/Qt/qt-4/include -IC:/Qt/qt-4/mkspecs/default -Ilibbu++ -Isrc/gatscon -I. -Ilibzamui/src";
55
56 LDFLAGS += "-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -LC:/Qt/qt-4/lib -Llibbu++ -lgatswin -lbu++win -L. -Llibzamui -lzamuiwin -lmingw32 -lqtmain -lQtGui4 -lQtCore4 -lQtSvg4 -lwsock32";
57
58 CXXFLAGS += "-ggdb -Itmp";
59}
60
42function cppToWinObj() 61function cppToWinObj()
43{ 62{
44 if OBJ_DIR == null then 63 if OBJ_DIR == null then
@@ -71,3 +90,17 @@ rule "wincpp"
71 execute("wine C:/MinGW/bin/g++.exe ${CXXFLAGS} -c -o ${OUTPUT} ${INPUT}", "g++"); 90 execute("wine C:/MinGW/bin/g++.exe ${CXXFLAGS} -c -o ${OUTPUT} ${INPUT}", "g++");
72 } 91 }
73} 92}
93
94rule "winexe"
95{
96 input "*.win_o";
97 profile "build"
98 {
99 if DEBUG != "true" then
100 {
101 LDFLAGS += "-Wl,-s";
102 }
103 execute("wine C:/MinGW/bin/mingw32-g++.exe -o ${OUTPUT} ${INPUT} ${LDFLAGS}");
104 }
105}
106
diff --git a/src/gatscon/clientwidget.h b/src/gatscon/clientwidget.h
index 5ff18fb..06c154d 100644
--- a/src/gatscon/clientwidget.h
+++ b/src/gatscon/clientwidget.h
@@ -1,6 +1,7 @@
1#ifndef CLIENT_WIDGET_H 1#ifndef CLIENT_WIDGET_H
2#define CLIENT_WIDGET_H 2#define CLIENT_WIDGET_H
3 3
4#include <QObject>
4#include "ui_clientwidget.h" 5#include "ui_clientwidget.h"
5#include "iobase.h" 6#include "iobase.h"
6 7