From 06f34a151f59343809154268da272022994fef45 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 11 Feb 2012 01:03:23 +0000 Subject: Builds gatscon for windows now :) --- mingw.bld | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'mingw.bld') diff --git a/mingw.bld b/mingw.bld index dafb73d..9ed7af3 100644 --- a/mingw.bld +++ b/mingw.bld @@ -11,6 +11,11 @@ action "default" build: [targets("header-links"), "libgatswin.a"]; } +action "gatscon" +{ + build: ["gatscon.exe"]; +} + target files("src/*.h").replace("src/", "gats/") { tag "header-links"; @@ -39,6 +44,20 @@ target "libgatswin.a" CXXFLAGS += "-I. -Ilibbu++"; } +target "gatscon.exe" +{ + rule "winexe"; + tag "exe"; + input files("src/gatscon/*.cpp", "src/gatscon/*.ui", "src/gatscon/*.h", + "tmp/*.cpp"); + + 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"; + + 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"; + + CXXFLAGS += "-ggdb -Itmp"; +} + function cppToWinObj() { if OBJ_DIR == null then @@ -71,3 +90,17 @@ rule "wincpp" execute("wine C:/MinGW/bin/g++.exe ${CXXFLAGS} -c -o ${OUTPUT} ${INPUT}", "g++"); } } + +rule "winexe" +{ + input "*.win_o"; + profile "build" + { + if DEBUG != "true" then + { + LDFLAGS += "-Wl,-s"; + } + execute("wine C:/MinGW/bin/mingw32-g++.exe -o ${OUTPUT} ${INPUT} ${LDFLAGS}"); + } +} + -- cgit v1.2.3