|
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: |
|
15 # |
|
16 |
|
17 TEMPLATE = lib |
|
18 TARGET = cpprofilewrapper |
|
19 |
|
20 CONFIG += debug_and_release |
|
21 |
|
22 win32|mac { |
|
23 !contains(QT_CONFIG,debug)|!contains(QT_CONFIG,release) { |
|
24 CONFIG -= debug_and_release debug release |
|
25 contains(QT_CONFIG,debug): CONFIG+=debug |
|
26 contains(QT_CONFIG,release):CONFIG+=release |
|
27 } |
|
28 } |
|
29 |
|
30 CONFIG(debug, debug|release) { |
|
31 SUBDIRPART = debug |
|
32 } else { |
|
33 SUBDIRPART = release |
|
34 } |
|
35 |
|
36 win32 { |
|
37 DESTDIR = C:/ControlPanel/$$SUBDIRPART/bin |
|
38 OBJECTS_DIR = $$PWD/../$$SUBDIRPART/tmp/$$TARGET |
|
39 } |
|
40 |
|
41 # Add the output dirs to the link path too |
|
42 LIBS += -L$$DESTDIR |
|
43 |
|
44 MOC_DIR = moc |
|
45 OBJECT_DIR = obj |
|
46 RCC_DIR = rcc |
|
47 |
|
48 DEFINES += PROFILEWRAPPER_FREEZE |
|
49 |
|
50 |
|
51 HEADERS += ../inc/cpprofilemodel.h \ |
|
52 ../inc/cpprofilewrappermacro.h \ |
|
53 ../inc/cpprofilemonitor.h \ |
|
54 src/cpprofilemodel_p.h \ |
|
55 src/cpprofilemonitor_p.h |
|
56 SOURCES += src/cpprofilemodel.cpp \ |
|
57 src/cpprofilemonitor.cpp |
|
58 CONFIG += hb |
|
59 win32 { |
|
60 INCLUDEPATH += $$PWD/src |
|
61 INCLUDEPATH += ../inc |
|
62 SOURCES += src/cpprofilemodel_win_p.cpp |
|
63 } |
|
64 |
|
65 symbian { |
|
66 INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE \ |
|
67 $$APP_LAYER_SYSTEMINCLUDE \ |
|
68 $$MOC_DIR |
|
69 INCLUDEPATH += $$MW_LAYER_PLATFORM_EXPORT_PATH(cplogger) |
|
70 |
|
71 SOURCES += src/cpprofilemodel_p.cpp \ |
|
72 src/cpprofilemonitor_p.cpp |
|
73 |
|
74 LIBS += -lprofileeng \ |
|
75 -lcentralrepository \ |
|
76 -lcharconv \ |
|
77 -lcplogger \ # For cplogger |
|
78 -lxqutils |
|
79 TARGET.CAPABILITY = All -TCB |
|
80 TARGET.EPOCALLOWDLLDATA = 1 |
|
81 TARGET.UID3 = 0x20025FE6 |
|
82 } |
|
83 |
|
84 |