Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. qmake custom compiler use output
Forum Updated to NodeBB v4.3 + New Features

qmake custom compiler use output

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
qmakeqmake variablescompilers
1 Posts 1 Posters 722 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Skycoder
    wrote on 5 Dec 2017, 11:36 last edited by Skycoder 12 May 2017, 11:40
    #1

    I am using a custom compiler for qmake to create translations:

    lrelease_compiler.name = lrelease ${QMAKE_FILE_IN}
    lrelease_compiler.input = TRANSLATIONS
    lrelease_compiler.variable_out = TRANSLATIONS_QM
    lrelease_compiler.commands = lrelease ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT}
    lrelease_compiler.output = $$OUT_PWD/${QMAKE_FILE_BASE}.qm
    lrelease_compiler.CONFIG += no_link target_predeps
    
    QMAKE_EXTRA_COMPILERS += lrelease_compiler
    

    The compiler itself works as expected, but the TRANSLATIONS_QM variable stays empty. I want to use the out variable for a install target, as it should theoretically contain the qm-versions of the files, but it doesn't

    message($$TRANSLATIONS_QM)
    ts_install.path = $$[QT_INSTALL_TRANSLATIONS]
    ts_install.CONFIG += no_check_exist
    ts_install.files += $$TRANSLATIONS_QM
    INSTALLS += ts_install
    

    The message directive returns nothing, and the install target is not added to the makefile, i.e. running make install will not copy the generated qm files.

    Is there a way to make use of the variable_out for that purpose?

    1 Reply Last reply
    0

    1/1

    5 Dec 2017, 11:36

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved