2012-04-10 00:13:23 +00:00
|
|
|
#
|
|
|
|
# qmake configuration for building with arm-linux-uclibcgnueabi-g++
|
|
|
|
#
|
2015-03-03 10:27:28 +00:00
|
|
|
# http://wiki.qt.io/Shiner
|
2012-04-10 00:13:23 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
MAKEFILE_GENERATOR = UNIX
|
2014-01-14 13:23:49 +00:00
|
|
|
CONFIG += incremental
|
2012-04-10 00:13:23 +00:00
|
|
|
QMAKE_INCREMENTAL_STYLE = sublib
|
|
|
|
|
|
|
|
include(../../common/linux.conf)
|
|
|
|
include(../../common/gcc-base-unix.conf)
|
|
|
|
include(../../common/g++-unix.conf)
|
|
|
|
|
|
|
|
load(device_config)
|
|
|
|
|
2016-11-23 19:11:17 +00:00
|
|
|
defineTest(qtConfSanitizeMkspec) {
|
|
|
|
isEmpty(TRIDENT_SHINER_SDK_BUILDTREE): \
|
|
|
|
error("TRIDENT_SHINER_SDK_BUILDTREE needs to be set via -device-option TRIDENT_SHINER_SDK_BUILDTREE=<path>")
|
|
|
|
isEmpty(TRIDENT_SHINER_SDK_BUILDSPEC): \
|
|
|
|
error("TRIDENT_SHINER_SDK_BUILDSPEC needs to be set via -device-option TRIDENT_SHINER_SDK_BUILDSPEC=<build spec>")
|
|
|
|
isEmpty(TRIDENT_SHINER_SDK_INCDIR_EGL_OPENGL_ES2): \
|
|
|
|
error("TRIDENT_SHINER_SDK_INCDIR_EGL_OPENGL_ES2 needs to be set via -device-option TRIDENT_SHINER_SDK_INCDIR_EGL_OPENGL_ES2=<path>")
|
|
|
|
isEmpty(TRIDENT_SHINER_SDK_LIBDIR_EGL_OPENGL_ES2): \
|
|
|
|
error("TRIDENT_SHINER_SDK_LIBDIR_EGL_OPENGL_ES2 needs to be set via -device-option TRIDENT_SHINER_SDK_LIBDIR_EGL_OPENGL_ES2=<path>")
|
|
|
|
deviceSanityCheckCompiler()
|
|
|
|
}
|
2012-04-10 00:13:23 +00:00
|
|
|
|
|
|
|
QMAKE_CC = $${CROSS_COMPILE}gcc
|
|
|
|
QMAKE_CXX = $${CROSS_COMPILE}g++
|
|
|
|
QMAKE_LINK = $${CROSS_COMPILE}g++
|
|
|
|
QMAKE_LINK_SHLIB = $${CROSS_COMPILE}g++
|
|
|
|
|
|
|
|
#
|
|
|
|
# Usage configure options "-sysroot <sysroot path>" with "--prefix=<qt installation path>" results into installation of Qt at "<sysroot path><qt installation path>".
|
|
|
|
# Trident Shiner SDK expects all libs to be in "Application file system" which is not <sysroot path>
|
|
|
|
#
|
|
|
|
# Because of this fact not using "-sysroot <sysroot path>" and hence following code is required
|
|
|
|
#
|
2013-03-19 01:57:31 +00:00
|
|
|
QMAKE_CFLAGS += --sysroot=$${TRIDENT_SHINER_SDK_BUILDTREE}/open_source_archive/linux/toolchains/gcc-4.5.2_uclibc/
|
|
|
|
QMAKE_CXXFLAGS += --sysroot=$${TRIDENT_SHINER_SDK_BUILDTREE}/open_source_archive/linux/toolchains/gcc-4.5.2_uclibc/
|
|
|
|
QMAKE_LFLAGS += --sysroot=$${TRIDENT_SHINER_SDK_BUILDTREE}/open_source_archive/linux/toolchains/gcc-4.5.2_uclibc/
|
2012-04-10 00:13:23 +00:00
|
|
|
|
2013-03-19 01:57:31 +00:00
|
|
|
QMAKE_CFLAGS = -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard
|
|
|
|
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
|
2012-04-10 00:13:23 +00:00
|
|
|
|
|
|
|
# modifications to linux.conf
|
|
|
|
QMAKE_AR = $${CROSS_COMPILE}ar cqs
|
|
|
|
QMAKE_OBJCOPY = $${CROSS_COMPILE}objcopy
|
2013-04-22 21:22:09 +00:00
|
|
|
QMAKE_NM = $${CROSS_COMPILE}nm -P
|
2012-04-10 00:13:23 +00:00
|
|
|
QMAKE_STRIP = $${CROSS_COMPILE}strip
|
|
|
|
|
2017-05-16 15:28:22 +00:00
|
|
|
QMAKE_INCDIR_POST += $${TRIDENT_SHINER_SDK_BUILDTREE}/target/output/objs/$${TRIDENT_SHINER_SDK_BUILDSPEC}/comps/generic_apps/usr/include
|
|
|
|
QMAKE_LIBDIR_POST += $${TRIDENT_SHINER_SDK_BUILDTREE}/target/output/objs/$${TRIDENT_SHINER_SDK_BUILDSPEC}/comps/generic_apps/usr/lib
|
|
|
|
QMAKE_LIBDIR_POST += $${TRIDENT_SHINER_SDK_BUILDTREE}/target/output/objs/$${TRIDENT_SHINER_SDK_BUILDSPEC}/comps/generated/lib/armgnu_linux_el_cortex-a9
|
2012-04-10 00:13:23 +00:00
|
|
|
|
|
|
|
QMAKE_INCDIR_EGL = $${TRIDENT_SHINER_SDK_INCDIR_EGL_OPENGL_ES2}
|
|
|
|
QMAKE_LIBDIR_EGL = $${TRIDENT_SHINER_SDK_LIBDIR_EGL_OPENGL_ES2}
|
|
|
|
|
|
|
|
QMAKE_INCDIR_OPENGL_ES2 = $${TRIDENT_SHINER_SDK_INCDIR_EGL_OPENGL_ES2}
|
|
|
|
QMAKE_LIBDIR_OPENGL_ES2 = $${TRIDENT_SHINER_SDK_LIBDIR_EGL_OPENGL_ES2}
|
|
|
|
|
|
|
|
QMAKE_LIBS_EGL = -lEGL -lIMGegl -lsrv_um -lusc
|
|
|
|
QMAKE_LIBS_OPENGL_ES2 = $$QMAKE_LIBS_EGL -lGLESv2 -lGLES_CM
|
|
|
|
|
2012-04-19 23:40:02 +00:00
|
|
|
QT_QPA_DEFAULT_PLATFORM = eglfs
|
|
|
|
|
2012-04-10 00:13:23 +00:00
|
|
|
load(qt_config)
|