[Qt-creator] install static files in standalone plugins

Petr Vaněk petr at yarpen.cz
Sat Jan 31 17:24:50 CET 2015


hi all,

what is proposed style of installing static files (wizards, templates,
snippets) in case of development of 3rd part standalone plugin, please?

I tried to copy this part of static.pro file into my project file

copy2build.input = OTHER_FILES

copy2build.output = $$IDE_DATA_PATH/${QMAKE_FUNC_FILE_IN_stripSrcDir}

isEmpty(vcproj):copy2build.variable_out = PRE_TARGETDEPS

win32:copy2build.commands = $$QMAKE_COPY \"${QMAKE_FILE_IN}\" \"${QMAKE_FILE_OUT}\"

unix:copy2build.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}

copy2build.name = COPY ${QMAKE_FILE_IN}

copy2build.CONFIG += no_link

QMAKE_EXTRA_COMPILERS += copy2build


the command is created correctly:

cp -f ../qorus-plugin/templates/wizards/files/qore-library/wizard.json
../build-qtcreator-Desktop_Qt_5_4_0_clang_64bit-Debug/bin/Qorus\
IDE.app/Contents/Resources/templates/wizards/files/qore-library/wizard.json


The subdir does not exist in the target so cp fails with "No such file
or directory" error.

But I really cannot find the place where is the "share" dir tree created
in qt-creator project at all. can anybody point me to the code, please?

thanks,
petr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20150131/71d46b76/attachment.html>


More information about the Qt-creator mailing list