summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/common/symbian/backup_registration.xml8
-rw-r--r--mkspecs/features/enable_backup.prf15
2 files changed, 23 insertions, 0 deletions
diff --git a/mkspecs/common/symbian/backup_registration.xml b/mkspecs/common/symbian/backup_registration.xml
new file mode 100644
index 0000000..794e11d
--- /dev/null
+++ b/mkspecs/common/symbian/backup_registration.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" standalone="yes"?>
+<backup_registration>
+ <passive_backup>
+ <include_directory name = "\" />
+ </passive_backup>
+ <system_backup/>
+ <restore requires_reboot = "no"/>
+</backup_registration>
diff --git a/mkspecs/features/enable_backup.prf b/mkspecs/features/enable_backup.prf
new file mode 100644
index 0000000..9e81d56
--- /dev/null
+++ b/mkspecs/features/enable_backup.prf
@@ -0,0 +1,15 @@
+# Generate deployment for backup registration file
+symbian {
+ isEmpty(BACKUP_REGISTRATION_FILE) {
+ BACKUP_REGISTRATION_FILE = $$[QT_INSTALL_DATA]/mkspecs/common/symbian/backup_registration.xml
+ }
+
+ contains(TEMPLATE, app) {
+ backup_reg_deployment.path = /private/$$replace(TARGET.UID3, 0x,)
+ } else {
+ backup_reg_deployment.path = /private/10202D56/import/packages/$$replace(TARGET.UID3, 0x,)
+ }
+
+ backup_reg_deployment.sources = $$BACKUP_REGISTRATION_FILE
+ DEPLOYMENT += backup_reg_deployment
+} \ No newline at end of file