controlpanel/tsrc/unit/ut_cpapi/ut_cpapi.pro
changeset 52 58cebe0861a8
parent 40 6465d5bb863a
child 61 33e86ecbfdb4
equal deleted inserted replaced
40:6465d5bb863a 52:58cebe0861a8
     1 #
       
     2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 # All rights reserved.
     2 # All rights reserved.
     4 # This component and the accompanying materials are made available
     3 # This component and the accompanying materials are made available
     5 # under the terms of "Eclipse Public License v1.0"
     4 # under the terms of "Eclipse Public License v1.0"
     6 # which accompanies this distribution, and is available
     5 # which accompanies this distribution, and is available
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 #
       
     9 # Initial Contributors:
     7 # Initial Contributors:
    10 # Nokia Corporation - initial contribution.
     8 # Nokia Corporation - initial contribution.
    11 #
       
    12 # Contributors:
     9 # Contributors:
    13 #
    10 # Description:
    14 # Description: 
       
    15 #
       
    16 
    11 
    17 TEMPLATE = app
    12 TEMPLATE = app
    18 TARGET = ut_cpapi
    13 TARGET = ut_cpapi
    19 QT += testlib
    14 QT += testlib
    20 CONFIG += hb qtestlib
    15 CONFIG += hb qtestlib
    21 CONFIG += symbian_test
    16 CONFIG += symbian_test
    22 unix {
    17 
    23     test.commands = /epoc32/RELEASE/WINSCW/udeb/ut_cpapi.exe
       
    24     autotest.commands = /epoc32/RELEASE/WINSCW/udeb/ut_cpapi.exe -xml -o c:/ut_cpapi.xml
       
    25 } else:win32 {
       
    26     test.CONFIG += recursive
       
    27     autotest.CONFIG += recursive
       
    28     build_pass {
       
    29         test.commands =/epoc32/RELEASE/WINSCW/udeb/ut_cpapi.exe
       
    30         autotest.commands =/epoc32/RELEASE/WINSCW/udeb/ut_cpapi.exe -xml -o c:/ut_cpapi.xml
       
    31         }
       
    32 }
       
    33 QMAKE_EXTRA_TARGETS += test autotest
    18 QMAKE_EXTRA_TARGETS += test autotest
    34 
    19 
    35 DEPENDPATH += .
    20 DEPENDPATH += .
    36 
    21 INCLUDEPATH += src/ \
    37 INCLUDEPATH += . \
    22                ../../../src/inc \
    38 							 src/\
    23                ../../../controlpanel_plat/inc
    39 							 ../../../src/inc \
       
    40 							 ../../../controlpanel_plat/inc
       
    41 							 
       
    42 LIBS += -lcpframework
    24 LIBS += -lcpframework
    43 
    25 
    44 # Input
    26 # Input
    45 HEADERS += src/ut_cpapi.h
    27 HEADERS += src/ut_cpapi.h 
    46 SOURCES += src/ut_cpapi.cpp \ 
    28 HEADERS += src/cptestview.h 
    47             src/main.cpp
    29 HEADERS += src/cptestpluginentryitem.h
       
    30 SOURCES += src/ut_cpapi.cpp
       
    31 SOURCES += src/cptestview.cpp 
       
    32 SOURCES += src/cptestpluginentryitem.cpp
    48 
    33 
    49 symbian {
    34 symbian*: { 
    50 	BLD_INF_RULES.prj_exports += "data/controlpanellog.conf C:/data/.config/ut_cpapi/controlpanellog.conf"
    35     TARGET.CAPABILITY = CAP_APPLICATION
       
    36     LIBS += -lfirstpluginfortest \
       
    37            -lsecondpluginfortest \
       
    38            -lthirdpluginfortest
       
    39     deploy.path = C:
       
    40     testdlls.sources += firstpluginfortest.dll secondpluginfortest.dll thirdpluginfortest.dll
       
    41     testdlls.path = /sys/bin
       
    42     
       
    43     testqtplugins.sources += ../pluginfortest/firstpluginfortest/qmakepluginstubs/firstpluginfortest.qtplugin \
       
    44                              ../pluginfortest/secondpluginfortest/qmakepluginstubs/secondpluginfortest.qtplugin \
       
    45                              ../pluginfortest/thirdpluginfortest/qmakepluginstubs/thirdpluginfortest.qtplugin 
       
    46     testqtplugins.path = /resource/qt/plugins/controlpanel                        
       
    47     
       
    48     DEPLOYMENT += testdlls testqtplugins
    51 }
    49 }
       
    50 
       
    51 
       
    52 
       
    53 symbian:BLD_INF_RULES.prj_exports += "data/controlpanellog.conf C:/data/.config/ut_cpapi/controlpanellog.conf"
       
    54 
       
    55 unix { 
       
    56     test.commands = /epoc32/RELEASE/WINSCW/udeb/ut_cpapi.exe
       
    57     autotest.commands = /epoc32/RELEASE/WINSCW/udeb/ut_cpapi.exe -xml -o c:/ut_cpapi.xml
       
    58 }
       
    59 else:win32 { 
       
    60     test.CONFIG += recursive
       
    61     autotest.CONFIG += recursive
       
    62     build_pass { 
       
    63         test.commands = /epoc32/RELEASE/WINSCW/udeb/ut_cpapi.exe
       
    64         autotest.commands = /epoc32/RELEASE/WINSCW/udeb/ut_cpapi.exe -xml -o c:/ut_cpapi.xml
       
    65     }
       
    66 }