[Development] moc output from non-local tool build

Dominik Holland dominik.holland at qt.io
Tue Sep 14 11:37:46 CEST 2021


Am 9/14/21 um 9:51 AM schrieb Joerg Bornemann:

> On 9/14/21 9:25 AM, Fabian Kosmale wrote:
>> I wouldn't mind adding/helping with adding/reviewing the necessary
>> code to moc so that it has that
>> compatibility support. I can certainly see the use case for it.
>> However, I think there are still two
>> things missing:
>> - a confirmation from Jörg that the current hard dependency on the
>> exact version can be avoided,
>>    else the whole thing becomes moot. Given the fact that we cmake
>> has support for version ranges
>>    that should however be trivial, as long as we actually preserve
>> compatibility (and accept the
> >    resulting maintenance burden).
>
> The version check can be conditionally dropped.
> Or, we can maybe figure out the version of host Qt and use that.
>
> The maintenance burden is next level. This would mean to keep all
> internal API that's used in lib/cmake compatible. Apparently forward
> and backward if I read your requirements correctly.
>
If we intend to do this, could we please also discuss how to best add
some support for it on the CI to prevent regressions on this feature. In
the end this needs to be supported for all tools generating some sort of
code, e.g. repc or uic.

Dominik


More information about the Development mailing list