Re: [Qbs] External Dependencies

2019-05-14 Thread Иван Комиссаров
Application should not be aware about this property at all, this is a hardcoded _module_ property (similar to priority), this is just a way to modify the way how modules are loaded. > 14 мая 2019 г., в 23:54, NIkolai Marchenko > написал(а): > > Unfortunately I still don't see how or where

Re: [Qbs] External Dependencies

2019-05-14 Thread NIkolai Marchenko
Unfortunately I still don't see how or where the chain of dependencies on DarwinGCC and GenericGCC is being set up. Will it be in zlib module ? I am trying to understand how will the application know what is the "recovery" option and when to consider all recovery paths exhausted and can't bc I do

Re: [Qbs] External Dependencies

2019-05-14 Thread Иван Комиссаров
Let me use Cpp module as example. We have macos-gcc.qbs: DarwinGCC { priority: 1 condition: qbs.targetOS.contains('macos') && qbs.toolchain && qbs.toolchain.contains('gcc') } And we have UnixGCC.qbs: GenericGCC { priority: -50 condition: qbs.toolchain &&

Re: [Qbs] External Dependencies

2019-05-14 Thread NIkolai Marchenko
> by adding property bool recover to the Module which tells Qbs to try loading > next module in a chain Probably needs a code example of a proposed solution. What is a "chain" like in this case? On Tue, May 14, 2019 at 11:32 PM Иван Комиссаров wrote: > On Tue, May 14, 2019 at 11:09 PM

Re: [Qbs] External Dependencies

2019-05-14 Thread Иван Комиссаров
> On Tue, May 14, 2019 at 11:09 PM NIkolai Marchenko > wrote: > Wouldn't it be more reasonable to implement something like OptionalDepends > where you could just list all possible dependencies in the order in which it > should be loaded? > This doesn’t solve

Re: [Qbs] External Dependencies

2019-05-14 Thread NIkolai Marchenko
And while we are on the subject of finding libs. Is it possible to somehow indicate that a library you are trying to link isn't compatible with the compiler? Somethe _other_ than "unresolved external" error that can indicate anything from lib not being where you want it to be, a mistype in the

Re: [Qbs] External Dependencies

2019-05-14 Thread NIkolai Marchenko
Wouldn't it be more reasonable to implement something like OptionalDepends where you could just list all possible dependencies in the order in which it should be loaded? On Tue, May 14, 2019 at 9:26 PM Иван Комиссаров wrote: > I would like to discuss the way how external dependencies should be

[Qbs] External Dependencies

2019-05-14 Thread Иван Комиссаров
I would like to discuss the way how external dependencies should be searched by qbs. While implementing support for the protobuf I found that there several place where a generic c++ can come from. 1. It can be detected via pkg-config 2. It can be detected using probes 3. Other pkg-config-like