2017-03-14 07:01:37 +00:00
|
|
|
# qmake configuration for:
|
|
|
|
# - Raspberry PI
|
|
|
|
# - Raspberry PI Zero
|
2015-03-03 10:27:28 +00:00
|
|
|
# http://wiki.qt.io/RaspberryPi
|
2012-03-28 19:23:50 +00:00
|
|
|
|
2012-05-31 03:18:26 +00:00
|
|
|
include(../common/linux_device_pre.conf)
|
2012-03-28 19:23:50 +00:00
|
|
|
|
2017-05-16 16:06:24 +00:00
|
|
|
QMAKE_RPATHLINKDIR_POST += $$[QT_SYSROOT]/opt/vc/lib
|
2012-05-04 21:38:12 +00:00
|
|
|
|
2012-05-17 22:49:57 +00:00
|
|
|
QMAKE_LIBDIR_OPENGL_ES2 = $$[QT_SYSROOT]/opt/vc/lib
|
|
|
|
QMAKE_LIBDIR_EGL = $$QMAKE_LIBDIR_OPENGL_ES2
|
2015-11-04 22:13:44 +00:00
|
|
|
QMAKE_LIBDIR_OPENVG = $$QMAKE_LIBDIR_OPENGL_ES2
|
2012-03-28 19:23:50 +00:00
|
|
|
|
2013-03-09 13:57:43 +00:00
|
|
|
QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/opt/vc/include \
|
|
|
|
$$[QT_SYSROOT]/opt/vc/include/interface/vcos/pthreads \
|
|
|
|
$$[QT_SYSROOT]/opt/vc/include/interface/vmcs_host/linux
|
2012-03-28 19:23:50 +00:00
|
|
|
QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}
|
2015-11-04 22:13:44 +00:00
|
|
|
QMAKE_INCDIR_OPENVG = $${QMAKE_INCDIR_EGL}
|
2012-03-28 19:23:50 +00:00
|
|
|
|
2012-05-17 22:49:57 +00:00
|
|
|
QMAKE_LIBS_EGL = -lEGL -lGLESv2
|
2015-11-04 22:13:44 +00:00
|
|
|
QMAKE_LIBS_OPENVG = -lEGL -lOpenVG -lGLESv2
|
2012-05-17 22:49:57 +00:00
|
|
|
|
2019-02-11 14:00:09 +00:00
|
|
|
QMAKE_INCDIR_BCM_HOST = $$[QT_SYSROOT]/opt/vc/include
|
|
|
|
QMAKE_LIBDIR_BCM_HOST = $$[QT_SYSROOT]/opt/vc/lib
|
|
|
|
QMAKE_LIBS_BCM_HOST = -lbcm_host
|
|
|
|
|
2012-07-11 18:21:24 +00:00
|
|
|
contains(DISTRO, squeeze) {
|
|
|
|
#Debian Squeeze: Legacy everything
|
|
|
|
QMAKE_LIBS_OPENGL_ES2 = -lGLESv2 -lEGL
|
2012-05-17 22:49:57 +00:00
|
|
|
} else:contains(DISTRO, arch) {
|
|
|
|
#On principle: no wizardry required
|
|
|
|
} else {
|
2012-07-11 18:21:24 +00:00
|
|
|
#This is not strictly necessary
|
|
|
|
DISTRO_OPTS += deb-multi-arch
|
|
|
|
DISTRO_OPTS += hard-float
|
2012-05-17 22:49:57 +00:00
|
|
|
}
|
|
|
|
|
2013-03-19 01:57:31 +00:00
|
|
|
QMAKE_CFLAGS += \
|
2012-05-17 22:49:57 +00:00
|
|
|
-marm \
|
2012-03-28 19:23:50 +00:00
|
|
|
-mfpu=vfp \
|
|
|
|
-mtune=arm1176jzf-s \
|
|
|
|
-march=armv6zk \
|
|
|
|
-mabi=aapcs-linux
|
|
|
|
|
2012-05-16 22:59:00 +00:00
|
|
|
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
|
2012-03-28 19:23:50 +00:00
|
|
|
|
2015-03-02 15:09:22 +00:00
|
|
|
# Preferred eglfs backend
|
|
|
|
EGLFS_DEVICE_INTEGRATION = eglfs_brcm
|
2012-03-28 19:23:50 +00:00
|
|
|
|
2013-07-18 20:45:47 +00:00
|
|
|
include(../common/linux_arm_device_post.conf)
|
2012-04-19 23:40:02 +00:00
|
|
|
|
2012-03-28 19:23:50 +00:00
|
|
|
load(qt_config)
|