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



  • 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????)


  • Moderators

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



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

    how to do that?


  • Moderators

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.