MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

lightmaps.pro Example File

lightmaps/lightmaps.pro
 TEMPLATE = app
 TARGET = lightmaps_with_location

 HEADERS = satellitedialog.h \
             ../../examples/flickrdemo/connectivityhelper.h
 SOURCES = lightmaps.cpp \
             satellitedialog.cpp \
             ../../examples/flickrdemo/connectivityhelper.cpp

 QT += network

 INCLUDEPATH += ../../src/global \
                 ../../src/location \
                 ../../examples/flickrdemo

 include(../demos.pri)

 CONFIG += mobility
 MOBILITY = location

 equals(QT_MAJOR_VERSION, 4):lessThan(QT_MINOR_VERSION, 7) {
     MOBILITY += bearer
     INCLUDEPATH += ../../src/bearer
 } else {
     # use Bearer Management classes in QtNetwork module
     DEFINES += BEARER_IN_QTNETWORK
 }

 symbian|wince* {
     symbian {
         addFiles.sources = nmealog.txt
         DEPLOYMENT += addFiles
         TARGET.CAPABILITY = NetworkServices Location ReadUserData
         TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
     }
     wince*: {
         addFiles.sources = ./nmealog.txt
         addFiles.path = .
         DEPLOYMENT += addFiles
     }
 } else {
     logfile.path = $$QT_MOBILITY_DEMOS
     logfile.files = nmealog.txt
     INSTALLS += logfile
 }