9
|
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
|
15
|
27 |
# SOURCES += $$PWD/src/browsercontentdll.cpp
|
|
28 |
|
|
29 |
# Build.inf rules
|
|
30 |
symbian{
|
|
31 |
BLD_INF_RULES.prj_exports += \
|
|
32 |
"$${LITERAL_HASH}include <platform_paths.hrh>" \
|
|
33 |
"conf/CI_bookmarks.confml MW_LAYER_CONFML(CI_bookmarks.confml)" \
|
|
34 |
"conf/BookmarkItems.gcfml MW_LAYER_GCFML(BookmarkItems.gcfml)" \
|
|
35 |
"conf/CI_bookmarks.confml MW_LAYER_CONFML(BookmarkData.confml)" \
|
|
36 |
"conf/bookmarks.xml /epoc32/data/z/private/10008d39/bookmarks.xml"
|
|
37 |
}
|
|
38 |
|
9
|
39 |
isEmpty(BEDROCK_OUTPUT_DIR): {
|
|
40 |
symbian {
|
|
41 |
CONFIG(release, debug|release):BOOKMARKSAPI_OUTPUT_DIR = $$PWD/../../WrtBuild/Release
|
|
42 |
CONFIG(debug, debug|release):BOOKMARKSAPI_OUTPUT_DIR = $$PWD/../../WrtBuild/Debug
|
|
43 |
}
|
|
44 |
else {
|
|
45 |
CONFIG(release, debug|release):BOOKMARKSAPI_OUTPUT_DIR = $$PWD/../../../../WrtBuild/Release
|
|
46 |
CONFIG(debug, debug|release):BOOKMARKSAPI_OUTPUT_DIR = $$PWD/../../../../WrtBuild/Debug
|
|
47 |
}
|
|
48 |
}
|
|
49 |
else:BOOKMARKSAPI_OUTPUT_DIR = $$BEDROCK_OUTPUT_DIR
|
|
50 |
OBJECTS_DIR = $$BOOKMARKSAPI_OUTPUT_DIR/bookmarksapi/tmp
|
|
51 |
DESTDIR = $$BOOKMARKSAPI_OUTPUT_DIR/bin
|
|
52 |
MOC_DIR = $$BOOKMARKSAPI_OUTPUT_DIR/bookmarksapi/tmp
|
|
53 |
RCC_DIR = $$BOOKMARKSAPI_OUTPUT_DIR/bookmarksapi/tmp
|
|
54 |
TEMPDIR = $$BOOKMARKSAPI_OUTPUT_DIR/bookmarksapi/build
|
|
55 |
|
|
56 |
# QMAKE_LIBDIR = $$BOOKMARKSCLIENTDLL_DATAMODEL_OUTPUT_DIR/bin
|
|
57 |
INCLUDEPATH += $$PWD
|
|
58 |
|
|
59 |
# I believe the following line to be useless on all platforms. (carol.szabo@nokia.com)
|
|
60 |
# !s40:LIBS += -Llib
|
|
61 |
# CONFIG += \
|
|
62 |
# building-libs \
|
|
63 |
# depend_includepath \
|
|
64 |
# dll
|
|
65 |
CONFIG += dll
|
|
66 |
|
|
67 |
# CONFIG(release, debug|release):!CONFIG(QTDIR_build){
|
|
68 |
# !unix : contains(QT_CONFIG, reduce_exports): CONFIG += hide_symbols
|
|
69 |
# unix : contains(QT_CONFIG, reduce_relocations): CONFIG += bsymbolic_functions
|
|
70 |
# }
|
|
71 |
# CONFIG -= warn_on
|
|
72 |
*-g++*:QMAKE_CXXFLAGS += -Wreturn-type \
|
|
73 |
-fno-strict-aliasing
|
|
74 |
CONFIG(gcov) {
|
|
75 |
LIBS += -lgcov
|
|
76 |
QMAKE_CXXFLAGS += -fprofile-arcs \
|
|
77 |
-ftest-coverage
|
|
78 |
message( "building for coverage statics" )
|
|
79 |
}
|
|
80 |
isEmpty(TEMPDIR) {
|
|
81 |
CONFIG(release, debug|release):TEMPDIR = $$DESTDIR/Release/build
|
|
82 |
CONFIG(debug, debug|release):TEMPDIR = $$DESTDIR/Debug/build
|
|
83 |
}
|
|
84 |
CONFIG (maemo):include(../../../../cwrt-maemo.pri)
|
|
85 |
symbian: {
|
|
86 |
TARGET.UID3 = 0x200267E7
|
|
87 |
TARGET.VID = VID_DEFAULT
|
|
88 |
TARGET.EPOCALLOWDLLDATA = 1
|
|
89 |
TARGET.CAPABILITY = All \
|
|
90 |
-TCB \
|
15
|
91 |
-DRM
|
9
|
92 |
LIBS += -lefsrv \
|
|
93 |
-lcaf \
|
|
94 |
-lcafutils
|
|
95 |
INCLUDEPATH += $$MW_LAYER_PUBLIC_EXPORT_PATH(cwrt) \
|
|
96 |
$$MW_LAYER_PUBLIC_EXPORT_PATH()
|
|
97 |
INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE
|
|
98 |
INCLUDEPATH += /epoc32/include
|
15
|
99 |
|
|
100 |
BLD_INF_RULES.prj_exports += \
|
|
101 |
"./BookmarksManager.h $$MW_LAYER_PUBLIC_EXPORT_PATH(BookmarksManager.h)" \
|
|
102 |
"./BookmarkFav.h $$MW_LAYER_PUBLIC_EXPORT_PATH(BookmarkFav.h)" \
|
|
103 |
"./BookmarkResults.h $$MW_LAYER_PUBLIC_EXPORT_PATH(BookmarkResults.h)" \
|
|
104 |
"./bookmarksapi.h $$MW_LAYER_PUBLIC_EXPORT_PATH(bookmarksapi.h)" \
|
|
105 |
"./TagResults.h $$MW_LAYER_PUBLIC_EXPORT_PATH(TagResults.h)"
|
|
106 |
}
|
|
107 |
|
9
|
108 |
HEADERS = \
|
|
109 |
#BookmarkResultsList.h \
|
|
110 |
TagResults.h \
|
|
111 |
BookmarkResults.h \
|
|
112 |
BookmarkFav.h \
|
|
113 |
xbelreader.h \
|
|
114 |
xbelwriter.h \
|
|
115 |
BookmarksManager.h \
|
|
116 |
bookmarksapi.h \
|
|
117 |
Bookmark.h
|
|
118 |
SOURCES = \
|
|
119 |
#BookmarkResultsList.cpp \
|
|
120 |
TagResults.cpp \
|
|
121 |
BookmarkResults.cpp \
|
|
122 |
BookmarkFav.cpp \
|
|
123 |
xbelreader.cpp \
|
|
124 |
xbelwriter.cpp \
|
|
125 |
BookmarksManager.cpp
|