qmlapplicationviewer.pri 5.9 KB

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