Skip to content

Commit

Permalink
QMake: Make 'entrypoint' and 'qt' CONFIG values order-independent
Browse files Browse the repository at this point in the history
If users have
    CONFIG += qt
in their .pro file then the project won't link if the platform requires
the entrypoint module. This is because qt.prf is loaded before
entrypoint.prf in this situation.

Make the CONFIG values 'entrypoint' and 'qt' independent of their order
by embedding the content of entrypoint.prf into qt.prf.

Pick-to: 6.5 6.6
Fixes: QTBUG-117674
Change-Id: I72a3c9be023a73d70454533262544a4211cb6974
Reviewed-by: Tor Arne Vestbø <[email protected]>
Reviewed-by: Alexey Edelev <[email protected]>
  • Loading branch information
jobor committed Sep 29, 2023
1 parent 9b37762 commit b289d66
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
10 changes: 0 additions & 10 deletions mkspecs/features/entrypoint.prf

This file was deleted.

12 changes: 12 additions & 0 deletions mkspecs/features/qt.prf
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@ unix {
}
}

# Load the entrypoint module if requested
entrypoint {
win32 {
!console:contains(TEMPLATE, ".*app"): \
QT_PRIVATE += entrypoint_private
} else:uikit {
qt_depends = $$resolve_depends(QT, "QT.")
!watchos:equals(TEMPLATE, app):contains(qt_depends, gui(-private)?): \
QT_PRIVATE += entrypoint_private
}
}

# Will automatically add plugins, so run first
contains(QT_CONFIG, permissions): load(permissions)

Expand Down

0 comments on commit b289d66

Please sign in to comment.