diff options
Diffstat (limited to 'c++-libbu++/mingw.bld')
| -rw-r--r-- | c++-libbu++/mingw.bld | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/c++-libbu++/mingw.bld b/c++-libbu++/mingw.bld index 9ed7af3..a59018f 100644 --- a/c++-libbu++/mingw.bld +++ b/c++-libbu++/mingw.bld | |||
| @@ -8,99 +8,99 @@ CXXFLAGS += "-ggdb -W -Wall"; | |||
| 8 | 8 | ||
| 9 | action "default" | 9 | action "default" |
| 10 | { | 10 | { |
| 11 | build: [targets("header-links"), "libgatswin.a"]; | 11 | build: [targets("header-links"), "libgatswin.a"]; |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | action "gatscon" | 14 | action "gatscon" |
| 15 | { | 15 | { |
| 16 | build: ["gatscon.exe"]; | 16 | build: ["gatscon.exe"]; |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | target files("src/*.h").replace("src/", "gats/") | 19 | target files("src/*.h").replace("src/", "gats/") |
| 20 | { | 20 | { |
| 21 | tag "header-links"; | 21 | tag "header-links"; |
| 22 | display "symlink"; | 22 | display "symlink"; |
| 23 | input OUTPUT.replace("gats/","src/"); | 23 | input OUTPUT.replace("gats/","src/"); |
| 24 | profile "build" | 24 | profile "build" |
| 25 | { | 25 | { |
| 26 | execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../${INPUT} ${OUTPUT}"); | 26 | execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../${INPUT} ${OUTPUT}"); |
| 27 | } | 27 | } |
| 28 | } | 28 | } |
| 29 | target files("src/compat/*.h").replace("src/", "gats/") | 29 | target files("src/compat/*.h").replace("src/", "gats/") |
| 30 | { | 30 | { |
| 31 | tag "header-links"; | 31 | tag "header-links"; |
| 32 | display "symlink"; | 32 | display "symlink"; |
| 33 | input OUTPUT.replace("gats/","src/"); | 33 | input OUTPUT.replace("gats/","src/"); |
| 34 | profile "build" | 34 | profile "build" |
| 35 | { | 35 | { |
| 36 | execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../../${INPUT} ${OUTPUT}"); | 36 | execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../../${INPUT} ${OUTPUT}"); |
| 37 | } | 37 | } |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | target "libgatswin.a" | 40 | target "libgatswin.a" |
| 41 | { | 41 | { |
| 42 | input files("src/*.cpp"); | 42 | input files("src/*.cpp"); |
| 43 | rule "lib"; | 43 | rule "lib"; |
| 44 | CXXFLAGS += "-I. -Ilibbu++"; | 44 | CXXFLAGS += "-I. -Ilibbu++"; |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | target "gatscon.exe" | 47 | target "gatscon.exe" |
| 48 | { | 48 | { |
| 49 | rule "winexe"; | 49 | rule "winexe"; |
| 50 | tag "exe"; | 50 | tag "exe"; |
| 51 | input files("src/gatscon/*.cpp", "src/gatscon/*.ui", "src/gatscon/*.h", | 51 | input files("src/gatscon/*.cpp", "src/gatscon/*.ui", "src/gatscon/*.h", |
| 52 | "tmp/*.cpp"); | 52 | "tmp/*.cpp"); |
| 53 | 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"; | 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 | 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"; | 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 | 57 | ||
| 58 | CXXFLAGS += "-ggdb -Itmp"; | 58 | CXXFLAGS += "-ggdb -Itmp"; |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | function cppToWinObj() | 61 | function cppToWinObj() |
| 62 | { | 62 | { |
| 63 | if OBJ_DIR == null then | 63 | if OBJ_DIR == null then |
| 64 | { | 64 | { |
| 65 | return INPUT.regex("\\.cpp$", ".win_o"); | 65 | return INPUT.regex("\\.cpp$", ".win_o"); |
| 66 | } | 66 | } |
| 67 | else | 67 | else |
| 68 | { | 68 | { |
| 69 | return OBJ_DIR + "/" + INPUT.fileName().regex("\\.cpp$", ".win_o"); | 69 | return OBJ_DIR + "/" + INPUT.fileName().regex("\\.cpp$", ".win_o"); |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | rule "lib" | 74 | rule "lib" |
| 75 | { | 75 | { |
| 76 | input "*.win_o"; | 76 | input "*.win_o"; |
| 77 | profile "build" | 77 | profile "build" |
| 78 | { | 78 | { |
| 79 | execute("wine C:/MinGW/bin/ar.exe cr ${OUTPUT} ${INPUT}"); | 79 | execute("wine C:/MinGW/bin/ar.exe cr ${OUTPUT} ${INPUT}"); |
| 80 | } | 80 | } |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | rule "wincpp" | 83 | rule "wincpp" |
| 84 | { | 84 | { |
| 85 | input "*.cpp"; | 85 | input "*.cpp"; |
| 86 | output INPUT.cppToWinObj(); | 86 | output INPUT.cppToWinObj(); |
| 87 | //requires getMakeDeps("wine C:/MinGW/bin/g++.exe ${CXXFLAGS} -M ${INPUT}"); | 87 | //requires getMakeDeps("wine C:/MinGW/bin/g++.exe ${CXXFLAGS} -M ${INPUT}"); |
| 88 | profile "build" | 88 | profile "build" |
| 89 | { | 89 | { |
| 90 | 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++"); |
| 91 | } | 91 | } |
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | rule "winexe" | 94 | rule "winexe" |
| 95 | { | 95 | { |
| 96 | input "*.win_o"; | 96 | input "*.win_o"; |
| 97 | profile "build" | 97 | profile "build" |
| 98 | { | 98 | { |
| 99 | if DEBUG != "true" then | 99 | if DEBUG != "true" then |
| 100 | { | 100 | { |
| 101 | LDFLAGS += "-Wl,-s"; | 101 | LDFLAGS += "-Wl,-s"; |
| 102 | } | 102 | } |
| 103 | execute("wine C:/MinGW/bin/mingw32-g++.exe -o ${OUTPUT} ${INPUT} ${LDFLAGS}"); | 103 | execute("wine C:/MinGW/bin/mingw32-g++.exe -o ${OUTPUT} ${INPUT} ${LDFLAGS}"); |
| 104 | } | 104 | } |
| 105 | } | 105 | } |
| 106 | 106 | ||
