michael@0: # checksum 0xcaf1 version 0x4000b michael@0: # This file was generated by the Qt Quick Application wizard of Qt Creator. michael@0: # The code below adds the QmlApplicationViewer to the project and handles the michael@0: # activation of QML debugging. michael@0: # It is recommended not to modify this file, since newer versions of Qt Creator michael@0: # may offer an updated version of it. michael@0: michael@0: QT += declarative michael@0: michael@0: SOURCES += $$PWD/qmlapplicationviewer.cpp michael@0: HEADERS += $$PWD/qmlapplicationviewer.h michael@0: INCLUDEPATH += $$PWD michael@0: michael@0: # Include JS debugger library if QMLJSDEBUGGER_PATH is set michael@0: !isEmpty(QMLJSDEBUGGER_PATH) { michael@0: include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) michael@0: } else { michael@0: DEFINES -= QMLJSDEBUGGER michael@0: } michael@0: # This file was generated by an application wizard of Qt Creator. michael@0: # The code below handles deployment to Symbian and Maemo, aswell as copying michael@0: # of the application data to shadow build directories on desktop. michael@0: # It is recommended not to modify this file, since newer versions of Qt Creator michael@0: # may offer an updated version of it. michael@0: michael@0: defineTest(qtcAddDeployment) { michael@0: for(deploymentfolder, DEPLOYMENTFOLDERS) { michael@0: item = item$${deploymentfolder} michael@0: itemsources = $${item}.sources michael@0: $$itemsources = $$eval($${deploymentfolder}.source) michael@0: itempath = $${item}.path michael@0: $$itempath= $$eval($${deploymentfolder}.target) michael@0: export($$itemsources) michael@0: export($$itempath) michael@0: DEPLOYMENT += $$item michael@0: } michael@0: michael@0: MAINPROFILEPWD = $$PWD michael@0: michael@0: symbian { michael@0: isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg michael@0: isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000 michael@0: } else:win32 { michael@0: copyCommand = michael@0: for(deploymentfolder, DEPLOYMENTFOLDERS) { michael@0: source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) michael@0: source = $$replace(source, /, \\) michael@0: sourcePathSegments = $$split(source, \\) michael@0: target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments) michael@0: target = $$replace(target, /, \\) michael@0: !isEqual(source,$$target) { michael@0: !isEmpty(copyCommand):copyCommand += && michael@0: isEqual(QMAKE_DIR_SEP, \\) { michael@0: copyCommand += $(COPY_DIR) \"$$source\" \"$$target\" michael@0: } else { michael@0: source = $$replace(source, \\\\, /) michael@0: target = $$OUT_PWD/$$eval($${deploymentfolder}.target) michael@0: target = $$replace(target, \\\\, /) michael@0: copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\" michael@0: } michael@0: } michael@0: } michael@0: !isEmpty(copyCommand) { michael@0: copyCommand = @echo Copying application data... && $$copyCommand michael@0: copydeploymentfolders.commands = $$copyCommand michael@0: first.depends = $(first) copydeploymentfolders michael@0: export(first.depends) michael@0: export(copydeploymentfolders.commands) michael@0: QMAKE_EXTRA_TARGETS += first copydeploymentfolders michael@0: } michael@0: } else:unix { michael@0: maemo5 { michael@0: desktopfile.path = /usr/share/applications/hildon michael@0: } else { michael@0: desktopfile.path = /usr/share/applications michael@0: copyCommand = michael@0: for(deploymentfolder, DEPLOYMENTFOLDERS) { michael@0: source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) michael@0: source = $$replace(source, \\\\, /) michael@0: macx { michael@0: target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target) michael@0: } else { michael@0: target = $$OUT_PWD/$$eval($${deploymentfolder}.target) michael@0: } michael@0: target = $$replace(target, \\\\, /) michael@0: sourcePathSegments = $$split(source, /) michael@0: targetFullPath = $$target/$$last(sourcePathSegments) michael@0: !isEqual(source,$$targetFullPath) { michael@0: !isEmpty(copyCommand):copyCommand += && michael@0: copyCommand += $(MKDIR) \"$$target\" michael@0: copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\" michael@0: } michael@0: } michael@0: !isEmpty(copyCommand) { michael@0: copyCommand = @echo Copying application data... && $$copyCommand michael@0: copydeploymentfolders.commands = $$copyCommand michael@0: first.depends = $(first) copydeploymentfolders michael@0: export(first.depends) michael@0: export(copydeploymentfolders.commands) michael@0: QMAKE_EXTRA_TARGETS += first copydeploymentfolders michael@0: } michael@0: } michael@0: installPrefix = /usr michael@0: for(deploymentfolder, DEPLOYMENTFOLDERS) { michael@0: item = item$${deploymentfolder} michael@0: itemfiles = $${item}.files michael@0: $$itemfiles = $$eval($${deploymentfolder}.source) michael@0: itempath = $${item}.path michael@0: $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target) michael@0: export($$itemfiles) michael@0: export($$itempath) michael@0: INSTALLS += $$item michael@0: } michael@0: icon.files = icons/$${TARGET}.svg michael@0: icon.path = /usr/share/icons/hicolor/scalable/apps michael@0: desktopfile.files = pkgs/$${TARGET}.desktop michael@0: target.path = $${installPrefix}/bin michael@0: export(icon.files) michael@0: export(icon.path) michael@0: export(desktopfile.files) michael@0: export(desktopfile.path) michael@0: export(target.path) michael@0: INSTALLS += desktopfile icon target michael@0: } michael@0: michael@0: export (ICON) michael@0: export (INSTALLS) michael@0: export (DEPLOYMENT) michael@0: export (TARGET.EPOCHEAPSIZE) michael@0: export (TARGET.CAPABILITY) michael@0: export (LIBS) michael@0: export (QMAKE_EXTRA_TARGETS) michael@0: }