2 # qmake configuration for Broadcom's Raspberry PI
3 # http://wiki.qt-project.org/Devices/RaspberryPi
5 include(../common/linux_device_pre.conf)
7 QMAKE_LFLAGS += -Wl,-rpath-link,$$[QT_SYSROOT]/opt/vc/lib
9 QMAKE_LIBDIR_OPENGL_ES2 = $$[QT_SYSROOT]/opt/vc/lib
10 QMAKE_LIBDIR_EGL = $$QMAKE_LIBDIR_OPENGL_ES2
12 QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/opt/vc/include $$[QT_SYSROOT]/opt/vc/include/interface/vcos/pthreads
13 QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}
15 QMAKE_LIBS_EGL = -lEGL -lGLESv2
17 contains(DISTRO, wheezy) {
18 DISTRO_OPTS += deb-multi-arch
19 } else:contains(DISTRO, bsquask) {
20 DISTRO_OPTS += hard-float
21 } else:contains(DISTRO, arch) {
22 #On principle: no wizardry required
24 #Debian Squeeze: Legacy circular dependency
25 QMAKE_LIBS_OPENGL_ES2 = -lGLESv2 -lEGL
35 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
37 EGLFS_PLATFORM_HOOKS_SOURCES = $$PWD/qeglfshooks_pi.cpp
38 EGLFS_PLATFORM_HOOKS_LIBS = -lbcm_host
40 include(../common/linux_device_post.conf)