summaryrefslogtreecommitdiffstats
path: root/weather/weather.pro
diff options
context:
space:
mode:
Diffstat (limited to 'weather/weather.pro')
-rw-r--r--weather/weather.pro52
1 files changed, 41 insertions, 11 deletions
diff --git a/weather/weather.pro b/weather/weather.pro
index 4d97afb..e2ec896 100644
--- a/weather/weather.pro
+++ b/weather/weather.pro
@@ -1,34 +1,50 @@
TEMPLATE = app
+
+QT += network xml
+
TARGET = weather
-QT += network \
- xml
target.path = $$PREFIX/bin
INSTALLS += target
+
+INSTALLS += desktop
+desktop.path = /usr/share/applications/hildon
+desktop.files = data/weather.desktop
+
+INSTALLS += icon64
+icon64.path = /usr/share/icons/hicolor/64x64/apps
+icon64.files = data/icon-weather.png
+
+INSTALLS += inifile
+inifile.path = /usr/share/applications/
+inifile.files = data/weather.ini
+
RESOURCES += resources.qrc
-QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
+
+OBJECTS_DIR = build
+MOC_DIR = build
+UI_DIR = build
+DESTDIR = build
+VPATH += src
include(../shared/shared.pri)
+QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
+
symbian {
LIBS += -lesock \
-lconnmon \
-lcone \
-lavkon
- addFiles.sources = weather.ini
+ addFiles.sources = data/weather.ini
addFiles.path = c:\data
DEPLOYMENT += addFiles
- ICON = images/icon-weather.svg
- OBJECTS_DIR = tmp
- MOC_DIR = tmp
+ ICON = data/icon-weather.svg
TARGET.CAPABILITY = NetworkServices
TARGET.EPOCHEAPSIZE = 0x20000 \
0x2000000
TARGET.UID3 = 0xe1234567
}
-unix {
- OBJECTS_DIR = tmp
- MOC_DIR = tmp
-}
+
HEADERS += mainview.h \
settings.h \
forecastview.h \
@@ -91,3 +107,17 @@ SOURCES += mainview.cpp \
xoapweatherresponse.cpp \
forecastdata.cpp \
fakecontentscreen.cpp
+
+# Maemo 5
+linux-g++-maemo5{
+ # Targets for debian source and binary package creation
+ debian-src.commands = dpkg-buildpackage -S -r -us -uc -d
+ debian-bin.commands = dpkg-buildpackage -b -r -uc -d
+ debian-all.depends = debian-src debian-bin
+
+
+ # Clean all but Makefile
+ compiler_clean.commands = -$(DEL_FILE) $(TARGET)
+
+ QMAKE_EXTRA_TARGETS += debian-all debian-src debian-bin compiler_clean
+}