qmlapplicationviewer.pri 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. # checksum 0x368d version 0x60010
  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. contains(CONFIG,qdeclarative-boostable):contains(MEEGO_EDITION,harmattan) {
  18. DEFINES += HARMATTAN_BOOSTER
  19. }
  20. # This file was generated by an application wizard of Qt Creator.
  21. # The code below handles deployment to Symbian and Maemo, aswell as copying
  22. # of the application data to shadow build directories on desktop.
  23. # It is recommended not to modify this file, since newer versions of Qt Creator
  24. # may offer an updated version of it.
  25. defineTest(qtcAddDeployment) {
  26. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  27. item = item$${deploymentfolder}
  28. itemsources = $${item}.sources
  29. $$itemsources = $$eval($${deploymentfolder}.source)
  30. itempath = $${item}.path
  31. $$itempath= $$eval($${deploymentfolder}.target)
  32. export($$itemsources)
  33. export($$itempath)
  34. DEPLOYMENT += $$item
  35. }
  36. MAINPROFILEPWD = $$PWD
  37. symbian {
  38. isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg
  39. isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
  40. } else:win32 {
  41. copyCommand =
  42. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  43. source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
  44. source = $$replace(source, /, \\)
  45. sourcePathSegments = $$split(source, \\)
  46. target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
  47. target = $$replace(target, /, \\)
  48. !isEqual(source,$$target) {
  49. !isEmpty(copyCommand):copyCommand += &&
  50. isEqual(QMAKE_DIR_SEP, \\) {
  51. copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
  52. } else {
  53. source = $$replace(source, \\\\, /)
  54. target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
  55. target = $$replace(target, \\\\, /)
  56. copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\"
  57. }
  58. }
  59. }
  60. !isEmpty(copyCommand) {
  61. copyCommand = @echo Copying application data... && $$copyCommand
  62. copydeploymentfolders.commands = $$copyCommand
  63. first.depends = $(first) copydeploymentfolders
  64. export(first.depends)
  65. export(copydeploymentfolders.commands)
  66. QMAKE_EXTRA_TARGETS += first copydeploymentfolders
  67. }
  68. } else:unix {
  69. maemo5 {
  70. desktopfile.files = $${TARGET}.desktop
  71. desktopfile.path = /usr/share/applications/hildon
  72. icon.files = $${TARGET}64.png
  73. icon.path = /usr/share/icons/hicolor/64x64/apps
  74. } else:!isEmpty(MEEGO_VERSION_MAJOR) {
  75. desktopfile.files = $${TARGET}_harmattan.desktop
  76. desktopfile.path = /usr/share/applications
  77. icon.files = $${TARGET}80.png
  78. icon.path = /usr/share/icons/hicolor/80x80/apps
  79. } else { # Assumed to be a Desktop Unix
  80. copyCommand =
  81. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  82. source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
  83. source = $$replace(source, \\\\, /)
  84. macx {
  85. target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
  86. } else {
  87. target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
  88. }
  89. target = $$replace(target, \\\\, /)
  90. sourcePathSegments = $$split(source, /)
  91. targetFullPath = $$target/$$last(sourcePathSegments)
  92. !isEqual(source,$$targetFullPath) {
  93. !isEmpty(copyCommand):copyCommand += &&
  94. copyCommand += $(MKDIR) \"$$target\"
  95. copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
  96. }
  97. }
  98. !isEmpty(copyCommand) {
  99. copyCommand = @echo Copying application data... && $$copyCommand
  100. copydeploymentfolders.commands = $$copyCommand
  101. first.depends = $(first) copydeploymentfolders
  102. export(first.depends)
  103. export(copydeploymentfolders.commands)
  104. QMAKE_EXTRA_TARGETS += first copydeploymentfolders
  105. }
  106. }
  107. installPrefix = /opt/$${TARGET}
  108. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  109. item = item$${deploymentfolder}
  110. itemfiles = $${item}.files
  111. $$itemfiles = $$eval($${deploymentfolder}.source)
  112. itempath = $${item}.path
  113. $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
  114. export($$itemfiles)
  115. export($$itempath)
  116. INSTALLS += $$item
  117. }
  118. !isEmpty(desktopfile.path) {
  119. export(icon.files)
  120. export(icon.path)
  121. export(desktopfile.files)
  122. export(desktopfile.path)
  123. INSTALLS += icon desktopfile
  124. }
  125. target.path = $${installPrefix}/bin
  126. export(target.path)
  127. INSTALLS += target
  128. }
  129. export (ICON)
  130. export (INSTALLS)
  131. export (DEPLOYMENT)
  132. export (TARGET.EPOCHEAPSIZE)
  133. export (TARGET.CAPABILITY)
  134. export (LIBS)
  135. export (QMAKE_EXTRA_TARGETS)
  136. }