diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2011-02-04 12:10:53 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2011-02-04 12:28:06 (GMT) |
commit | 10c7730877d314ec4eda6728e2d66c38beff8d62 (patch) | |
tree | 145b8fe4d8b1ca4e74379eac36f92eab092a2f60 /mkspecs | |
parent | 4cee615df52a3d984986d07e8125d3b01973f4a9 (diff) | |
download | Qt-10c7730877d314ec4eda6728e2d66c38beff8d62.zip Qt-10c7730877d314ec4eda6728e2d66c38beff8d62.tar.gz Qt-10c7730877d314ec4eda6728e2d66c38beff8d62.tar.bz2 |
Implement Symbian support for enable_backup CONFIG value
The enable_backup CONFIG value can be used to generate deployment
for backup registration file for an application.
BACKUP_REGISTRATION_FILE variable can be used to specify a custom
backup registration file.
Task-number: QTBUG-17214
Reviewed-by: axis
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/common/symbian/backup_registration.xml | 8 | ||||
-rw-r--r-- | mkspecs/features/enable_backup.prf | 15 |
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 |