2 # qmake configuration for Broadcom's Raspberry PI
3 # http://wiki.qt-project.org/Devices/RaspberryPi
5 !exists($$[QT_SYSROOT]/usr/include/libudev.h) {
6 message("Keyboard support requires udev")
7 message("Install libudev-dev in your rootfs")
11 MAKEFILE_GENERATOR = UNIX
12 TARGET_PLATFORM = unix
14 CONFIG += qt warn_on release incremental link_prl gdb_dwarf_index
16 QMAKE_INCREMENTAL_STYLE = sublib
18 include(../../common/linux.conf)
19 include(../../common/gcc-base-unix.conf)
20 include(../../common/g++-unix.conf)
24 QMAKE_CC = $${CROSS_COMPILE}gcc
25 QMAKE_CXX = $${CROSS_COMPILE}g++
26 QMAKE_LINK = $${QMAKE_CXX}
27 QMAKE_LINK_SHLIB = $${QMAKE_CXX}
29 # modifications to linux.conf
30 QMAKE_AR = $${CROSS_COMPILE}ar cqs
31 QMAKE_OBJCOPY = $${CROSS_COMPILE}objcopy
32 QMAKE_STRIP = $${CROSS_COMPILE}strip
34 #Circular dependency in GLES2 <-> EGL requires the following abomination
35 QMAKE_LIBS_EGL = -L$$[QT_SYSROOT]/opt/vc/lib -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil
36 QMAKE_LIBS_OPENGL_ES2 = $${QMAKE_LIBS_EGL}
37 QMAKE_LIBS_OPENVG = $${QMAKE_LIBS_EGL}
39 QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/opt/vc/include
40 QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}
42 QMAKE_CFLAGS_RELEASE += \
49 QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE
51 EGLFS_PLATFORM_HOOKS_SOURCES = $$PWD/qeglfshooks_pi.cpp
54 deviceSanityCheckCompiler()