Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow querying for alternate Qt6 libexec directory #12870

Merged
merged 2 commits into from
Oct 12, 2024

Conversation

cho-m
Copy link
Contributor

@cho-m cho-m commented Oct 11, 2024

This is closer to how Qt6's moc.prf finds moc, i.e.

qtPrepareLibExecTool(QMAKE_MOC, moc)

...

defineTest(qtPrepareLibExecTool) {
    isEmpty(instloc): instloc = "$$[QT_HOST_LIBEXECS]"
    qtPrepareTool($$1, $$2, $$3, $$4, $$instloc)
}

Specifically adding for Homebrew - Homebrew/homebrew-core#193751

However, I think this will help other repositories/distros that don't use QT_HOME / libexec / moc. For example, Arch Linux uses QT_HOME / moc and thus needs to modify the script1.

Similar handling in Meson2 though they also fall back on QT_INSTALL_LIBEXECS. Not sure if that is actually needed so left out for now.

Footnotes

  1. https://gitlab.archlinux.org/archlinux/packaging/packages/mame/-/blob/main/PKGBUILD?ref_type=heads#L58-59

  2. https://github.com/mesonbuild/meson/blob/master/mesonbuild/dependencies/qt.py#L65-L68

@cho-m cho-m marked this pull request as ready for review October 11, 2024 16:20
scripts/src/osd/modules.lua Outdated Show resolved Hide resolved
This is closer to how Qt6's moc.prf finds moc, i.e.

```
qtPrepareLibExecTool(QMAKE_MOC, moc)

...

defineTest(qtPrepareLibExecTool) {
    isEmpty(instloc): instloc = "$$[QT_HOST_LIBEXECS]"
    qtPrepareTool($$1, $$2, $$3, $$4, $$instloc)
}
```
@cho-m cho-m force-pushed the qt6-lookup-libexec branch from 3bf2ecf to f1604db Compare October 11, 2024 18:23
@cuavas cuavas merged commit 14995fc into mamedev:master Oct 12, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants