qmlapplicationviewer.pri 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. # checksum 0x82af version 0x6000f
  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.files = $${TARGET}.desktop
  68. desktopfile.path = /usr/share/applications/hildon
  69. icon.files = $${TARGET}64.png
  70. icon.path = /usr/share/icons/hicolor/64x64/apps
  71. } else:!isEmpty(MEEGO_VERSION_MAJOR) {
  72. desktopfile.files = $${TARGET}_harmattan.desktop
  73. desktopfile.path = /usr/share/applications
  74. icon.files = $${TARGET}80.png
  75. icon.path = /usr/share/icons/hicolor/80x80/apps
  76. } else { # Assumed to be a Desktop Unix
  77. copyCommand =
  78. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  79. source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
  80. source = $$replace(source, \\\\, /)
  81. macx {
  82. target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
  83. } else {
  84. target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
  85. }
  86. target = $$replace(target, \\\\, /)
  87. sourcePathSegments = $$split(source, /)
  88. targetFullPath = $$target/$$last(sourcePathSegments)
  89. !isEqual(source,$$targetFullPath) {
  90. !isEmpty(copyCommand):copyCommand += &&
  91. copyCommand += $(MKDIR) \"$$target\"
  92. copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
  93. }
  94. }
  95. !isEmpty(copyCommand) {
  96. copyCommand = @echo Copying application data... && $$copyCommand
  97. copydeploymentfolders.commands = $$copyCommand
  98. first.depends = $(first) copydeploymentfolders
  99. export(first.depends)
  100. export(copydeploymentfolders.commands)
  101. QMAKE_EXTRA_TARGETS += first copydeploymentfolders
  102. }
  103. }
  104. installPrefix = /opt/$${TARGET}
  105. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  106. item = item$${deploymentfolder}
  107. itemfiles = $${item}.files
  108. $$itemfiles = $$eval($${deploymentfolder}.source)
  109. itempath = $${item}.path
  110. $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
  111. export($$itemfiles)
  112. export($$itempath)
  113. INSTALLS += $$item
  114. }
  115. !isEmpty(desktopfile.path) {
  116. export(icon.files)
  117. export(icon.path)
  118. export(desktopfile.files)
  119. export(desktopfile.path)
  120. INSTALLS += icon desktopfile
  121. }
  122. target.path = $${installPrefix}/bin
  123. export(target.path)
  124. INSTALLS += target
  125. }
  126. export (ICON)
  127. export (INSTALLS)
  128. export (DEPLOYMENT)
  129. export (TARGET.EPOCHEAPSIZE)
  130. export (TARGET.CAPABILITY)
  131. export (LIBS)
  132. export (QMAKE_EXTRA_TARGETS)
  133. }