|
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 # default collections |
|
28 isEmpty(HB):HB = hbcore hbwidgets hbutils # hbinput hbfeedback |
|
29 QT *= core gui svg network |
|
30 symbian:CONFIG += symbian_i18n |
|
31 |
|
32 include(hb_install.prf) |
|
33 |
|
34 CONFIG(debug, debug|release) { |
|
35 win32:SUFFIX = d |
|
36 mac:SUFFIX = _debug |
|
37 } |
|
38 |
|
39 unset(LINKAGE) |
|
40 COLLECTIONS = $$lower($$unique(HB)) |
|
41 |
|
42 # hbtools is deprecated |
|
43 contains(COLLECTIONS, hbtools) { |
|
44 warning(HbTools collection has been renamed HbUtils.) |
|
45 warning(Replace DEPRECATED \'hbtools\' with \'hbutils\' in the HB variable.) |
|
46 COLLECTIONS -= hbtools |
|
47 COLLECTIONS *= hbutils |
|
48 } |
|
49 |
|
50 # resolve dependencies |
|
51 contains(COLLECTIONS, hbwidgets):COLLECTIONS *= hbcore |
|
52 contains(COLLECTIONS, hbutils):COLLECTIONS *= hbcore hbwidgets |
|
53 contains(COLLECTIONS, hbinput):COLLECTIONS *= hbcore hbwidgets hbutils |
|
54 contains(COLLECTIONS, hbfeedback):COLLECTIONS *= hbcore hbwidgets hbutils |
|
55 |
|
56 for(COLLECTION, $$list($$COLLECTIONS)) { |
|
57 isEqual(COLLECTION, hbcore) { |
|
58 LINKAGE += -lHbCore$${SUFFIX} |
|
59 } else:isEqual(COLLECTION, hbwidgets) { |
|
60 LINKAGE += -lHbWidgets$${SUFFIX} |
|
61 } else:isEqual(COLLECTION, hbutils) { |
|
62 LINKAGE += -lHbUtils$${SUFFIX} |
|
63 } else:isEqual(COLLECTION, hbinput) { |
|
64 LINKAGE += -lHbInput$${SUFFIX} |
|
65 } else:isEqual(COLLECTION, hbfeedback) { |
|
66 LINKAGE += -lHbFeedback$${SUFFIX} |
|
67 } else { |
|
68 message(Unknown COLLECTION: $$COLLECTION) |
|
69 next() |
|
70 } |
|
71 INCLUDEPATH += $${HB_INCLUDE_DIR}/$${COLLECTION} |
|
72 } |
|
73 |
|
74 !isEmpty(LINKAGE) { |
|
75 LIBS += -L$${HB_LIB_DIR} $${LINKAGE} |
|
76 unix:!symbian:!isEmpty(QMAKE_RPATH):QMAKE_LFLAGS += $${QMAKE_RPATH}$${HB_LIB_DIR} |
|
77 } |