deployment.pri 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # checksum 0x9ca8 version 0x60002
  2. # This file was generated by an application wizard of Qt Creator.
  3. # The code below handles deployment to Symbian and Maemo, aswell as copying
  4. # of the application data to shadow build directories on desktop.
  5. # It is recommended not to modify this file, since newer versions of Qt Creator
  6. # may offer an updated version of it.
  7. defineTest(qtcAddDeployment) {
  8. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  9. item = item$${deploymentfolder}
  10. itemsources = $${item}.sources
  11. $$itemsources = $$eval($${deploymentfolder}.source)
  12. itempath = $${item}.path
  13. $$itempath= $$eval($${deploymentfolder}.target)
  14. export($$itemsources)
  15. export($$itempath)
  16. DEPLOYMENT += $$item
  17. }
  18. MAINPROFILEPWD = $$PWD
  19. symbian {
  20. isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg
  21. isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
  22. } else:win32 {
  23. copyCommand =
  24. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  25. source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
  26. source = $$replace(source, /, \\)
  27. sourcePathSegments = $$split(source, \\)
  28. target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
  29. target = $$replace(target, /, \\)
  30. !isEqual(source,$$target) {
  31. !isEmpty(copyCommand):copyCommand += &&
  32. isEqual(QMAKE_DIR_SEP, \\) {
  33. copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
  34. } else {
  35. source = $$replace(source, \\\\, /)
  36. target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
  37. target = $$replace(target, \\\\, /)
  38. copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\"
  39. }
  40. }
  41. }
  42. !isEmpty(copyCommand) {
  43. copyCommand = @echo Copying application data... && $$copyCommand
  44. copydeploymentfolders.commands = $$copyCommand
  45. first.depends = $(first) copydeploymentfolders
  46. export(first.depends)
  47. export(copydeploymentfolders.commands)
  48. QMAKE_EXTRA_TARGETS += first copydeploymentfolders
  49. }
  50. } else:unix {
  51. maemo5 {
  52. desktopfile.files = $${TARGET}.desktop
  53. desktopfile.path = /usr/share/applications/hildon
  54. icon.files = $${TARGET}64.png
  55. icon.path = /usr/share/icons/hicolor/64x64/apps
  56. } else {
  57. desktopfile.files = tizmee.desktop
  58. desktopfile.path = /usr/share/applications
  59. icon.files = tizmee80.png tizmee-splash.png
  60. icon.path = /opt/tizmee/
  61. python.files = tizmee.py
  62. python.path = /opt/tizmee/bin/
  63. }
  64. installPrefix = /opt/tizmee/
  65. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  66. item = item$${deploymentfolder}
  67. itemfiles = $${item}.files
  68. $$itemfiles = $$eval($${deploymentfolder}.source)
  69. itempath = $${item}.path
  70. $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
  71. export($$itemfiles)
  72. export($$itempath)
  73. INSTALLS += $$item
  74. }
  75. !isEmpty(desktopfile.path) {
  76. export(icon.files)
  77. export(icon.path)
  78. export(desktopfile.files)
  79. export(desktopfile.path)
  80. export(python.files)
  81. export(python.path)
  82. INSTALLS += icon desktopfile python
  83. }
  84. target.path = $${installPrefix}/bin
  85. export(target.path)
  86. INSTALLS += target
  87. }
  88. export (ICON)
  89. export (INSTALLS)
  90. export (DEPLOYMENT)
  91. export (TARGET.EPOCHEAPSIZE)
  92. export (TARGET.CAPABILITY)
  93. export (LIBS)
  94. export (QMAKE_EXTRA_TARGETS)
  95. }