Skip to content

Commit

Permalink
contrib: qtbase: disable building the unused direct2d platform plugin
Browse files Browse the repository at this point in the history
Currently `direct2d` platform plugin is not used in
favor of `windows` platform plugin. So, it is not
necessary to build that platform plugin at the
moment. The matching feature for the platform plugin
is `direct2d1_1`.

The reason `direct2d` platform plugin is not used is
because it is not the default by Qt (as of Qt 6.8),
and it is not possible to statically link to both
`direct2d` and `windows` platform plugins due to
symbol clash, and `direct2d` menus are not supported
by Wine.

It should be noted that we still need `direct2d`
feature itself (`direct2d`), particularly because
of directwrite that is used for the font engine
and font database.
  • Loading branch information
fuzun authored and robUx4 committed Nov 4, 2024
1 parent 91d992f commit 6de7998
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/src/qt/rules.mak
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ endif

ifdef HAVE_WIN32
QTBASE_CONFIG += -DFEATURE_style_fusion=OFF
# Enable direct2d, but do not build the direct2d platform plugin:
QTBASE_CONFIG += -DFEATURE_direct2d=ON -DFEATURE_direct2d1_1=OFF
endif

ifdef ENABLE_PDB
Expand Down

0 comments on commit 6de7998

Please sign in to comment.