5afde92bd7
adding shared install paths via QMAKE_LFLAGS in the spec has the tiny side effect that they are searched _first_, which is generally a really bad idea - they should be _last_. for that purpose, introduce QMAKE_RPATHLINKDIR_POST, and migrate all specs to use it. QMAKE_RPATHDIR_POST is added for consistency, but not actually used. Task-number: QTBUG-59457 Change-Id: Iac6cda5e9111ef8cca454a69861fe8408bb40589 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
53 lines
1.7 KiB
Plaintext
53 lines
1.7 KiB
Plaintext
#
|
|
# qmake configuration for 64-bit Tegra X1 boards, like the DRIVE CX, using Vibrante Linux
|
|
#
|
|
# A typical configure line might look like:
|
|
# configure \
|
|
# -device drive-cx \
|
|
# -device-option VIBRANTE_SDK_TOPDIR=/opt/nvidia/vibrante-t186ref-linux
|
|
# -device-option CROSS_COMPILE=/opt/nvidia/toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux- \
|
|
# -sysroot /opt/nvidia/vibrante-t186ref-linux/targetfs \
|
|
# -no-gcc-sysroot \
|
|
# -opengl es2
|
|
|
|
# Note: This enables eglfs and wayland only. To enable xcb (with EGL
|
|
# support) as well, add -qt-xcb and fix the SDK's X11 headers. See
|
|
# QTBUG-55140.
|
|
|
|
include(../common/linux_device_pre.conf)
|
|
|
|
QMAKE_INCDIR_POST += \
|
|
$${VIBRANTE_SDK_TOPDIR}/include \
|
|
$$[QT_SYSROOT]/usr/include
|
|
|
|
QMAKE_LIBDIR_POST += \
|
|
$${VIBRANTE_SDK_TOPDIR}/lib-target \
|
|
$$[QT_SYSROOT]/usr/lib \
|
|
$$[QT_SYSROOT]/lib/aarch64-linux-gnu \
|
|
$$[QT_SYSROOT]/usr/lib/aarch64-linux-gnu
|
|
|
|
QMAKE_RPATHLINKDIR_POST += \
|
|
$${VIBRANTE_SDK_TOPDIR}/lib-target \
|
|
$$[QT_SYSROOT]/usr/lib \
|
|
$$[QT_SYSROOT]/usr/lib/aarch64-linux-gnu \
|
|
$$[QT_SYSROOT]/lib/aarch64-linux-gnu
|
|
|
|
DISTRO_OPTS += aarch64
|
|
|
|
# Do not define WIN_INTERFACE_CUSTOM here. It is suitable for drm and
|
|
# wayland, but not X11. Leave it to qt_egl_p.h instead.
|
|
COMPILER_FLAGS += -mtune=cortex-a57.cortex-a53 -march=armv8-a
|
|
|
|
EGLFS_DEVICE_INTEGRATION = eglfs_kms_egldevice
|
|
|
|
include(../common/linux_arm_device_post.conf)
|
|
|
|
# override the default from linux_arm_device_post.conf
|
|
defineTest(qtConfSanitizeMkspec) {
|
|
isEmpty(VIBRANTE_SDK_TOPDIR): \
|
|
error("You must pass -device-option VIBRANTE_SDK_TOPDIR=/path/to/sdk")
|
|
deviceSanityCheckCompiler()
|
|
}
|
|
|
|
load(qt_config)
|