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-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
|
|
|
|
|
|
|
|
contains(DISTRO, wheezy) {
|
2012-05-31 03:18:26 +00:00
|
|
|
DISTRO_OPTS += deb-multi-arch
|
2012-05-30 21:24:30 +00:00
|
|
|
} else:contains(DISTRO, bsquask) {
|
2012-05-31 03:18:26 +00:00
|
|
|
DISTRO_OPTS += hard-float
|
2012-05-17 22:49:57 +00:00
|
|
|
} else:contains(DISTRO, arch) {
|
|
|
|
#On principle: no wizardry required
|
|
|
|
} else {
|
2012-05-31 03:18:26 +00:00
|
|
|
#Debian Squeeze: Legacy circular dependency
|
2012-05-17 22:49:57 +00:00
|
|
|
QMAKE_LIBS_OPENGL_ES2 = -lGLESv2 -lEGL
|
|
|
|
}
|
|
|
|
|
|
|
|
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)
|