src/astyle.pri
changeset 6 c3690ec91ef8
parent 5 627c4a0fd0e7
child 7 923ff622b8b9
equal deleted inserted replaced
5:627c4a0fd0e7 6:c3690ec91ef8
     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 root {
       
    29 
       
    30     style.CONFIG = recursive
       
    31     style.recurse = src
       
    32     style.recurse_target = astyle
       
    33     QMAKE_EXTRA_TARGETS += style
       
    34 
       
    35 } else:contains(TEMPLATE, .*subdirs$) {
       
    36 
       
    37     astyle.CONFIG += recursive
       
    38     QMAKE_EXTRA_TARGETS += astyle
       
    39 
       
    40 } else {
       
    41 
       
    42     astyle.params += --pad=oper
       
    43     astyle.params += --unpad=paren
       
    44     astyle.params += --convert-tabs
       
    45     astyle.params += --brackets=linux
       
    46     astyle.params += --break-blocks=all
       
    47     astyle.params += --indent-namespaces
       
    48     astyle.commands = astyle $$astyle.params $$HEADERS $$SOURCES
       
    49     QMAKE_EXTRA_TARGETS += astyle
       
    50 
       
    51 }