Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qbs build project with disabled products

Qbs build project with disabled products

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
qbsdocker
1 Posts 1 Posters 585 Views
  • 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.
  • K Offline
    K Offline
    kDohmen
    wrote on last edited by
    #1

    Hello,

    I have a project with many subprojects. Some products are libraries on which other products depends on. If I want to build the project via command line with some products disabled (via products.mylib.condition:false) qbs build just emits an error.

    In my special case I created a library for integrating googlemock easier into the project and QTest (with automatic googletest initialization and outputting errors via QTest). When I want to create release builds (with a CI system and docker) I dont need to build the whole test code.
    So, like in QtCreator, disabling my googlemock library should build everything else. But qbs build just emits errors that the it cannot build because the dependencies cannot be build.
    Enabling googlemock is no option because then I need to have the googletest repository in my docker image. And the --products parameter is not a valid option because it resolves the build graph first for all products (wich fails because of the dependency "problem").

    Do I miss here something?

    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