myqmlapplicationviewer.pri 4.4 KB

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