qmlapplicationviewer.pri 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. # checksum 0xcaf1 version 0x4000b
  2. # This file was generated by the Qt Quick Application wizard of Qt Creator.
  3. # The code below adds the QmlApplicationViewer to the project and handles the
  4. # activation of QML debugging.
  5. # It is recommended not to modify this file, since newer versions of Qt Creator
  6. # may offer an updated version of it.
  7. QT += declarative
  8. SOURCES += $$PWD/qmlapplicationviewer.cpp
  9. HEADERS += $$PWD/qmlapplicationviewer.h
  10. INCLUDEPATH += $$PWD
  11. # Include JS debugger library if QMLJSDEBUGGER_PATH is set
  12. !isEmpty(QMLJSDEBUGGER_PATH) {
  13. include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri)
  14. } else {
  15. DEFINES -= QMLJSDEBUGGER
  16. }
  17. # This file was generated by an application wizard of Qt Creator.
  18. # The code below handles deployment to Symbian and Maemo, aswell as copying
  19. # of the application data to shadow build directories on desktop.
  20. # It is recommended not to modify this file, since newer versions of Qt Creator
  21. # may offer an updated version of it.
  22. defineTest(qtcAddDeployment) {
  23. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  24. item = item$${deploymentfolder}
  25. itemsources = $${item}.sources
  26. $$itemsources = $$eval($${deploymentfolder}.source)
  27. itempath = $${item}.path
  28. $$itempath= $$eval($${deploymentfolder}.target)
  29. export($$itemsources)
  30. export($$itempath)
  31. DEPLOYMENT += $$item
  32. }
  33. MAINPROFILEPWD = $$PWD
  34. symbian {
  35. isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg
  36. isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
  37. } else:win32 {
  38. copyCommand =
  39. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  40. source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
  41. source = $$replace(source, /, \\)
  42. sourcePathSegments = $$split(source, \\)
  43. target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
  44. target = $$replace(target, /, \\)
  45. !isEqual(source,$$target) {
  46. !isEmpty(copyCommand):copyCommand += &&
  47. isEqual(QMAKE_DIR_SEP, \\) {
  48. copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
  49. } else {
  50. source = $$replace(source, \\\\, /)
  51. target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
  52. target = $$replace(target, \\\\, /)
  53. copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\"
  54. }
  55. }
  56. }
  57. !isEmpty(copyCommand) {
  58. copyCommand = @echo Copying application data... && $$copyCommand
  59. copydeploymentfolders.commands = $$copyCommand
  60. first.depends = $(first) copydeploymentfolders
  61. export(first.depends)
  62. export(copydeploymentfolders.commands)
  63. QMAKE_EXTRA_TARGETS += first copydeploymentfolders
  64. }
  65. } else:unix {
  66. maemo5 {
  67. desktopfile.path = /usr/share/applications/hildon
  68. } else {
  69. desktopfile.path = /usr/share/applications
  70. copyCommand =
  71. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  72. source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
  73. source = $$replace(source, \\\\, /)
  74. macx {
  75. target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
  76. } else {
  77. target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
  78. }
  79. target = $$replace(target, \\\\, /)
  80. sourcePathSegments = $$split(source, /)
  81. targetFullPath = $$target/$$last(sourcePathSegments)
  82. !isEqual(source,$$targetFullPath) {
  83. !isEmpty(copyCommand):copyCommand += &&
  84. copyCommand += $(MKDIR) \"$$target\"
  85. copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
  86. }
  87. }
  88. !isEmpty(copyCommand) {
  89. copyCommand = @echo Copying application data... && $$copyCommand
  90. copydeploymentfolders.commands = $$copyCommand
  91. first.depends = $(first) copydeploymentfolders
  92. export(first.depends)
  93. export(copydeploymentfolders.commands)
  94. QMAKE_EXTRA_TARGETS += first copydeploymentfolders
  95. }
  96. }
  97. installPrefix = /opt/$${TARGET}
  98. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  99. item = item$${deploymentfolder}
  100. itemfiles = $${item}.files
  101. $$itemfiles = $$eval($${deploymentfolder}.source)
  102. itempath = $${item}.path
  103. $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
  104. export($$itemfiles)
  105. export($$itempath)
  106. INSTALLS += $$item
  107. }
  108. icon.files = $${TARGET}.png
  109. icon.path = /usr/share/icons/hicolor/64x64/apps
  110. desktopfile.files = $${TARGET}.desktop
  111. target.path = $${installPrefix}/bin
  112. export(icon.files)
  113. export(icon.path)
  114. export(desktopfile.files)
  115. export(desktopfile.path)
  116. export(target.path)
  117. INSTALLS += desktopfile icon target
  118. }
  119. export (ICON)
  120. export (INSTALLS)
  121. export (DEPLOYMENT)
  122. export (TARGET.EPOCHEAPSIZE)
  123. export (TARGET.CAPABILITY)
  124. export (LIBS)
  125. export (QMAKE_EXTRA_TARGETS)
  126. }