qtquick2applicationviewer.pri 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. # checksum 0xe811 version 0x80001
  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 {
  33. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  34. item = item$${deploymentfolder}
  35. itemfiles = $${item}.files
  36. $$itemfiles = $$eval($${deploymentfolder}.source)
  37. itempath = $${item}.path
  38. $$itempath = /assets/$$eval($${deploymentfolder}.target)
  39. export($$itemfiles)
  40. export($$itempath)
  41. INSTALLS += $$item
  42. }
  43. x86 {
  44. target.path = /libs/x86
  45. } else: armeabi-v7a {
  46. target.path = /libs/armeabi-v7a
  47. } else {
  48. target.path = /libs/armeabi
  49. }
  50. export(target.path)
  51. INSTALLS += target
  52. } else:win32 {
  53. copyCommand =
  54. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  55. source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
  56. source = $$replace(source, /, \\)
  57. sourcePathSegments = $$split(source, \\)
  58. target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
  59. target = $$replace(target, /, \\)
  60. target ~= s,\\\\\\.?\\\\,\\,
  61. !isEqual(source,$$target) {
  62. !isEmpty(copyCommand):copyCommand += &&
  63. isEqual(QMAKE_DIR_SEP, \\) {
  64. copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
  65. } else {
  66. source = $$replace(source, \\\\, /)
  67. target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
  68. target = $$replace(target, \\\\, /)
  69. copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\"
  70. }
  71. }
  72. }
  73. !isEmpty(copyCommand) {
  74. copyCommand = @echo Copying application data... && $$copyCommand
  75. copydeploymentfolders.commands = $$copyCommand
  76. first.depends = $(first) copydeploymentfolders
  77. export(first.depends)
  78. export(copydeploymentfolders.commands)
  79. QMAKE_EXTRA_TARGETS += first copydeploymentfolders
  80. }
  81. } else:unix {
  82. maemo5 {
  83. desktopfile.files = $${TARGET}.desktop
  84. desktopfile.path = /usr/share/applications/hildon
  85. icon.files = $${TARGET}64.png
  86. icon.path = /usr/share/icons/hicolor/64x64/apps
  87. } else:!isEmpty(MEEGO_VERSION_MAJOR) {
  88. desktopfile.files = $${TARGET}_harmattan.desktop
  89. desktopfile.path = /usr/share/applications
  90. icon.files = $${TARGET}80.png
  91. icon.path = /usr/share/icons/hicolor/80x80/apps
  92. } else { # Assumed to be a Desktop Unix
  93. copyCommand =
  94. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  95. source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
  96. source = $$replace(source, \\\\, /)
  97. macx {
  98. target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
  99. } else {
  100. target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
  101. }
  102. target = $$replace(target, \\\\, /)
  103. sourcePathSegments = $$split(source, /)
  104. targetFullPath = $$target/$$last(sourcePathSegments)
  105. targetFullPath ~= s,/\\.?/,/,
  106. !isEqual(source,$$targetFullPath) {
  107. !isEmpty(copyCommand):copyCommand += &&
  108. copyCommand += $(MKDIR) \"$$target\"
  109. copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
  110. }
  111. }
  112. !isEmpty(copyCommand) {
  113. copyCommand = @echo Copying application data... && $$copyCommand
  114. copydeploymentfolders.commands = $$copyCommand
  115. first.depends = $(first) copydeploymentfolders
  116. export(first.depends)
  117. export(copydeploymentfolders.commands)
  118. QMAKE_EXTRA_TARGETS += first copydeploymentfolders
  119. }
  120. }
  121. installPrefix = /opt/$${TARGET}
  122. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  123. item = item$${deploymentfolder}
  124. itemfiles = $${item}.files
  125. $$itemfiles = $$eval($${deploymentfolder}.source)
  126. itempath = $${item}.path
  127. $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
  128. export($$itemfiles)
  129. export($$itempath)
  130. INSTALLS += $$item
  131. }
  132. !isEmpty(desktopfile.path) {
  133. export(icon.files)
  134. export(icon.path)
  135. export(desktopfile.files)
  136. export(desktopfile.path)
  137. INSTALLS += icon desktopfile
  138. }
  139. target.path = $${installPrefix}/bin
  140. export(target.path)
  141. INSTALLS += target
  142. }
  143. export (ICON)
  144. export (INSTALLS)
  145. export (DEPLOYMENT)
  146. export (LIBS)
  147. export (QMAKE_EXTRA_TARGETS)
  148. }