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. How to make DESTDIR correspond to different building configuration in *.pro files?
Qt 6.11 is out! See what's new in the release blog

How to make DESTDIR correspond to different building configuration in *.pro files?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.1k 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
    szuzsq
    wrote on last edited by
    #1

    I know "DESTDIR = bin", it means generate under the directory bin...

    but my problem is: I make 6 building configurations as step below:
    "Projects/Build & Run/Build Settings/Edit build configuration:"

    In here, I make 6 configurations:
    1).iPhone3GS_Debug
    2).iPhone3GS_Release
    3).iPhone3GS_Release_Trial
    4).iPhone4_Debug
    5).iPhone4_Release
    6).iPhone4_Release_Trial

    So when choose iPhone3GS_Debug, I like to generate at:
    "DESTDIR = bin/iPhone3GS_Debug"

    when choose iPhone3GS_Release, I like to generate at:
    "DESTDIR = bin/iPhone3GS_Release"

    when choose iPhone3GS_Release_Trial, I like to generate at:
    "DESTDIR = bin/iPhone3GS_Release_Trial"
    .......
    .......
    and so on.

    ======================
    is there any way to do it? for example:
    DESTDIR = bin/$$CONFIGURATION

    (of course $$CONFIGURATION is wrong, but which is right????)

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Either define constant in your configuration and then use conditionals in .pro file, or use shadow building.

      (Z(:^

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

        [quote author="sierdzio" date="1363680253"]then use conditionals in .pro file[/quote]

        how to do that?

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          "Shadow builds":http://qt-project.org/doc/qtcreator-2.6/creator-project-opening.html are part of the configuration possibilities Qt creator.

          Vote the answer(s) that helped you to solve your issue(s)

          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