[Qt-creator] install static files in standalone plugins

Petr Vaněk petr at yarpen.cz
Wed Feb 4 20:35:05 CET 2015


On 02/02/15 10:33, Oswald Buddenhagen wrote:
> On Sat, Jan 31, 2015 at 05:24:50PM +0100, Petr Vaněk wrote:
>> copy2build.output = $$IDE_DATA_PATH/${QMAKE_FUNC_FILE_IN_stripSrcDir}
>>  [...]
>> 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?
>>
> there is no such code. qmake should create it automatically according
> to the .output member above.
Thanks, Oswald.

But I think I have to do something really wrongly.

DISTFILES += \

    share/templates/wizards/files/qore-library/wizard.json \
    ...

q_copy2build.input = DISTFILES

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

isEmpty(vcproj):q_copy2build.variable_out = PRE_TARGETDEPS

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

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

q_copy2build.name = COPY ${QMAKE_FILE_IN}

q_copy2build.CONFIG += no_link

QMAKE_EXTRA_COMPILERS += q_copy2build


it results in:

13:28:04: Starting: "/usr/bin/make"

/Users/pvanek/Qt/5.4/clang_64/bin/qmake -spec macx-clang CONFIG+=debug
CONFIG+=x86_64 -o Makefile ../qorus-plugin/qorus-ide.pro

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

cp: ../build-qtcreator-Desktop_Qt_5_4_0_clang_64bit-Debug/bin/Qorus
IDE.app/Contents/Resources/share/templates/wizards/files/qore-library/wizard.json:
No such file or directory


The input file exists. But the target cannot be created because there is
no such directory
../build-qtcreator-Desktop_Qt_5_4_0_clang_64bit-Debug/bin/Qorus\
IDE.app/Contents/Resources/share/templates/wizards/files/qore-library/
The dir tree under Resources is not created

For now I'm using a workaround witha  customs script:

unix:q_copy2build.commands = ../qorus-ide/wizards-deploy.q ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}



but thanks anyway,
Petr


> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator

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


More information about the Qt-creator mailing list