Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Correct way for adding build steps
Forum Updated to NodeBB v4.3 + New Features

Correct way for adding build steps

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

    Hello everyone,

    i have a question regarding the generation of additional files with additional compilers.

    So my plan is the following:

    I have 2 compilers: tao_idl.exe and opendds_idl.exe. These Compilers generate 8 files which i need in my project. Now i want these compilers to be called everytime a person hits build in qt creator. How can i realize that. Additionally the solution must be sharable in the ende, so that other persons working on the project can load a file or something and have the possibility to generate the files as well.

    Thank you for your answers.
    Kind Regards,
    Max

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you mean something like described here ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @MaxBec:

        Additionally to @SGaist, there is also the following documentation:

        http://doc.qt.io/qt-5/qmake-advanced-usage.html
        https://stackoverflow.com/questions/15864689/qmake-pre-build-step-before-any-compilation

        Qt has to stay free or it will die.

        1 Reply Last reply
        1
        • M Offline
          M Offline
          MaxBec
          wrote on last edited by
          #4

          Hey guys,

          thank you for the links. They gave me a lot of interesting information.
          Now there is one problem left.
          This call generates 3 Files. One IDL-File for another preprocessing step, 1 Header and 1 Source File.

          opendds_idl.CONFIG = target_predeps
          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.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 is how can i put the output files in different Output variables? With the variable_out parameter i can select a variable. But i need 3 different variables. The IDL file in IDL_FILES_C, the header file in HEADERS and the source file in SOURCES.

          I hope someone of you has a solution for that.

          Thank you!

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            I don't think you can do it directly, you might have to do some string processing to split the output into something you can use.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            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 Extensions
            • Unsolved