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

Added support for INSTALL_PREFIX in QMake project #15

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

dpurgin
Copy link
Contributor

@dpurgin dpurgin commented Apr 29, 2024

Hi,

we're using the keyboard in a Buildroot environment which executes make install on the packages to install them to the target rootfs.

The current .pro tries to install the keyboard into the toolchain's sysroot, and it is not desired.

The patch provides a new configuration variable INSTALL_PREFIX to override the installation path. If it is not specified, the installation is performed into the Qt installation directory as previously.

Example:

$ qmake CONFIG+=release INSTALL_PREFIX=/home/build/rootfs_custom
Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
...
$ make 
...
$ make install
/opt/buildroot-imx8m/host/bin/qmake -install qinstall -exe libcutekeyboardplugin.so /home/build/rootfs_custom/plugins/platforminputcontexts/libcutekeyboardplugin.so
/opt/buildroot-imx8m/host/bin/qmake -install qinstall /home/build/workspace/cutekeyboard/src/qml/qmldir /home/build/rootfs_custom/qml/QtQuick/CuteKeyboard/qmldir
/opt/buildroot-imx8m/host/bin/qmake -install qinstall /home/build/workspace/cutekeyboard/src/qml/AlternativeKeysPopup.qml /home/build/rootfs_custom/qml/QtQuick/CuteKeyboard/AlternativeKeysPopup.qml
...

Cheers

Copy link
Contributor

@AndreaRicchi AndreaRicchi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks

@AndreaRicchi AndreaRicchi merged commit 9c45dbb into amarula:main Apr 29, 2024
1 check passed
@dpurgin dpurgin deleted the qmake-install-prefix branch May 2, 2024 13:11
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