Updated build for Harmattan.
[medard] / medard.pro
index 242cead..8de6325 100644 (file)
@@ -1,6 +1,27 @@
-TARGET = medard
-TEMPLATE = app
-VERSION = 0.2.0
+# Add files and directories to ship with the application 
+# by adapting the examples below.
+# file1.source = myfile
+# dir1.source = mydir
+DEPLOYMENTFOLDERS = # file1 dir1
+
+symbian:TARGET.UID3 = 0xE119EAAE
+
+# Smart Installer package's UID
+# This UID is from the protected range 
+# and therefore the package will fail to install if self-signed
+# By default qmake uses the unprotected range value if unprotected UID is defined for the application
+# and 0x2002CCCF value if protected UID is given to the application
+#symbian:DEPLOYMENT.installer_header = 0x2002CCCF
+
+# Allow network access on Symbian
+symbian:TARGET.CAPABILITY += NetworkServices
+
+# If your application uses the Qt Mobility libraries, uncomment
+# the following lines and add the respective components to the 
+# MOBILITY variable. 
+# CONFIG += mobility
+# MOBILITY +=
+CONFIG += meegotouch
 
 QT += network
 
@@ -19,6 +40,17 @@ HEADERS += \
 
 FORMS +=
 
+# Please do not modify the following two lines. Required for deployment.
+include(deployment.pri)
+qtcAddDeployment()
+
+contains(MEEGO_EDITION,harmattan): {
+    MEEGO_VERSION_MAJOR = 1
+    MEEGO_VERSION_MINOR = 2
+    MEEGO_VERSION_PATCH = 0
+    DEFINES += MEEGO_EDITION_HARMATTAN
+}
+
 OTHER_FILES += \
     qtc_packaging/debian_fremantle/rules \
     qtc_packaging/debian_fremantle/README \
@@ -28,6 +60,7 @@ OTHER_FILES += \
     qtc_packaging/debian_fremantle/changelog \
     qtc_packaging/debian_harmattan/rules \
     qtc_packaging/debian_harmattan/README \
+    qtc_packaging/debian_harmattan/manifest.aegis \
     qtc_packaging/debian_harmattan/copyright \
     qtc_packaging/debian_harmattan/control \
     qtc_packaging/debian_harmattan/compat \
@@ -38,25 +71,3 @@ TRANSLATIONS += \
     translations/medard_en.ts \
     translations/medard_sk.ts
 
-unix:!symbian {
-    target.path = /opt/medard/bin
-
-    desktop.files = medard.desktop
-
-    icon.files = medard.png
-    icon.path = /usr/share/icons/hicolor/64x64/apps
-
-    translations.files = translations/*.qm
-    translations.path = /opt/medard/share/l10n
-
-    maemo 5 {
-        DEFINES += Q_WS_MAEMO_5
-        desktop.path  = /usr/share/applications/hildon
-    } else {
-        DEFINES += Q_WS_MAEMO_6
-        CONFIG += meegotouch
-        desktop.path  = /usr/share/applications
-    }
-}
-
-INSTALLS += target desktop icon translations
\ No newline at end of file