|
1 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 # All rights reserved. |
|
3 # This component and the accompanying materials are made available |
|
4 # under the terms of "Eclipse Public License v1.0" |
|
5 # which accompanies this distribution, and is available |
|
6 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 # Initial Contributors: |
|
8 # Nokia Corporation - initial contribution. |
|
9 # Contributors: |
|
10 # Description: |
|
11 |
|
12 TEMPLATE = app |
|
13 TARGET = ut_cpapi |
|
14 QT += testlib |
|
15 CONFIG += hb qtestlib |
|
16 CONFIG += symbian_test |
|
17 |
|
18 QMAKE_EXTRA_TARGETS += test autotest |
|
19 |
|
20 DEPENDPATH += . |
|
21 INCLUDEPATH += src/ \ |
|
22 ../../../src/inc \ |
|
23 ../../../controlpanel_plat/inc |
|
24 LIBS += -lcpframework |
|
25 |
|
26 # Input |
|
27 HEADERS += src/ut_cpapi.h |
|
28 HEADERS += src/cptestview.h |
|
29 HEADERS += src/cptestpluginentryitem.h |
|
30 SOURCES += src/ut_cpapi.cpp |
|
31 SOURCES += src/cptestview.cpp |
|
32 SOURCES += src/cptestpluginentryitem.cpp |
|
33 |
|
34 symbian*: { |
|
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 |
|
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 } |