|
1 # |
|
2 # Copyright (c) 2010 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 = BookMarksClient |
|
19 |
|
20 ROOT_DIR = $$PWD/../.. |
|
21 include($$ROOT_DIR/browser.pri) |
|
22 |
|
23 DEFINES+= BUILDING_BOOKMARKS_CLIENT |
|
24 |
|
25 QT += core network xml sql |
|
26 HEADERS += $$PWD/inc/bookmarkclientdefs.h \ |
|
27 $$PWD/inc/bookmarkclient.h \ |
|
28 $$PWD/../commoninclude/bookmarkscommonengine.h |
|
29 SOURCES += $$PWD/src/bookmarkclient.cpp |
|
30 |
|
31 isEmpty(BEDROCK_OUTPUT_DIR): { |
|
32 symbian { |
|
33 CONFIG(release, debug|release):BOOKMARKSCLIENT_DATAMODEL_OUTPUT_DIR=$$PWD/../../WrtBuild/Release |
|
34 CONFIG(debug, debug|release):BOOKMARKSCLIENT_DATAMODEL_OUTPUT_DIR= $$PWD/../../WrtBuild/Debug |
|
35 else { |
|
36 CONFIG(release, debug|release):BOOKMARKSCLIENT_DATAMODEL_OUTPUT_DIR=$$PWD/../../../../../WrtBuild/Release |
|
37 CONFIG(debug, debug|release):BOOKMARKSCLIENT_DATAMODEL_OUTPUT_DIR= $$PWD/../../../../../WrtBuild/Debug |
|
38 } |
|
39 } else { |
|
40 BOOKMARKSCLIENT_DATAMODEL_OUTPUT_DIR = $$BEDROCK_OUTPUT_DIR |
|
41 } |
|
42 |
|
43 OBJECTS_DIR = $$BOOKMARKSCLIENT_DATAMODEL_OUTPUT_DIR/BookMarksClient/tmp |
|
44 DESTDIR = $$BOOKMARKSCLIENT_DATAMODEL_OUTPUT_DIR/bin |
|
45 MOC_DIR = $$BOOKMARKSCLIENT_DATAMODEL_OUTPUT_DIR/BookMarksClient/ |
|
46 RCC_DIR = $$BOKMARKSCLIENT_DATAMODEL_OUTPUT_DIR/BookMarksClient/ |
|
47 TEMPDIR = $$BOOKMARKSCLIENT_DATAMODEL_OUTPUT_DIR/BookMarksClient/build |
|
48 # QMAKE_LIBDIR = $$BOOKMARKSCLIENT_DATAMODEL_OUTPUT_DIR/bin |
|
49 |
|
50 INCLUDEPATH += $$PWD/inc $$PWD/../commoninclude $$PWD/../../ipc/serviceipc $$PWD/../../ipc/serviceipcserver |
|
51 |
|
52 |
|
53 # Use IPC components from import directory. |
|
54 include($$PWD/../../../../../import/import.pri) |
|
55 LIBS += -lwrtserviceipcclient |
|
56 |
|
57 |
|
58 #I believe the following line to be useless on all platforms. (carol.szabo@nokia.com) |
|
59 # !s40:LIBS += -Llib |
|
60 # CONFIG += \ |
|
61 # building-libs \ |
|
62 # depend_includepath \ |
|
63 # dll |
|
64 CONFIG += dll |
|
65 |
|
66 # CONFIG(release, debug|release):!CONFIG(QTDIR_build){ |
|
67 # !unix : contains(QT_CONFIG, reduce_exports): CONFIG += hide_symbols |
|
68 # unix : contains(QT_CONFIG, reduce_relocations): CONFIG += bsymbolic_functions |
|
69 # } |
|
70 |
|
71 CONFIG -= warn_on |
|
72 *-g++* : QMAKE_CXXFLAGS += -Wreturn-type -fno-strict-aliasing |
|
73 CONFIG(gcov) { |
|
74 LIBS += -lgcov |
|
75 QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage |
|
76 message( "building for coverage statics" ) |
|
77 } |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 isEmpty(TEMPDIR) { |
|
83 CONFIG(release, debug|release):TEMPDIR=$$DESTDIR/Release/build |
|
84 CONFIG(debug, debug|release):TEMPDIR=$$DESTDIR/Debug/build |
|
85 } |
|
86 |
|
87 CONFIG (maemo) { |
|
88 include(../../../../cwrt-maemo.pri) |
|
89 } |
|
90 |
|
91 symbian: { |
|
92 TARGET.UID3 = 0x200267E6 |
|
93 TARGET.VID = VID_DEFAULT |
|
94 TARGET.EPOCALLOWDLLDATA=1 |
|
95 TARGET.CAPABILITY = All -TCB -DRM -AllFiles |
|
96 LIBS += -lefsrv -lcaf -lcafutils |
|
97 INCLUDEPATH+=$$MW_LAYER_PUBLIC_EXPORT_PATH(cwrt) $$MW_LAYER_PUBLIC_EXPORT_PATH() |
|
98 INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE |
|
99 INCLUDEPATH+=/epoc32/include |
|
100 BookMarksClientlibs.sources = BookMarksClient.dll |
|
101 BookMarksClientlibs.path = /sys/bin |
|
102 DEPLOYMENT += BookMarksClientlibs |
|
103 |
|
104 } |