[QBS] Setting multiple profiles for sub-projects

Stephan Gatzka stephan.gatzka at gmail.com
Sun Aug 9 19:19:36 CEST 2015


Hi!

I setup successfully qbs to build my cjet project. For continuous 
integration I'd like to setup a "surrounding" qbs file which sets the 
profiles the cjet project:

Project {
   name: "cjet CI"
   minimumQbsVersion: "1.4.0"

   SubProject {
     filePath: "cjet.qbs"
     Properties {
       name: "cjet"
       profiles: ["gcc", "clang"]
     }
   }

   Product {
     name: "cjet continuous integration"
     Depends { name: "cjet" }
     profiles: ["gcc", "clang"]
   }
}


If I use this file. I get the error:
Product dependency 'cjet' not found for profile 'gcc'.

So it only seem to work if I also set profiles in the cjet.qbs file. But 
that is something I didn't want to because I often have to cross compile 
this program and don't know the profile beforehand.

Nevertheless, for a continuous build a selection of some pre-defined 
profiles would be helpful. Is that possible to be specified in a qbs 
file like above or do I have to run qbs repeatedly with different profiles?

Regards,

Stephan



More information about the Qbs mailing list