15 LIBS+= -L$${MOBILITY_LIB} |
15 LIBS+= -L$${MOBILITY_LIB} |
16 QMAKE_RPATHDIR+=$${MOBILITY_LIB} |
16 QMAKE_RPATHDIR+=$${MOBILITY_LIB} |
17 |
17 |
18 contains(MOBILITY, bearer) { |
18 contains(MOBILITY, bearer) { |
19 DEFINES += QT_MOBILITY_BEARER |
19 DEFINES += QT_MOBILITY_BEARER |
|
20 INCLUDEPATH += $${MOBILITY_INCLUDE}/QtBearer |
20 qtAddLibrary(QtBearer) |
21 qtAddLibrary(QtBearer) |
21 !equals(QT_MAJOR_VERSION,4)|!equals(QT_MINOR_VERSION, 6) { |
22 !equals(QT_MAJOR_VERSION,4)|!equals(QT_MINOR_VERSION, 6) { |
22 message(Qt Mobility Bearer API is deprecated when using Qt 4.7 or higher.) |
23 message(Qt Mobility Bearer API is deprecated when using Qt 4.7 or higher.) |
23 message(Please use source compatible replacement Bearer API in QtNetwork.) |
24 message(Please use source compatible replacement Bearer API in QtNetwork.) |
24 } |
25 } |
25 } |
26 } |
26 |
27 |
27 contains(MOBILITY, publishsubscribe) { |
28 contains(MOBILITY, publishsubscribe) { |
|
29 INCLUDEPATH += $${MOBILITY_INCLUDE}/QtPublishSubscribe |
28 qtAddLibrary(QtPublishSubscribe) |
30 qtAddLibrary(QtPublishSubscribe) |
29 } |
31 } |
30 |
32 |
31 contains(MOBILITY, location) { |
33 contains(MOBILITY, location) { |
|
34 INCLUDEPATH += $${MOBILITY_INCLUDE}/QtLocation |
32 qtAddLibrary(QtLocation) |
35 qtAddLibrary(QtLocation) |
33 } |
36 } |
34 |
37 |
35 contains(MOBILITY, serviceframework) { |
38 contains(MOBILITY, serviceframework) { |
|
39 INCLUDEPATH += $${MOBILITY_INCLUDE}/QtServiceFramework |
36 qtAddLibrary(QtServiceFramework) |
40 qtAddLibrary(QtServiceFramework) |
37 } |
41 } |
38 |
42 |
39 contains(MOBILITY, systeminfo) { |
43 contains(MOBILITY, systeminfo) { |
40 #QSystemInfo header requires QNetworkInterface |
44 #QSystemInfo header requires QNetworkInterface |
41 QT += network |
45 QT += network |
|
46 INCLUDEPATH += $${MOBILITY_INCLUDE}/QtSystemInfo |
42 qtAddLibrary(QtSystemInfo) |
47 qtAddLibrary(QtSystemInfo) |
43 } |
48 } |
44 |
49 |
45 contains(MOBILITY, multimedia) { |
50 contains(MOBILITY, multimedia) { |
46 QT += network |
51 QT += network |
47 contains(QT_CONFIG, opengl): QT += opengl |
52 contains(QT_CONFIG, opengl): QT += opengl |
48 mac:LIBS += -framework QtMultimedia |
53 INCLUDEPATH += $${MOBILITY_INCLUDE}/QtMultimediaKit |
49 else:win32:contains(QT_CONFIG, debug):LIBS += -lQtMultimediad |
54 qtAddLibrary(QtMultimediaKit) |
50 else:LIBS += -lQtMultimedia |
|
51 } |
55 } |
52 |
56 |
53 contains(MOBILITY, contacts) { |
57 contains(MOBILITY, contacts) { |
|
58 INCLUDEPATH += $${MOBILITY_INCLUDE}/QtContacts |
54 qtAddLibrary(QtContacts) |
59 qtAddLibrary(QtContacts) |
55 } |
60 } |
56 |
61 |
57 contains(MOBILITY, messaging) { |
62 contains(MOBILITY, messaging) { |
|
63 INCLUDEPATH += $${MOBILITY_INCLUDE}/QtMessaging |
58 qtAddLibrary(QtMessaging) |
64 qtAddLibrary(QtMessaging) |
59 } |
65 } |
60 |
66 |
61 contains(MOBILITY, versit) { |
67 contains(MOBILITY, versit) { |
|
68 INCLUDEPATH += $${MOBILITY_INCLUDE}/QtVersit |
62 qtAddLibrary(QtVersit) |
69 qtAddLibrary(QtVersit) |
63 } |
70 } |
64 |
71 |
65 contains(MOBILITY, sensors) { |
72 contains(MOBILITY, sensors) { |
|
73 INCLUDEPATH += $${MOBILITY_INCLUDE}/QtSensors |
66 qtAddLibrary(QtSensors) |
74 qtAddLibrary(QtSensors) |
67 } |
75 } |
68 |
76 |
69 # Add dependency to QtMobility package to all projects besides QtMobility package itself. |
77 # Add dependency to QtMobility package to all projects besides QtMobility package itself. |
70 # Mobility libs have UID3 0x2002AC89 |
78 # Mobility libs have UID3 0x2002AC89 |