|
1 # |
|
2 ############################################################################# |
|
3 ## |
|
4 ## Copyright (C) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
|
5 ## All rights reserved. |
|
6 ## Contact: Nokia Corporation (developer.feedback@nokia.com) |
|
7 ## |
|
8 ## This file is part of the UI Extensions for Mobile. |
|
9 ## |
|
10 ## GNU Lesser General Public License Usage |
|
11 ## This file may be used under the terms of the GNU Lesser General Public |
|
12 ## License version 2.1 as published by the Free Software Foundation and |
|
13 ## appearing in the file LICENSE.LGPL included in the packaging of this file. |
|
14 ## Please review the following information to ensure the GNU Lesser General |
|
15 ## Public License version 2.1 requirements will be met: |
|
16 ## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
17 ## |
|
18 ## In addition, as a special exception, Nokia gives you certain additional |
|
19 ## rights. These rights are described in the Nokia Qt LGPL Exception |
|
20 ## version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
21 ## |
|
22 ## If you have questions regarding the use of this file, please contact |
|
23 ## Nokia at developer.feedback@nokia.com. |
|
24 ## |
|
25 ############################################################################# |
|
26 |
|
27 TEMPLATE = lib |
|
28 TARGET = $$hbLibraryTarget(HbUtils) |
|
29 QT = core gui svg network |
|
30 |
|
31 contains(QT_CONFIG, webkit) { |
|
32 QT += webkit |
|
33 DEFINES += HBUTILS_WEBKIT |
|
34 } |
|
35 |
|
36 DEFINES += BUILD_HB_TOOLS HB_PLUGINS_DIR=\"\\\"$${HB_PLUGINS_DIR}\\\"\" |
|
37 developer:DEFINES += BUILD_HB_INTERNAL |
|
38 |
|
39 INCLUDEPATH += . |
|
40 DEPENDPATH += . |
|
41 |
|
42 # directories |
|
43 DESTDIR = $${HB_BUILD_DIR}/lib |
|
44 win32:DLLDESTDIR = $${HB_BUILD_DIR}/bin |
|
45 |
|
46 # components |
|
47 include(document/document.pri) |
|
48 |
|
49 CONVENIENCE_HEADERS += $${HB_BUILD_DIR}/include/hbutils/hbutils.h |
|
50 CONVENIENCE_HEADERS += $$files($${HB_BUILD_DIR}/include/hbutils/Hb*) |
|
51 HEADERS += $$PUBLIC_HEADERS $$INTERNAL_HEADERS $$CONVENIENCE_HEADERS |
|
52 |
|
53 # dependencies |
|
54 hbAddLibrary(hbcore/HbCore) |
|
55 hbAddLibrary(hbwidgets/HbWidgets) |
|
56 |
|
57 # installation |
|
58 !local { |
|
59 target.path = $${HB_LIB_DIR} |
|
60 win32:dlltarget.path = $${HB_BIN_DIR} |
|
61 |
|
62 pubheaders.files = $$PUBLIC_HEADERS |
|
63 pubheaders.path = $${HB_INCLUDE_DIR}/hbutils |
|
64 |
|
65 convheaders.files = $$CONVENIENCE_HEADERS |
|
66 convheaders.path = $${HB_INCLUDE_DIR}/hbutils |
|
67 |
|
68 INSTALLS += target pubheaders convheaders |
|
69 win32:INSTALLS += dlltarget |
|
70 } |
|
71 |
|
72 #QMAKE_DISTCLEAN += $$hbNativePath($${HB_BUILD_DIR}/include/hbutils/*) |
|
73 #QMAKE_DISTCLEAN += $$hbNativePath($${HB_BUILD_DIR}/include/hbutils/private/*) |
|
74 |
|
75 symbian { |
|
76 defFilePath = .. |
|
77 TARGET.EPOCALLOWDLLDATA = 1 |
|
78 TARGET.CAPABILITY = CAP_GENERAL_DLL |
|
79 TARGET.UID3=0x20022F34 |
|
80 #DEPLOYMENT_PLUGIN += qjpeg # TODO: Removed because this is already in qt.sis and that caused problems |
|
81 DEFINES += SYMBIAN_TARGET_ICON_CACHE_SIZE # TODO: what's this? why not use Q_OS_SYMBIAN? |
|
82 |
|
83 INCLUDEPATH += /epoc32/include/osextensions/stdapis/stlport # TODO: depends on S60 version? |
|
84 |
|
85 hbExportHeaders(hbutils) |
|
86 } |
|
87 |
|
88 include($${HB_SOURCE_DIR}/src/hbcommon.pri) |