qmake.conf 920 B

12345678910111213141516171819202122232425262728
  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 Buildroot 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 += $${BR_COMPILER_CFLAGS}
  13. QMAKE_CXXFLAGS += $${BR_COMPILER_CXXFLAGS}
  14. QMAKE_CXXFLAGS_RELEASE += -O3
  15. CONFIG += nostrip
  16. QMAKE_LIBS += -lrt -lpthread -ldl
  17. QMAKE_CFLAGS_ISYSTEM =
  18. # Architecturespecific configuration
  19. include(arch.conf)
  20. include(../common/linux_device_post.conf)
  21. load(qt_config)