controlpanelplugins/themeplugin/tsrc/unit/common.pri
branchRCL_3
changeset 34 90fe62538f66
equal deleted inserted replaced
32:3fec62e6e7fc 34:90fe62538f66
       
     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: XENT-MV
       
    13 #
       
    14 # Description: Stuff for all unit tests
       
    15 #
       
    16 
       
    17 QT += testlib
       
    18 CONFIG += qtestlib hb
       
    19 
       
    20 
       
    21 win32 {
       
    22     INCLUDEPATH += .
       
    23     INCLUDEPATH += ../../../src/inc
       
    24     INCLUDEPATH += ../../../src/cpframework/src
       
    25     INCLUDEPATH += ../../../controlpanel_plat/inc
       
    26 }
       
    27 
       
    28 unix {
       
    29      test.commands = ./$(TARGET)
       
    30      autotest.commands = ./$(TARGET) -xml -o ../$(QMAKE_TARGET).xml
       
    31 } else:win32 {
       
    32      test.CONFIG += recursive
       
    33      autotest.CONFIG += recursive
       
    34      build_pass {
       
    35      		test.commands =/epoc32/RELEASE/WINSCW/udeb/$(QMAKE_TARGET).exe
       
    36 		autotest.commands =/epoc32/RELEASE/WINSCW/udeb/$(QMAKE_TARGET).exe -xml -o c:/$(QMAKE_TARGET).xml
       
    37      }
       
    38 }
       
    39 
       
    40 QMAKE_EXTRA_TARGETS += test autotest
       
    41 
       
    42 symbian {
       
    43     INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE
       
    44     INCLUDEPATH += $$MOC_DIR
       
    45     LIBS += -lcentralrepository
       
    46     TARGET.CAPABILITY = ALL -TCB
       
    47     TARGET.EPOCALLOWDLLDATA = 1
       
    48 }
       
    49 
       
    50