Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.8.1
-
None
-
Ubuntu 16.04
-
-
261d7752b00dfe7191ebd1436e9e96a5212e1bb3 (qt-creator/qt-creator/master)
Description
Creating a QMAKE_EXTRA_COMPILERS and writing the output to the targets .files variable should let qt-creator deploy the output to a remote linux device. Using QMAKE_EXTRA_TARGETS and INSTALLS works as expected. This is a small example, which demonstrates the issue.
TEMPLATE = aux DESTDIR = $$shadowed($${PWD}) txt_compiler.output = $$DESTDIR/${QMAKE_FILE_BASE}.txt txt_compiler.commands = echo test > ${QMAKE_FILE_OUT} txt_compiler.depends = ${QMAKE_FILE_IN} txt_compiler.variable_out = TXT.files txt_compiler.input = TXT txt_compiler.CONFIG *= no_link target_predeps QMAKE_EXTRA_COMPILERS *= txt_compiler TXT *= test1.in \ test2.in TXT.path = /test/ TXT.CONFIG *= no_check_exist INSTALLS *= TXT
In this example test1.txt and test2.txt should be deployed by qt-creator, but it is not. On the other hand, running qmake, make and make installs, those files are installed correctly.