Editing Mbarcode Plugin Tutorial - Qt SDK
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 46: | Line 46: | ||
qtcAddDeployment() | qtcAddDeployment() | ||
</syntaxhighlight> | </syntaxhighlight> | ||
- | |||
- | |||
Next we are going to add our deployment script, this in necessary for creating the DEB file used to install your plugin. | Next we are going to add our deployment script, this in necessary for creating the DEB file used to install your plugin. | ||
Line 75: | Line 73: | ||
MAINPROFILEPWD = $$PWD | MAINPROFILEPWD = $$PWD | ||
- | + | symbian { | |
- | maemo5 { | + | isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg |
+ | isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000 | ||
+ | } else:win32 { | ||
+ | copyCommand = | ||
+ | for(deploymentfolder, DEPLOYMENTFOLDERS) { | ||
+ | source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) | ||
+ | source = $$replace(source, /, \\) | ||
+ | sourcePathSegments = $$split(source, \\) | ||
+ | target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments) | ||
+ | target = $$replace(target, /, \\) | ||
+ | !isEqual(source,$$target) { | ||
+ | !isEmpty(copyCommand):copyCommand += && | ||
+ | copyCommand += $(COPY_DIR) \"$$source\" \"$$target\" | ||
+ | } | ||
+ | } | ||
+ | !isEmpty(copyCommand) { | ||
+ | copyCommand = @echo Copying application data... && $$copyCommand | ||
+ | copydeploymentfolders.commands = $$copyCommand | ||
+ | first.depends = $(first) copydeploymentfolders | ||
+ | export(first.depends) | ||
+ | export(copydeploymentfolders.commands) | ||
+ | QMAKE_EXTRA_TARGETS += first copydeploymentfolders | ||
+ | } | ||
+ | } else:unix { | ||
+ | maemo5 { | ||
+ | installPrefix = /usr/share/mbarcode/plugins | ||
+ | } else { | ||
installPrefix = /usr/share/mbarcode/plugins | installPrefix = /usr/share/mbarcode/plugins | ||
- | } | + | copyCommand = |
+ | for(deploymentfolder, DEPLOYMENTFOLDERS) { | ||
+ | source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) | ||
+ | source = $$replace(source, \\, /) | ||
+ | macx { | ||
+ | target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target) | ||
+ | } else { | ||
+ | target = $$OUT_PWD/$$eval($${deploymentfolder}.target) | ||
+ | } | ||
+ | target = $$replace(target, \\, /) | ||
+ | sourcePathSegments = $$split(source, /) | ||
+ | targetFullPath = $$target/$$last(sourcePathSegments) | ||
+ | !isEqual(source,$$targetFullPath) { | ||
+ | !isEmpty(copyCommand):copyCommand += && | ||
+ | copyCommand += $(MKDIR) \"$$target\" | ||
+ | copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\" | ||
+ | } | ||
+ | } | ||
+ | !isEmpty(copyCommand) { | ||
+ | copyCommand = @echo Copying application data... && $$copyCommand | ||
+ | copydeploymentfolders.commands = $$copyCommand | ||
+ | first.depends = $(first) copydeploymentfolders | ||
+ | export(first.depends) | ||
+ | export(copydeploymentfolders.commands) | ||
+ | QMAKE_EXTRA_TARGETS += first copydeploymentfolders | ||
+ | } | ||
+ | } | ||
for(deploymentfolder, DEPLOYMENTFOLDERS) { | for(deploymentfolder, DEPLOYMENTFOLDERS) { | ||
item = item$${deploymentfolder} | item = item$${deploymentfolder} |
Learn more about Contributing to the wiki.