controlpanel/tsrc/unit/ut_cpapi/ut_cpapi.pro
changeset 55 4c15d9aa2384
parent 40 6465d5bb863a
child 64 5136fef23c4b
equal deleted inserted replaced
47:dbe66a66f6a9 55:4c15d9aa2384
     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 
    20 CONFIG += hb qtestlib
    15 DEPENDPATH += .
    21 CONFIG += symbian_test
    16 INCLUDEPATH += src/ \
    22 unix {
    17                ../../../src/inc \
       
    18                ../../../controlpanel_plat/inc
       
    19                
       
    20 include (../ut_common.pri)
       
    21 
       
    22 # Input
       
    23 HEADERS += src/ut_cpapi.h 
       
    24 HEADERS += src/cptestview.h 
       
    25 HEADERS += src/cptestpluginentryitem.h
       
    26 SOURCES += src/ut_cpapi.cpp
       
    27 SOURCES += src/cptestview.cpp 
       
    28 SOURCES += src/cptestpluginentryitem.cpp
       
    29 
       
    30 symbian*: { 
       
    31     TARGET.CAPABILITY = CAP_APPLICATION
       
    32     LIBS += -lfirstpluginfortest \
       
    33            -lsecondpluginfortest \
       
    34            -lthirdpluginfortest
       
    35     deploy.path = C:
       
    36     testdlls.sources += firstpluginfortest.dll secondpluginfortest.dll thirdpluginfortest.dll
       
    37     testdlls.path = /sys/bin
       
    38     
       
    39     testqtplugins.sources += ../pluginfortest/firstpluginfortest/qmakepluginstubs/firstpluginfortest.qtplugin \
       
    40                              ../pluginfortest/secondpluginfortest/qmakepluginstubs/secondpluginfortest.qtplugin \
       
    41                              ../pluginfortest/thirdpluginfortest/qmakepluginstubs/thirdpluginfortest.qtplugin 
       
    42     testqtplugins.path = /resource/qt/plugins/controlpanel                        
       
    43     
       
    44     DEPLOYMENT += testdlls testqtplugins
       
    45 }
       
    46 
       
    47 
       
    48 
       
    49 symbian:BLD_INF_RULES.prj_exports += "data/controlpanellog.conf C:/data/.config/ut_cpapi/controlpanellog.conf"
       
    50 
       
    51 unix { 
    23     test.commands = /epoc32/RELEASE/WINSCW/udeb/ut_cpapi.exe
    52     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
    53     autotest.commands = /epoc32/RELEASE/WINSCW/udeb/ut_cpapi.exe -xml -o c:/ut_cpapi.xml
    25 } else:win32 {
    54 }
       
    55 else:win32 { 
    26     test.CONFIG += recursive
    56     test.CONFIG += recursive
    27     autotest.CONFIG += recursive
    57     autotest.CONFIG += recursive
    28     build_pass {
    58     build_pass { 
    29         test.commands =/epoc32/RELEASE/WINSCW/udeb/ut_cpapi.exe
    59         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
    60         autotest.commands = /epoc32/RELEASE/WINSCW/udeb/ut_cpapi.exe -xml -o c:/ut_cpapi.xml
    31         }
    61     }
    32 }
    62 }
    33 QMAKE_EXTRA_TARGETS += test autotest
       
    34 
       
    35 DEPENDPATH += .
       
    36 
       
    37 INCLUDEPATH += . \
       
    38 							 src/\
       
    39 							 ../../../src/inc \
       
    40 							 ../../../controlpanel_plat/inc
       
    41 							 
       
    42 LIBS += -lcpframework
       
    43 
       
    44 # Input
       
    45 HEADERS += src/ut_cpapi.h
       
    46 SOURCES += src/ut_cpapi.cpp \ 
       
    47             src/main.cpp
       
    48 
       
    49 symbian {
       
    50 	BLD_INF_RULES.prj_exports += "data/controlpanellog.conf C:/data/.config/ut_cpapi/controlpanellog.conf"
       
    51 }