VisualGDB .pro file parsing problem

Sysprogs forums Forums VisualGDB VisualGDB .pro file parsing problem

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7957
    michael.s
    Participant

    Hello,

    when having a QT project and wishing that the debug version of the program has a different name than the release version the thing to do afaik is to add this lines into the .pro file of the project

    debug {
    TARGET = MyProgramD
    }
    release {
    TARGET =MyProgram
    }

    This works very well compiling, but the VisualGDB parser seems to be unable to handle the conditionality of this construct. As a result it always takes the first TARGET definition and constructs its build variables – in the example above TARGET = MyProgramD, even in release mode. When it tries to transfer the target file to the linux system it stops with an error, since it can’t find the (non-existing) wrong binary.

    Are there any workarounds?

    thanks

    #7958
    support
    Keymaster

    Hi,

    Yes, our .pro file parser is very basic and does not support conditionals. As a workaround, you can disable deployment, add custom deployment actions specifying your target name and explicitly specify the modified target name as the program to debug.

    #7991
    michael.s
    Participant

    splendid…thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.