Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. qmake pre-compiling
Qt 6.12 LTS is out! See what's new in the release blog

qmake pre-compiling

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 724 Views
  • 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.
  • M Offline
    M Offline
    MaxBec
    wrote on last edited by
    #1

    Hey guys,

    i have a question on how to handle pre-compiled files.
    In my case i would like to precompile some IDL Files with the TAO and Opendds IDL Compilers.

    I do it this way:

    opendds_idl.CONFIG = target_predeps
    opendds_idl.dependency_type = TYPE_C
    opendds_idl.commands = $$OPENDDS_IDL_COMPILER ${QMAKE_FILE_NAME}
    opendds_idl.input = IDL_FILES
    opendds_idl.output = $$IDL_FILES_DIR/${QMAKE_FILE_BASE}TypeSupport.idl
    opendds_idl.clean = $$IDL_FILES_DIR/${QMAKE_FILE_BASE}TypeSupportImpl.cpp \
                   $$IDL_FILES_DIR/${QMAKE_FILE_BASE}TypeSupportImpl.h
    opendds_idl.variable_out = IDL_FILES_C
    silent:opendds_idl.commands = @echo $$OPENDDS_IDL_COMPILER ${QMAKE_FILE_IN} && $$opendds_idl.commands
    QMAKE_EXTRA_COMPILERS += opendds_idl
    

    The problem i am facing now is, that i dont know how to split the generated files into more than one variable. The .cpp and .h files should be placed into SOURCES. THe generated .idl file should be placed into IDL_FILES so that i can use it in the second pre-compilation-step with the TAO-IDL-Compiler.

    Any suggestions on how to do that?

    Kind Regards and thank you very much!

    1 Reply Last reply
    0

    • Login

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