qtmobility/src/bearer/bearer.pro
changeset 4 90517678cc4f
parent 0 cfcbf08528c4
--- a/qtmobility/src/bearer/bearer.pro	Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/src/bearer/bearer.pro	Mon May 03 13:18:40 2010 +0300
@@ -19,6 +19,13 @@
            qnetworkconfiguration.cpp
 
 symbian: {
+    contains (occ_enabled, yes) {
+        message("Building with OCC enabled")
+        DEFINES += OCC_FUNCTIONALITY_AVAILABLE=1
+        LIBS += -lextendedconnpref
+    } else {
+        message("Building without OCC support")
+    }
     contains(snap_enabled, yes) {
         message("Building with SNAP support")
         DEFINES += SNAP_FUNCTIONALITY_AVAILABLE=1
@@ -54,32 +61,33 @@
     QtBearerManagement.path = /sys/bin
     DEPLOYMENT += QtBearerManagement
 } else {
-    maemo6 {
-	CONFIG += link_pkgconfig
+    maemo6|maemo5 {
+        CONFIG += link_pkgconfig
+        QT += dbus
 
-	exists(../debug) {
-		message("Enabling debug messages.")
-		DEFINES += BEARER_MANAGEMENT_DEBUG
-	}
+        exists(../debug) {
+                message("Enabling debug messages.")
+                DEFINES += BEARER_MANAGEMENT_DEBUG
+        }
 
         HEADERS += qnetworksession_maemo_p.h \
                    qnetworkconfigmanager_maemo_p.h \
                    qnetworkconfiguration_maemo_p.h
 
         SOURCES += qnetworkconfigmanager_maemo.cpp \
-		   qnetworksession_maemo.cpp
+                   qnetworksession_maemo.cpp
 
-	documentation.path = $$QT_MOBILITY_PREFIX/doc
+        documentation.path = $$QT_MOBILITY_PREFIX/doc
         documentation.files = doc/html
 
-	PKGCONFIG += glib-2.0 dbus-glib-1 gconf-2.0 osso-ic conninet
+        PKGCONFIG += glib-2.0 dbus-glib-1 gconf-2.0 osso-ic conninet
 
-	CONFIG += create_pc create_prl
-	QMAKE_PKGCONFIG_REQUIRES = glib-2.0 dbus-glib-1 gconf-2.0 osso-ic conninet
-	pkgconfig.path = $$QT_MOBILITY_LIB/pkgconfig
-	pkgconfig.files = QtBearer.pc
+        CONFIG += create_pc create_prl
+        QMAKE_PKGCONFIG_REQUIRES = glib-2.0 dbus-glib-1 gconf-2.0 osso-ic conninet
+        pkgconfig.path = $$QT_MOBILITY_LIB/pkgconfig
+        pkgconfig.files = QtBearer.pc
 
-	INSTALLS += pkgconfig documentation
+        INSTALLS += pkgconfig documentation
 
     } else {
 
@@ -142,7 +150,7 @@
                  }
             
                 !isEmpty(SDK6) {
-                        LIBS += -framework CoreWLAN
+                        LIBS += -framework CoreWLAN -framework Security
                         DEFINES += MAC_SDK_10_6
                 }
            }