|
1 # Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 # All rights reserved. |
|
3 # This program is free software: you can redistribute it and/or modify |
|
4 # it under the terms of the GNU Lesser General Public License as published by |
|
5 # the Free Software Foundation, version 2.1 of the License. |
|
6 # This program is distributed in the hope that it will be useful, |
|
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
9 # GNU Lesser General Public License for more details. |
|
10 # You should have received a copy of the GNU Lesser General Public License |
|
11 # along with this program. If not, |
|
12 # see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". |
|
13 # Description: |
|
14 TEMPLATE = lib |
|
15 TARGET = bookmarksapi |
|
16 ROOT_DIR = $$PWD/.. |
|
17 include($$ROOT_DIR/browser.pri) |
|
18 DEFINES += BUILDING_BOOKMARKSAPI_DLL |
|
19 QT += core \ |
|
20 network \ |
|
21 xml \ |
|
22 sql \ |
|
23 script |
|
24 |
|
25 # HEADERS += $$PWD/inc/browsercontentdllclientdefs.h \ |
|
26 # $$PWD/inc/browsercontentdll.h |
|
27 # SOURCES += $$PWD/src/browsercontentdll.cpp |
|
28 isEmpty(BEDROCK_OUTPUT_DIR): { |
|
29 symbian { |
|
30 CONFIG(release, debug|release):BOOKMARKSAPI_OUTPUT_DIR = $$PWD/../../WrtBuild/Release |
|
31 CONFIG(debug, debug|release):BOOKMARKSAPI_OUTPUT_DIR = $$PWD/../../WrtBuild/Debug |
|
32 } |
|
33 else { |
|
34 CONFIG(release, debug|release):BOOKMARKSAPI_OUTPUT_DIR = $$PWD/../../../../WrtBuild/Release |
|
35 CONFIG(debug, debug|release):BOOKMARKSAPI_OUTPUT_DIR = $$PWD/../../../../WrtBuild/Debug |
|
36 } |
|
37 } |
|
38 else:BOOKMARKSAPI_OUTPUT_DIR = $$BEDROCK_OUTPUT_DIR |
|
39 OBJECTS_DIR = $$BOOKMARKSAPI_OUTPUT_DIR/bookmarksapi/tmp |
|
40 DESTDIR = $$BOOKMARKSAPI_OUTPUT_DIR/bin |
|
41 MOC_DIR = $$BOOKMARKSAPI_OUTPUT_DIR/bookmarksapi/tmp |
|
42 RCC_DIR = $$BOOKMARKSAPI_OUTPUT_DIR/bookmarksapi/tmp |
|
43 TEMPDIR = $$BOOKMARKSAPI_OUTPUT_DIR/bookmarksapi/build |
|
44 |
|
45 # QMAKE_LIBDIR = $$BOOKMARKSCLIENTDLL_DATAMODEL_OUTPUT_DIR/bin |
|
46 INCLUDEPATH += $$PWD |
|
47 |
|
48 # I believe the following line to be useless on all platforms. (carol.szabo@nokia.com) |
|
49 # !s40:LIBS += -Llib |
|
50 # CONFIG += \ |
|
51 # building-libs \ |
|
52 # depend_includepath \ |
|
53 # dll |
|
54 CONFIG += dll |
|
55 |
|
56 # CONFIG(release, debug|release):!CONFIG(QTDIR_build){ |
|
57 # !unix : contains(QT_CONFIG, reduce_exports): CONFIG += hide_symbols |
|
58 # unix : contains(QT_CONFIG, reduce_relocations): CONFIG += bsymbolic_functions |
|
59 # } |
|
60 # CONFIG -= warn_on |
|
61 *-g++*:QMAKE_CXXFLAGS += -Wreturn-type \ |
|
62 -fno-strict-aliasing |
|
63 CONFIG(gcov) { |
|
64 LIBS += -lgcov |
|
65 QMAKE_CXXFLAGS += -fprofile-arcs \ |
|
66 -ftest-coverage |
|
67 message( "building for coverage statics" ) |
|
68 } |
|
69 isEmpty(TEMPDIR) { |
|
70 CONFIG(release, debug|release):TEMPDIR = $$DESTDIR/Release/build |
|
71 CONFIG(debug, debug|release):TEMPDIR = $$DESTDIR/Debug/build |
|
72 } |
|
73 CONFIG (maemo):include(../../../../cwrt-maemo.pri) |
|
74 symbian: { |
|
75 TARGET.UID3 = 0x200267E7 |
|
76 TARGET.VID = VID_DEFAULT |
|
77 TARGET.EPOCALLOWDLLDATA = 1 |
|
78 TARGET.CAPABILITY = All \ |
|
79 -TCB \ |
|
80 -DRM \ |
|
81 -AllFiles |
|
82 LIBS += -lefsrv \ |
|
83 -lcaf \ |
|
84 -lcafutils |
|
85 INCLUDEPATH += $$MW_LAYER_PUBLIC_EXPORT_PATH(cwrt) \ |
|
86 $$MW_LAYER_PUBLIC_EXPORT_PATH() |
|
87 INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE |
|
88 INCLUDEPATH += /epoc32/include |
|
89 bookmarksapi.sources = bookmarksapi.dll |
|
90 bookmarksapi.path = /sys/bin |
|
91 DEPLOYMENT += bookmarksapi |
|
92 } |
|
93 HEADERS = \ |
|
94 #BookmarkResultsList.h \ |
|
95 TagResults.h \ |
|
96 BookmarkResults.h \ |
|
97 BookmarkFav.h \ |
|
98 xbelreader.h \ |
|
99 xbelwriter.h \ |
|
100 BookmarksManager.h \ |
|
101 bookmarksapi.h \ |
|
102 Bookmark.h |
|
103 SOURCES = \ |
|
104 #BookmarkResultsList.cpp \ |
|
105 TagResults.cpp \ |
|
106 BookmarkResults.cpp \ |
|
107 BookmarkFav.cpp \ |
|
108 xbelreader.cpp \ |
|
109 xbelwriter.cpp \ |
|
110 BookmarksManager.cpp |