Modified src.pro to include networkhandlerprivatestub when building in
[situare] / src / src.pro
index a5ce065..9a47db6 100644 (file)
@@ -97,13 +97,21 @@ QT += network \
 DEFINES += QT_NO_DEBUG_OUTPUT
 
 maemo5 | simulator {
-    INCLUDEPATH += /usr/include/glib-2.0 /usr/lib/glib-2.0/include
-    SOURCES += gps/gpspositionprivate.cpp \
-               network/networkhandlerprivate.cpp
-    HEADERS += gps/gpspositionprivate.h \
-               network/networkhandlerprivate.h
-    QT += maemo5 dbus
-    CONFIG += mobility icd2
+    sbox {
+        DEFINES += SBOX
+        SOURCES += network/networkhandlerprivatestub.cpp
+        HEADERS += network/networkhandlerprivatestub.h
+    } else {
+        INCLUDEPATH += /usr/include/glib-2.0 /usr/lib/glib-2.0/include
+        SOURCES += network/networkhandlerprivate.cpp
+        HEADERS += network/networkhandlerprivate.h
+        QT += dbus
+        CONFIG += icd2
+    }
+    SOURCES += gps/gpspositionprivate.cpp
+    HEADERS += gps/gpspositionprivate.h
+    QT += maemo5
+    CONFIG += mobility
     MOBILITY = location
     message([QJson])
     message(Make sure you have QJson development headers installed)