phonesettings/cpphonesettingsplugins/barringplugin/tsrc/ut_cpbarringplugin/ut_cpbarringplugin.pro
changeset 21 92ab7f8d0eab
child 60 1eef62f5c541
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
       
     1 #
       
     2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of "Eclipse Public License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 # 
       
    14 # Description: Project file for building unit test component
       
    15 #
       
    16 #
       
    17 
       
    18 CONFIG += qtestlib hb
       
    19 TEMPLATE = app
       
    20 TARGET = 
       
    21 DEPENDPATH += . ../../src/
       
    22 INCLUDEPATH += .
       
    23 INCLUDEPATH +=../../../inc 
       
    24 INCLUDEPATH +=../../../cptelephonyutils/inc
       
    25 DEFINES += BUILD_BARRINGPLUGIN
       
    26 
       
    27 QT -= gui
       
    28 QT += testlib
       
    29 
       
    30 symbian: {
       
    31   CONFIG += no_icon
       
    32     INCLUDEPATH += /epoc32/include/mw/QtTest \
       
    33         /epoc32/include/platform/mw \
       
    34         /epoc32/include/mw/qt
       
    35   LIBS += -lmocklib \
       
    36         -lsymbianmock \
       
    37         -lcpframework
       
    38 }
       
    39 
       
    40 # test code
       
    41 HEADERS += ut_cpbarringplugin.h
       
    42 SOURCES += ut_cpbarringplugin.cpp
       
    43 
       
    44 # code to be tested
       
    45 HEADERS += ../../inc/cpbarringplugin.h \
       
    46            ../../inc/cpbarringplugingroup.h
       
    47            
       
    48 SOURCES += ../../src/cpbarringplugin.cpp
       
    49 
       
    50 
       
    51 # mocks needed for testing
       
    52 SOURCES += ../../../tsrc/mocks/mock_cpbarringplugingroup.cpp