2012-03-28 19:23:50 +00:00
|
|
|
#
|
|
|
|
# qmake configuration for Broadcom's Raspberry PI
|
2015-02-26 15:42:10 +00:00
|
|
|
# http://wiki.qt.io/?title=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
|
|
|
|
2013-03-19 01:57:31 +00:00
|
|
|
QMAKE_LFLAGS += -Wl,-rpath-link,$$[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
|
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}
|
|
|
|
|
2012-05-17 22:49:57 +00:00
|
|
|
QMAKE_LIBS_EGL = -lEGL -lGLESv2
|
|
|
|
|
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)
|