mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-26 20:56:33 +00:00
package/qt5base: provide "qt.conf" to make "qmake" relocatable
The file "qt.conf" can be used to override the hard-coded paths that are compiled into the Qt library. This is required to make "qmake" relocatable. Actually, we need to specify all variables to overwrite the compiled in values. CC: Julien Corjon <corjon.j@ecagroup.com> CC: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
5f4ca51809
commit
3aaea7ace2
19
package/qt5/qt5base/qt.conf.in
Normal file
19
package/qt5/qt5base/qt.conf.in
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
[Paths]
|
||||||
|
Prefix=@@HOST_DIR@@
|
||||||
|
Sysroot=@@STAGING_DIR@@
|
||||||
|
Headers=/usr/include/qt5
|
||||||
|
Libraries=/usr/lib
|
||||||
|
LibraryExecutables=/usr/libexec
|
||||||
|
Binaries=/usr/bin
|
||||||
|
Plugins=/usr/lib/qt/plugins
|
||||||
|
Examples=/usr/lib/qt/examples
|
||||||
|
Qml2Imports=/usr/qml
|
||||||
|
Imports=/usr/imports
|
||||||
|
Translations=/usr/translations
|
||||||
|
Examples=/usr/lib/qt/examples
|
||||||
|
Demos=/usr/lib/qt/examples
|
||||||
|
Tests=/usr/tests
|
||||||
|
Settings=/usr
|
||||||
|
Documentation=/usr/doc
|
||||||
|
ArchData=/usr
|
||||||
|
Data=/usr
|
@ -264,9 +264,17 @@ define QT5BASE_BUILD_CMDS
|
|||||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# The file "qt.conf" can be used to override the hard-coded paths that are
|
||||||
|
# compiled into the Qt library. We need it to make "qmake" relocatable.
|
||||||
|
define QT5BASE_INSTALL_QT_CONF
|
||||||
|
sed -e "s|@@HOST_DIR@@|$(HOST_DIR)|" -e "s|@@STAGING_DIR@@|$(STAGING_DIR)|" \
|
||||||
|
$(QT5BASE_PKGDIR)/qt.conf.in > $(HOST_DIR)/bin/qt.conf
|
||||||
|
endef
|
||||||
|
|
||||||
define QT5BASE_INSTALL_STAGING_CMDS
|
define QT5BASE_INSTALL_STAGING_CMDS
|
||||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
|
||||||
$(QT5_LA_PRL_FILES_FIXUP)
|
$(QT5_LA_PRL_FILES_FIXUP)
|
||||||
|
$(QT5BASE_INSTALL_QT_CONF)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define QT5BASE_INSTALL_TARGET_LIBS
|
define QT5BASE_INSTALL_TARGET_LIBS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user