qmake.conf 883 B

12345678910111213141516171819202122232425
  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.
  3. # We leverage this mechanism in the OpenADK packaging of qt5 to
  4. # simplify cross-compilation: we have our own "device" definition, which
  5. # allows us to easily pass the cross-compiler paths and flags from our
  6. # qt5.mk.
  7. include(../common/linux_device_pre.conf)
  8. # modifications to g++-unix.conf
  9. QMAKE_CC = $${CROSS_COMPILE}gcc
  10. QMAKE_CXX = $${CROSS_COMPILE}g++
  11. # modifications to gcc-base.conf
  12. QMAKE_CFLAGS += $${ADK_COMPILER_CFLAGS}
  13. QMAKE_CXXFLAGS += $${ADK_COMPILER_CXXFLAGS}
  14. QMAKE_LFLAGS = $${ADK_COMPILER_LDFLAGS}
  15. CONFIG += nostrip
  16. QMAKE_LIBS += -lrt -lpthread -ldl
  17. QMAKE_CFLAGS_ISYSTEM =
  18. include(../common/linux_device_post.conf)
  19. load(qt_config)