Added some option specific to the mingw gcc compiler

This commit is contained in:
Paolo Cignoni cignoni 2006-12-21 18:05:27 +00:00
parent 1e5ceceea0
commit 9c02402dbc
2 changed files with 23 additions and 2 deletions

View File

@ -71,11 +71,18 @@ win32-g++{
#LIBPATH += ../../../code/lib/glew/lib/
}
# The following define is needed in gcc to remove the asserts
win32-g++:DEFINES += NDEBUG
CONFIG(debug, debug|release) {
win32-g++:release:DEFINES -= NDEBUG
}
unix{
LIBS += -L../../../code/lib/glew/lib -lGLEW
LIBS += -L../../../code/lib/glew/lib -lGLEW
QMAKE_CC = gcc
QMAKE_CXX = g++
QMAKE_LINK = gcc
CONFIG += warn_off debug_and_release
LIBS += -L../../../code/lib/glew/lib -lGLEW
}

View File

@ -29,6 +29,20 @@ QT += xml
win32-msvc.net:LIBS += ../../../../code/lib/bzip2-1.0.3/libbz2.lib
win32-msvc2005:LIBS += ../../../../code/lib/bzip2-1.0.3/libbz2.lib
win32-g++:LIBS += ../../../../code/lib/bzip2-1.0.3/libbz2.a
# The following define is needed in gcc to remove the asserts
win32-g++:DEFINES += NDEBUG
CONFIG(debug, debug|release) {
win32-g++:release:DEFINES -= NDEBUG
}
CONFIG(release, debug|release) {
win32-g++:release:QMAKE_CXXFLAGS -= -O2
win32-g++:release:QMAKE_CFLAGS -= -O2
win32-g++:release:QMAKE_CXXFLAGS += -O3 -mtune=pentium3 -ffast-math
}
# the following line is needed to avoid mismatch between
# the awful min/max macros of windows and the limits max
win32:DEFINES += NOMINMAX