qmlapplicationviewer.pri 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. # checksum 0x89 version 0x2000a
  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. defineTest(minQtVersion) {
  12. maj = $$1
  13. min = $$2
  14. patch = $$3
  15. isEqual(QT_MAJOR_VERSION, $$maj) {
  16. isEqual(QT_MINOR_VERSION, $$min) {
  17. isEqual(QT_PATCH_VERSION, $$patch) {
  18. return(true)
  19. }
  20. greaterThan(QT_PATCH_VERSION, $$patch) {
  21. return(true)
  22. }
  23. }
  24. greaterThan(QT_MINOR_VERSION, $$min) {
  25. return(true)
  26. }
  27. }
  28. return(false)
  29. }
  30. contains(DEFINES, QMLJSDEBUGGER) {
  31. CONFIG(debug, debug|release) {
  32. !minQtVersion(4, 7, 1) {
  33. warning()
  34. warning("Disabling QML debugging:")
  35. warning()
  36. warning("Debugging QML requires the qmljsdebugger library that ships with Qt Creator.")
  37. warning("This library requires Qt 4.7.1 or newer.")
  38. warning()
  39. DEFINES -= QMLJSDEBUGGER
  40. } else:isEmpty(QMLJSDEBUGGER_PATH) {
  41. warning()
  42. warning("Disabling QML debugging:")
  43. warning()
  44. warning("Debugging QML requires the qmljsdebugger library that ships with Qt Creator.")
  45. warning("Please specify its location on the qmake command line, eg")
  46. warning(" qmake -r QMLJSDEBUGGER_PATH=$CREATORDIR/share/qtcreator/qmljsdebugger")
  47. warning()
  48. DEFINES -= QMLJSDEBUGGER
  49. } else {
  50. include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri)
  51. }
  52. } else {
  53. DEFINES -= QMLJSDEBUGGER
  54. }
  55. }
  56. # This file was generated by an application wizard of Qt Creator.
  57. # The code below handles deployment to Symbian and Maemo, aswell as copying
  58. # of the application data to shadow build directories on desktop.
  59. # It is recommended not to modify this file, since newer versions of Qt Creator
  60. # may offer an updated version of it.
  61. defineTest(qtcAddDeployment) {
  62. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  63. item = item$${deploymentfolder}
  64. itemsources = $${item}.sources
  65. $$itemsources = $$eval($${deploymentfolder}.source)
  66. itempath = $${item}.path
  67. $$itempath= $$eval($${deploymentfolder}.target)
  68. export($$itemsources)
  69. export($$itempath)
  70. DEPLOYMENT += $$item
  71. }
  72. MAINPROFILEPWD = $$PWD
  73. symbian {
  74. ICON = $${TARGET}.svg
  75. TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
  76. contains(DEFINES, ORIENTATIONLOCK):LIBS += -lavkon -leikcore -lcone
  77. contains(DEFINES, NETWORKACCESS):TARGET.CAPABILITY += NetworkServices
  78. } else:win32 {
  79. copyCommand =
  80. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  81. source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
  82. source = $$replace(source, /, \\)
  83. sourcePathSegments = $$split(source, \\)
  84. target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
  85. target = $$replace(target, /, \\)
  86. !isEqual(source,$$target) {
  87. !isEmpty(copyCommand):copyCommand += &&
  88. copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
  89. }
  90. }
  91. !isEmpty(copyCommand) {
  92. copyCommand = @echo Copying application data... && $$copyCommand
  93. copydeploymentfolders.commands = $$copyCommand
  94. first.depends = $(first) copydeploymentfolders
  95. export(first.depends)
  96. export(copydeploymentfolders.commands)
  97. QMAKE_EXTRA_TARGETS += first copydeploymentfolders
  98. }
  99. } else:unix {
  100. maemo5 {
  101. installPrefix = /opt/usr
  102. desktopfile.path = /usr/share/applications/hildon
  103. } else {
  104. installPrefix = /usr/local
  105. desktopfile.path = /usr/share/applications
  106. copyCommand =
  107. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  108. source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
  109. source = $$replace(source, \\, /)
  110. macx {
  111. target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
  112. } else {
  113. target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
  114. }
  115. target = $$replace(target, \\, /)
  116. sourcePathSegments = $$split(source, /)
  117. targetFullPath = $$target/$$last(sourcePathSegments)
  118. !isEqual(source,$$targetFullPath) {
  119. !isEmpty(copyCommand):copyCommand += &&
  120. copyCommand += $(MKDIR) \"$$target\"
  121. copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
  122. }
  123. }
  124. !isEmpty(copyCommand) {
  125. copyCommand = @echo Copying application data... && $$copyCommand
  126. copydeploymentfolders.commands = $$copyCommand
  127. first.depends = $(first) copydeploymentfolders
  128. export(first.depends)
  129. export(copydeploymentfolders.commands)
  130. QMAKE_EXTRA_TARGETS += first copydeploymentfolders
  131. }
  132. }
  133. for(deploymentfolder, DEPLOYMENTFOLDERS) {
  134. item = item$${deploymentfolder}
  135. itemfiles = $${item}.files
  136. $$itemfiles = $$eval($${deploymentfolder}.source)
  137. itempath = $${item}.path
  138. $$itempath = $${installPrefix}/share/$${TARGET}/$$eval($${deploymentfolder}.target)
  139. export($$itemfiles)
  140. export($$itempath)
  141. INSTALLS += $$item
  142. }
  143. icon.files = $${TARGET}.png
  144. icon.path = /usr/share/icons/hicolor/64x64/apps
  145. desktopfile.files = $${TARGET}.desktop
  146. target.path = $${installPrefix}/bin
  147. export(icon.files)
  148. export(icon.path)
  149. export(desktopfile.files)
  150. export(desktopfile.path)
  151. export(target.path)
  152. INSTALLS += desktopfile icon target
  153. }
  154. export (ICON)
  155. export (INSTALLS)
  156. export (DEPLOYMENT)
  157. export (TARGET.EPOCHEAPSIZE)
  158. export (TARGET.CAPABILITY)
  159. export (LIBS)
  160. export (QMAKE_EXTRA_TARGETS)
  161. }