qmlapplicationviewer/qmlapplicationviewer.pri

Fri, 08 Jul 2011 21:05:20 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 08 Jul 2011 21:05:20 +0200
changeset 0
ff1b43f833a9
permissions
-rw-r--r--

Import first revisions of new project SchachUhr.

michael@0 1 # checksum 0xcaf1 version 0x4000b
michael@0 2 # This file was generated by the Qt Quick Application wizard of Qt Creator.
michael@0 3 # The code below adds the QmlApplicationViewer to the project and handles the
michael@0 4 # activation of QML debugging.
michael@0 5 # It is recommended not to modify this file, since newer versions of Qt Creator
michael@0 6 # may offer an updated version of it.
michael@0 7
michael@0 8 QT += declarative
michael@0 9
michael@0 10 SOURCES += $$PWD/qmlapplicationviewer.cpp
michael@0 11 HEADERS += $$PWD/qmlapplicationviewer.h
michael@0 12 INCLUDEPATH += $$PWD
michael@0 13
michael@0 14 # Include JS debugger library if QMLJSDEBUGGER_PATH is set
michael@0 15 !isEmpty(QMLJSDEBUGGER_PATH) {
michael@0 16 include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri)
michael@0 17 } else {
michael@0 18 DEFINES -= QMLJSDEBUGGER
michael@0 19 }
michael@0 20 # This file was generated by an application wizard of Qt Creator.
michael@0 21 # The code below handles deployment to Symbian and Maemo, aswell as copying
michael@0 22 # of the application data to shadow build directories on desktop.
michael@0 23 # It is recommended not to modify this file, since newer versions of Qt Creator
michael@0 24 # may offer an updated version of it.
michael@0 25
michael@0 26 defineTest(qtcAddDeployment) {
michael@0 27 for(deploymentfolder, DEPLOYMENTFOLDERS) {
michael@0 28 item = item$${deploymentfolder}
michael@0 29 itemsources = $${item}.sources
michael@0 30 $$itemsources = $$eval($${deploymentfolder}.source)
michael@0 31 itempath = $${item}.path
michael@0 32 $$itempath= $$eval($${deploymentfolder}.target)
michael@0 33 export($$itemsources)
michael@0 34 export($$itempath)
michael@0 35 DEPLOYMENT += $$item
michael@0 36 }
michael@0 37
michael@0 38 MAINPROFILEPWD = $$PWD
michael@0 39
michael@0 40 symbian {
michael@0 41 isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg
michael@0 42 isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
michael@0 43 } else:win32 {
michael@0 44 copyCommand =
michael@0 45 for(deploymentfolder, DEPLOYMENTFOLDERS) {
michael@0 46 source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
michael@0 47 source = $$replace(source, /, \\)
michael@0 48 sourcePathSegments = $$split(source, \\)
michael@0 49 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
michael@0 50 target = $$replace(target, /, \\)
michael@0 51 !isEqual(source,$$target) {
michael@0 52 !isEmpty(copyCommand):copyCommand += &&
michael@0 53 isEqual(QMAKE_DIR_SEP, \\) {
michael@0 54 copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
michael@0 55 } else {
michael@0 56 source = $$replace(source, \\\\, /)
michael@0 57 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
michael@0 58 target = $$replace(target, \\\\, /)
michael@0 59 copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\"
michael@0 60 }
michael@0 61 }
michael@0 62 }
michael@0 63 !isEmpty(copyCommand) {
michael@0 64 copyCommand = @echo Copying application data... && $$copyCommand
michael@0 65 copydeploymentfolders.commands = $$copyCommand
michael@0 66 first.depends = $(first) copydeploymentfolders
michael@0 67 export(first.depends)
michael@0 68 export(copydeploymentfolders.commands)
michael@0 69 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
michael@0 70 }
michael@0 71 } else:unix {
michael@0 72 maemo5 {
michael@0 73 desktopfile.path = /usr/share/applications/hildon
michael@0 74 } else {
michael@0 75 desktopfile.path = /usr/share/applications
michael@0 76 copyCommand =
michael@0 77 for(deploymentfolder, DEPLOYMENTFOLDERS) {
michael@0 78 source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
michael@0 79 source = $$replace(source, \\\\, /)
michael@0 80 macx {
michael@0 81 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
michael@0 82 } else {
michael@0 83 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
michael@0 84 }
michael@0 85 target = $$replace(target, \\\\, /)
michael@0 86 sourcePathSegments = $$split(source, /)
michael@0 87 targetFullPath = $$target/$$last(sourcePathSegments)
michael@0 88 !isEqual(source,$$targetFullPath) {
michael@0 89 !isEmpty(copyCommand):copyCommand += &&
michael@0 90 copyCommand += $(MKDIR) \"$$target\"
michael@0 91 copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
michael@0 92 }
michael@0 93 }
michael@0 94 !isEmpty(copyCommand) {
michael@0 95 copyCommand = @echo Copying application data... && $$copyCommand
michael@0 96 copydeploymentfolders.commands = $$copyCommand
michael@0 97 first.depends = $(first) copydeploymentfolders
michael@0 98 export(first.depends)
michael@0 99 export(copydeploymentfolders.commands)
michael@0 100 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
michael@0 101 }
michael@0 102 }
michael@0 103 installPrefix = /usr
michael@0 104 for(deploymentfolder, DEPLOYMENTFOLDERS) {
michael@0 105 item = item$${deploymentfolder}
michael@0 106 itemfiles = $${item}.files
michael@0 107 $$itemfiles = $$eval($${deploymentfolder}.source)
michael@0 108 itempath = $${item}.path
michael@0 109 $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
michael@0 110 export($$itemfiles)
michael@0 111 export($$itempath)
michael@0 112 INSTALLS += $$item
michael@0 113 }
michael@0 114 icon.files = icons/$${TARGET}.svg
michael@0 115 icon.path = /usr/share/icons/hicolor/scalable/apps
michael@0 116 desktopfile.files = pkgs/$${TARGET}.desktop
michael@0 117 target.path = $${installPrefix}/bin
michael@0 118 export(icon.files)
michael@0 119 export(icon.path)
michael@0 120 export(desktopfile.files)
michael@0 121 export(desktopfile.path)
michael@0 122 export(target.path)
michael@0 123 INSTALLS += desktopfile icon target
michael@0 124 }
michael@0 125
michael@0 126 export (ICON)
michael@0 127 export (INSTALLS)
michael@0 128 export (DEPLOYMENT)
michael@0 129 export (TARGET.EPOCHEAPSIZE)
michael@0 130 export (TARGET.CAPABILITY)
michael@0 131 export (LIBS)
michael@0 132 export (QMAKE_EXTRA_TARGETS)
michael@0 133 }

mercurial