qtbase: add new package, use device method like buildroot for cross-compile
[openadk.git] / package / qtbase / files / qmake.conf
blob2d083572acdc855bd43885dde32b25fd19aafbe4
1 # Qt5 has a mechanism to support "device" profiles, so that people can
2 # specify the compiler, compiler flags and so on for a specific device.
4 # We leverage this mechanism in the OpenADK packaging of qt5 to
5 # simplify cross-compilation: we have our own "device" definition, which
6 # allows us to easily pass the cross-compiler paths and flags from our
7 # qt5.mk.
9 include(../common/linux_device_pre.conf)
11 # modifications to g++-unix.conf
12 QMAKE_CC                = $${CROSS_COMPILE}gcc
13 QMAKE_CXX               = $${CROSS_COMPILE}g++
15 # modifications to gcc-base.conf
16 QMAKE_CFLAGS           += $${ADK_COMPILER_CFLAGS}
17 QMAKE_CXXFLAGS         += $${ADK_COMPILER_CXXFLAGS}
18 QMAKE_LFLAGS           = $${ADK_COMPILER_LDFLAGS}
19 CONFIG                 += nostrip
21 QMAKE_LIBS             += -lrt -lpthread -ldl
22 QMAKE_CFLAGS_ISYSTEM   =
24 include(../common/linux_device_post.conf)
25 load(qt_config)