Important: Please read the Qt Code of Conduct -

qmake pre-compiling

  • 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 \
    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!

Log in to reply