meta-qt6/classes/qt6-paths.bbclass
Samuli Piippo 7ec2742246 Enable ptest support for Qt modules
Build tests for ptest in Qt modules. The default build using
PACKAGECONFIG[tests] doesn't work as the installation of tests is
not working correctly. Instead build the tests separately after
the module has been built and installed.

The tests have dependencies to the data and source files which
need to be packaged with the test binaries.

Change-Id: Ibae55a29135267ce96949aa0c15ad7e236ef2512
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
2021-05-12 08:03:07 +03:00

34 lines
1.2 KiB
Plaintext

# Install locations:
# Executables [PREFIX/bin]
QT6_INSTALL_BINDIR ?= "${bindir}"
# Header files [PREFIX/include]
QT6_INSTALL_INCLUDEDIR ?= "${includedir}"
# Libraries [PREFIX/lib]
QT6_INSTALL_LIBDIR ?= "${libdir}"
# Arch-dependent data [PREFIX]
QT6_INSTALL_ARCHDATADIR ?= "${libdir}"
# Plugins [ARCHDATADIR/plugins]
QT6_INSTALL_PLUGINSDIR ?= "${libdir}/plugins"
# Helper programs [ARCHDATADIR/bin on Windows, ARCHDATADIR/libexec otherwise]
QT6_INSTALL_LIBEXECDIR ?= "${libexecdir}"
QT6_INSTALL_LIBEXECDIR_mingw32 ?= "${bindir}"
# QML2 imports [ARCHDATADIR/qml]
QT6_INSTALL_QMLDIR ?= "${libdir}/qml"
# "Arch-independent data [PREFIX]
QT6_INSTALL_DATADIR ?= "${datadir}"
# Documentation [DATADIR/doc]
QT6_INSTALL_DOCDIR ?= "${docdir}"
# Translations [DATADIR/translations]
QT6_INSTALL_TRANSLATIONSDIR ?= "${datadir}/translations"
# Settings used by Qt programs [PREFIX/etc/xdg]
QT6_INSTALL_SYSCONFDIR ?= "${sysconfdir}/xdg"
# Examples [PREFIX/examples]
QT6_INSTALL_EXAMPLESDIR ?= "${datadir}/examples"
# Tests [PREFIX/tests]
QT6_INSTALL_TESTSDIR ?= "${prefix}/tests"
# Module description files directory [DATADIR/modules]
QT6_INSTALL_DESCRIPTIONSDIR ?= "${datadir}/modules"
# Mkspecs files [PREFIX/mkspecs]
QT6_INSTALL_MKSPECSDIR ?= "${libdir}/mkspecs"