Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Specifying pre-build steps in Qt projects files
Forum Updated to NodeBB v4.3 + New Features

Specifying pre-build steps in Qt projects files

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.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.
  • S Offline
    S Offline
    silicomancer
    wrote on last edited by
    #1

    I need to add pre-builds steps to my Qt projects files (*.pro). I want to automatically and reliably run a script that generates version information into a header (that is included in my code).

    I found QMAKE_POST_LINK and QMAKE_PRE_LINK but nothing similar for build steps.

    On windows side I am generating .vcxproj files from .pro files so adding the build step to my Visual projects directly/manually would be a bad idea.

    Is it true that there is no way to specify (pre-)build steps in Qt project files?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jiangcaiyang
      wrote on last edited by
      #2

      In Qt Creator, you can define custom steps, just in project tab, using up arrow and down arrow to rearrange them as you like.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        silicomancer
        wrote on last edited by
        #3

        Unfortunately I do not use QtCreator.

        Is there any solution using qmake only?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          silicomancer
          wrote on last edited by
          #4

          I created a suggestions: https://bugreports.qt-project.org/browse/QTBUG-35467

          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