72efb2e6f4
Add conf files for -device qmake switch. It consists of two common pre/post includes for FreeBSD-base device. "freebsd-generic-clang" -device option for generic cross-compilation target, with bsdfb as default platform and freebsd-rasp-pi-clang option for Raspberry Pi (up to version 2) with OpenGL ES2 (eglfs) support Change-Id: I45d91c0512f60f2be438ce46e0485844c341188a Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
28 lines
878 B
Plaintext
28 lines
878 B
Plaintext
QT_QPA_DEFAULT_PLATFORM = bsdfb
|
|
|
|
MAKEFILE_GENERATOR = UNIX
|
|
CONFIG += incremental
|
|
QMAKE_INCREMENTAL_STYLE = sublib
|
|
|
|
include(../../freebsd-clang/qmake.conf)
|
|
|
|
load(device_config)
|
|
|
|
# modifications to g++-unix.conf
|
|
QMAKE_CC = $${CROSS_COMPILE}cc
|
|
QMAKE_CXX = $${CROSS_COMPILE}c++
|
|
QMAKE_LINK = $${QMAKE_CXX}
|
|
QMAKE_LINK_SHLIB = $${QMAKE_CXX}
|
|
|
|
# modifications to linux.conf
|
|
QMAKE_AR = $${CROSS_COMPILE}ar cqs
|
|
QMAKE_OBJCOPY = $${CROSS_COMPILE}objcopy
|
|
QMAKE_NM = $${CROSS_COMPILE}nm -P
|
|
QMAKE_STRIP = $${CROSS_COMPILE}strip
|
|
|
|
# Do not set QMAKE_INCDIR to system include here
|
|
# it messes up system include order. --sysroot is
|
|
# sufficient. See link for details:
|
|
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213217
|
|
QMAKE_LIBDIR = $$[QT_SYSROOT]/usr/lib
|