PSA: Chromium build now optionally requires QT

540 views
Skip to first unread message

Thomas Anderson

unread,
Sep 22, 2022, 5:01:42 PM9/22/22
to chromium-packagers
Hello Chromium packagers,

As of [1], the build now sets use_qt=true by default.  Of course, it can still be manually set to false in your args.gn.

Additionally, this is only a build-time dependency.  At runtime, Chromium will only use QT if it is available and is running in a QT environment [2].

Finally, the QT feature flag has not yet been toggled (although it will soon), so until then GTK will continue to be used.

[1] https://crrev.com/1044786
[2] https://source.chromium.org/chromium/chromium/src/+/main:ui/linux/linux_ui_factory.cc;drc=849f6a54bd981396d49641a98713576ab1986188;l=133

Marshall Greenblatt

unread,
Sep 22, 2022, 6:04:42 PM9/22/22
to Thomas Anderson, chromium-packagers
Hi Thomas,

Is the plan to completely replace GTK usage with QT? If so, how does this impact Chromium embedders or distributors from a QT licensing perspective?

Thanks,
Marshall

On Sep 22, 2022, at 5:01 PM, Thomas Anderson <thomasa...@chromium.org> wrote:


--
You received this message because you are subscribed to the Google Groups "chromium-packagers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-packag...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-packagers/CAMEXDrk_fp7RS3CgYdsXAokmFouNCqjCrDTs8fBrj6jdnN49zQ%40mail.gmail.com.

Thomas Anderson

unread,
Sep 22, 2022, 6:16:44 PM9/22/22
to Marshall Greenblatt, chromium-packagers
On Thu, Sep 22, 2022 at 3:04 PM Marshall Greenblatt <magree...@gmail.com> wrote:
Hi Thomas,

Is the plan to completely replace GTK usage with QT?

No, Chromium will choose between GTK and QT at runtime based on the environment.
 
If so, how does this impact Chromium embedders or distributors from a QT licensing perspective?

If you're just distributing a Chromium binary (instead of a whole system that includes QT) then licensing should be unaffected.  Chromium dynamically links against QT, and QT is permissive to dynamic linking.  From QT's website [1]:
In case of dynamic linking, it is possible, but not mandatory, to keep application source code proprietary as long as it is “work that uses the library” – typically achieved via dynamic linking of the library.

I would expect embedders would typically build with both GTK and QT disabled.

Saikrishna Arcot

unread,
Sep 25, 2022, 3:19:23 PM9/25/22
to Thomas Anderson, Marshall Greenblatt, chromium-packagers

Hi Thomas,

Is there a reason that there's no option to generate the moc file used by the Qt build with the moc tool at build time? This makes sure that the moc file that's generated is compatible with the build-time version of Qt.

Thomas Anderson

unread,
Sep 26, 2022, 1:35:02 PM9/26/22
to Saikrishna Arcot, Marshall Greenblatt, chromium-packagers
There's a related bug for that issue [1].  Can you verify if the patch [2] fixes the issue?

Reply all
Reply to author
Forward
0 new messages