src/hbcommon.pri
changeset 0 16d8024aca5e
child 1 f7ac710697a9
equal deleted inserted replaced
-1:000000000000 0:16d8024aca5e
       
     1 #
       
     2 #############################################################################
       
     3 ##
       
     4 ## Copyright (C) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     5 ## All rights reserved.
       
     6 ## Contact: Nokia Corporation (developer.feedback@nokia.com)
       
     7 ##
       
     8 ## This file is part of the UI Extensions for Mobile.
       
     9 ##
       
    10 ## GNU Lesser General Public License Usage
       
    11 ## This file may be used under the terms of the GNU Lesser General Public
       
    12 ## License version 2.1 as published by the Free Software Foundation and
       
    13 ## appearing in the file LICENSE.LGPL included in the packaging of this file.
       
    14 ## Please review the following information to ensure the GNU Lesser General
       
    15 ## Public License version 2.1 requirements will be met:
       
    16 ## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
       
    17 ##
       
    18 ## In addition, as a special exception, Nokia gives you certain additional
       
    19 ## rights.  These rights are described in the Nokia Qt LGPL Exception
       
    20 ## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
       
    21 ##
       
    22 ## If you have questions regarding the use of this file, please contact
       
    23 ## Nokia at developer.feedback@nokia.com.
       
    24 ##
       
    25 #############################################################################
       
    26 #
       
    27 
       
    28 # Treat warnings as errors
       
    29 !symbian:unix|*-g++:QMAKE_CXXFLAGS += -Werror
       
    30 win32-msvc*:QMAKE_CXXFLAGS += /WX
       
    31 
       
    32 # Do not define obj/moc/rcc/uic dirs on Symbian
       
    33 # because it causes builds troubles
       
    34 !symbian {
       
    35 
       
    36     # Do not define obj/moc/rcc/uic dirs on Unix when building
       
    37     # with coverage support because it confuses GCOV
       
    38     !unix:!coverage {
       
    39 
       
    40         CONFIG(release, debug|release) {
       
    41             MOC_DIR = release/moc
       
    42             OBJECTS_DIR = release/obj
       
    43             RCC_DIR = release/rcc
       
    44             UI_DIR = release/ui
       
    45         } else {
       
    46             MOC_DIR = debug/moc
       
    47             OBJECTS_DIR = debug/obj
       
    48             RCC_DIR = debug/rcc
       
    49             UI_DIR = debug/ui
       
    50         }
       
    51     }
       
    52 }
       
    53 
       
    54 # integrity check for public/private headers
       
    55 contains(TEMPLATE, .*lib$) {
       
    56     for(pubheader, $$list($$lower($$unique(PUBLIC_HEADERS)))) {
       
    57         contains(pubheader, .*_p.h$):warning($$basename(pubheader) is listed in PUBLIC_HEADERS but has a \"_p.h\" suffix.)
       
    58     }
       
    59     for(privheader, $$list($$lower($$unique(INTERNAL_HEADERS)))) {
       
    60         !contains(privheader, .*_p.h$):warning($$basename(privheader) is listed in INTERNAL_HEADERS but has no \"_p.h\" suffix.)
       
    61     }
       
    62 }
       
    63 
       
    64 # common extra targets
       
    65 include(flint.pri)
       
    66 include(astyle.pri)
       
    67 include(coverage.pri)