qtquick2applicationviewer.pri 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. # checksum 0x7b0d version 0x90005
  2. # This file was generated by the Qt Quick 2 Application wizard of Qt Creator.
  3. # The code below adds the QtQuick2ApplicationViewer to the project and handles
  4. # the 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 += qml quick
  8. SOURCES += $$PWD/qtquick2applicationviewer.cpp
  9. HEADERS += $$PWD/qtquick2applicationviewer.h
  10. INCLUDEPATH += $$PWD
  11. # This file was generated by an application wizard of Qt Creator.
  12. # The code below handles deployment to Android and Maemo, aswell as copying
  13. # of the application data to shadow build directories on desktop.
  14. # It is recommended not to modify this file, since newer versions of Qt Creator
  15. # may offer an updated version of it.
  16. defineTest(qtcAddDeployment) {
  17. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  18. item = item$${deploymentfolder}
  19. greaterThan(QT_MAJOR_VERSION, 4) {
  20. itemsources = $${item}.files
  21. } else {
  22. itemsources = $${item}.sources
  23. }
  24. $$itemsources = $$eval($${deploymentfolder}.source)
  25. itempath = $${item}.path
  26. $$itempath= $$eval($${deploymentfolder}.target)
  27. export($$itemsources)
  28. export($$itempath)
  29. DEPLOYMENT += $$item
  30. }
  31. MAINPROFILEPWD = $$PWD
  32. android-no-sdk {
  33. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  34. item = item$${deploymentfolder}
  35. itemfiles = $${item}.files
  36. $$itemfiles = $$eval($${deploymentfolder}.source)
  37. itempath = $${item}.path
  38. $$itempath = /data/user/qt/$$eval($${deploymentfolder}.target)
  39. export($$itemfiles)
  40. export($$itempath)
  41. INSTALLS += $$item
  42. }
  43. target.path = /data/user/qt
  44. export(target.path)
  45. INSTALLS += target
  46. } else:android {
  47. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  48. item = item$${deploymentfolder}
  49. itemfiles = $${item}.files
  50. $$itemfiles = $$eval($${deploymentfolder}.source)
  51. itempath = $${item}.path
  52. $$itempath = /assets/$$eval($${deploymentfolder}.target)
  53. export($$itemfiles)
  54. export($$itempath)
  55. INSTALLS += $$item
  56. }
  57. x86 {
  58. target.path = /libs/x86
  59. } else: armeabi-v7a {
  60. target.path = /libs/armeabi-v7a
  61. } else {
  62. target.path = /libs/armeabi
  63. }
  64. export(target.path)
  65. INSTALLS += target
  66. } else:win32 {
  67. copyCommand =
  68. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  69. source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
  70. source = $$replace(source, /, \\)
  71. sourcePathSegments = $$split(source, \\)
  72. target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
  73. target = $$replace(target, /, \\)
  74. target ~= s,\\\\\\.?\\\\,\\,
  75. !isEqual(source,$$target) {
  76. !isEmpty(copyCommand):copyCommand += &&
  77. isEqual(QMAKE_DIR_SEP, \\) {
  78. copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
  79. } else {
  80. source = $$replace(source, \\\\, /)
  81. target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
  82. target = $$replace(target, \\\\, /)
  83. copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\"
  84. }
  85. }
  86. }
  87. !isEmpty(copyCommand) {
  88. copyCommand = @echo Copying application data... && $$copyCommand
  89. copydeploymentfolders.commands = $$copyCommand
  90. first.depends = $(first) copydeploymentfolders
  91. export(first.depends)
  92. export(copydeploymentfolders.commands)
  93. QMAKE_EXTRA_TARGETS += first copydeploymentfolders
  94. }
  95. } else:unix {
  96. maemo5 {
  97. desktopfile.files = $${TARGET}.desktop
  98. desktopfile.path = /usr/share/applications/hildon
  99. icon.files = $${TARGET}64.png
  100. icon.path = /usr/share/icons/hicolor/64x64/apps
  101. } else:!isEmpty(MEEGO_VERSION_MAJOR) {
  102. desktopfile.files = $${TARGET}_harmattan.desktop
  103. desktopfile.path = /usr/share/applications
  104. icon.files = $${TARGET}80.png
  105. icon.path = /usr/share/icons/hicolor/80x80/apps
  106. } else { # Assumed to be a Desktop Unix
  107. copyCommand =
  108. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  109. source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
  110. source = $$replace(source, \\\\, /)
  111. macx {
  112. target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
  113. } else {
  114. target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
  115. }
  116. target = $$replace(target, \\\\, /)
  117. sourcePathSegments = $$split(source, /)
  118. targetFullPath = $$target/$$last(sourcePathSegments)
  119. targetFullPath ~= s,/\\.?/,/,
  120. !isEqual(source,$$targetFullPath) {
  121. !isEmpty(copyCommand):copyCommand += &&
  122. copyCommand += $(MKDIR) \"$$target\"
  123. copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
  124. }
  125. }
  126. !isEmpty(copyCommand) {
  127. copyCommand = @echo Copying application data... && $$copyCommand
  128. copydeploymentfolders.commands = $$copyCommand
  129. first.depends = $(first) copydeploymentfolders
  130. export(first.depends)
  131. export(copydeploymentfolders.commands)
  132. QMAKE_EXTRA_TARGETS += first copydeploymentfolders
  133. }
  134. }
  135. !isEmpty(target.path) {
  136. installPrefix = $${target.path}
  137. } else {
  138. installPrefix = /opt/$${TARGET}
  139. }
  140. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  141. item = item$${deploymentfolder}
  142. itemfiles = $${item}.files
  143. $$itemfiles = $$eval($${deploymentfolder}.source)
  144. itempath = $${item}.path
  145. $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
  146. export($$itemfiles)
  147. export($$itempath)
  148. INSTALLS += $$item
  149. }
  150. !isEmpty(desktopfile.path) {
  151. export(icon.files)
  152. export(icon.path)
  153. export(desktopfile.files)
  154. export(desktopfile.path)
  155. INSTALLS += icon desktopfile
  156. }
  157. isEmpty(target.path) {
  158. target.path = $${installPrefix}/bin
  159. export(target.path)
  160. }
  161. INSTALLS += target
  162. }
  163. export (ICON)
  164. export (INSTALLS)
  165. export (DEPLOYMENT)
  166. export (LIBS)
  167. export (QMAKE_EXTRA_TARGETS)
  168. }