Skip to content

Commit

Permalink
Changes: moving Werror flag to one common.pri file
Browse files Browse the repository at this point in the history
RevBy: Mirek
  • Loading branch information
Anna Gadomska authored and Miroslav Safr committed Aug 19, 2010
1 parent b4fbbad commit 1ff76f1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
1 change: 0 additions & 1 deletion benchmarks/common_top.pri
Expand Up @@ -35,7 +35,6 @@ win32|macx {
LIBS += -lmeegotouchcore
}

QMAKE_CXXFLAGS += -Werror
support_files.files =
support_files.path = $$[QT_INSTALL_LIBS]/libmeegotouch-benchmarks
INSTALLS += support_files
Expand Down
13 changes: 9 additions & 4 deletions mkspecs/common.pri
Expand Up @@ -5,15 +5,20 @@ QMAKE_TARGET_PRODUCT = DirectUI
QMAKE_TARGET_DESCRIPTION = DirectUI Framework
QMAKE_TARGET_COPYRIGHT = Copyright (C) 2010 Nokia

contains( DEFINES, HAVE_N900 ) {
QMAKE_CFLAGS -= -Werror
QMAKE_CXXFLAGS -= -Werror
}

# Features
# Parts to build. Options: libs tests benchmarks demos doc debian
#M_BUILD_PARTS = libs tests benchmarks demos doc debian

#disable werrors on windows and freemantle
win32 {
} else {
contains( DEFINES, HAVE_N900 ) {
} else {
QMAKE_CFLAGS *= -Werror
QMAKE_CXXFLAGS *= -Werror
}
}

contains(TEMPLATE, app) {
DEFINES += M_APPLICATION_NAME=\\\"${QMAKE_TARGET}\\\"
Expand Down
2 changes: 0 additions & 2 deletions plainqt/style/style.pro
@@ -1,5 +1,3 @@
QMAKE_CXXFLAGS += -Werror

MROOT = ../..

include($$MROOT/mkspecs/common.pri)
Expand Down
4 changes: 1 addition & 3 deletions src/common_top.pri
Expand Up @@ -24,11 +24,9 @@ CONFIG += qt warn_on depend_includepath qmake_cache target_qt dll create_prl
!win32:CONFIG += link_pkgconfig
macx:CONFIG += lib_bundle

QMAKE_CFLAGS += -Werror

QMAKE_CXXFLAGS += -DM_EXPORTS
!win32-msvc*:QMAKE_CXXFLAGS += -Wno-long-long -pedantic
!win32:QMAKE_CXXFLAGS += -Werror -Wno-variadic-macros -fvisibility=hidden
!win32:QMAKE_CXXFLAGS += -Wno-variadic-macros -fvisibility=hidden

!win32-msvc*:LIBS += -lm -lX11
macx:LIBS -= -lX11
Expand Down
2 changes: 0 additions & 2 deletions tests/common_top.pri
Expand Up @@ -38,8 +38,6 @@ win32|macx {
LIBS += -lmeegotouchcore -lmeegotouchviews
}

QMAKE_CXXFLAGS += -Werror

support_files.files =
support_files.path = $$[QT_INSTALL_LIBS]/libmeegotouch-tests
INSTALLS += support_files

0 comments on commit 1ff76f1

Please sign in to comment.