2012-03-28 19:23:50 +00:00
|
|
|
#
|
|
|
|
# qmake configuration for Broadcom's Raspberry PI
|
|
|
|
# http://wiki.qt-project.org/Devices/RaspberryPi
|
|
|
|
|
2012-05-31 03:18:26 +00:00
|
|
|
include(../common/linux_device_pre.conf)
|
2012-03-28 19:23:50 +00:00
|
|
|
|
2012-06-06 22:11:21 +00:00
|
|
|
QT_QPA_DEFAULT_PLATFORM = wayland
|
|
|
|
|
2012-05-17 22:49:57 +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
|
|
|
|
2012-06-11 21:19:16 +00:00
|
|
|
QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/opt/vc/include $$[QT_SYSROOT]/opt/vc/include/interface/vcos/pthreads
|
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
|
|
|
|
QT_QPA_DEFAULT_PLATFORM = eglfs
|
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
|
|
|
}
|
|
|
|
|
|
|
|
QMAKE_CFLAGS += \
|
|
|
|
-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
|
|
|
|
2012-04-11 05:06:48 +00:00
|
|
|
EGLFS_PLATFORM_HOOKS_SOURCES = $$PWD/qeglfshooks_pi.cpp
|
2012-05-17 22:49:57 +00:00
|
|
|
EGLFS_PLATFORM_HOOKS_LIBS = -lbcm_host
|
2012-03-28 19:23:50 +00:00
|
|
|
|
2012-05-31 03:18:26 +00:00
|
|
|
include(../common/linux_device_post.conf)
|
2012-04-19 23:40:02 +00:00
|
|
|
|
2012-03-28 19:23:50 +00:00
|
|
|
load(qt_config)
|