qt6tools.mk 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. ################################################################################
  2. #
  3. # qt6tools
  4. #
  5. ################################################################################
  6. QT6TOOLS_VERSION = $(QT6_VERSION)
  7. QT6TOOLS_SITE = $(QT6_SITE)
  8. QT6TOOLS_SOURCE = qttools-$(QT6_SOURCE_TARBALL_PREFIX)-$(QT6TOOLS_VERSION).tar.xz
  9. QT6TOOLS_INSTALL_STAGING = YES
  10. QT6TOOLS_SUPPORTS_IN_SOURCE_BUILD = NO
  11. QT6TOOLS_CMAKE_BACKEND = ninja
  12. QT6TOOLS_LICENSE = \
  13. BSD-3-Clause (examples), \
  14. BSD-3-Clause (corecon), \
  15. BSL-1.0 (catch), \
  16. LGPL-3.0 or GPL-3.0 or GPL-2.0, \
  17. GPL-3.0 WITH Qt-GPL-exception-1.0
  18. QT6TOOLS_LICENSE_FILES = \
  19. LICENSES/BSD-3-Clause.txt \
  20. LICENSES/BSL-1.0.txt \
  21. LICENSES/GPL-2.0-only.txt \
  22. LICENSES/GPL-3.0-only.txt \
  23. LICENSES/LGPL-3.0-only.txt \
  24. LICENSES/Qt-GPL-exception-1.0.txt
  25. QT6TOOLS_CONF_OPTS = \
  26. -DFEATURE_assistant=OFF \
  27. -DFEATURE_designer=OFF \
  28. -DFEATURE_linguist=OFF \
  29. -DQT_HOST_PATH=$(HOST_DIR) \
  30. -DBUILD_WITH_PCH=OFF \
  31. -DQT_BUILD_EXAMPLES=OFF \
  32. -DQT_BUILD_TESTS=OFF
  33. # Disable clang support in qt6tools for now, as version 17 is needed:
  34. # https://code.qt.io/cgit/qt/qttools.git/tree/.cmake.conf?h=6.8.1
  35. QT6TOOLS_CONF_OPTS += -DFEATURE_clang=OFF
  36. QT6TOOLS_DEPENDENCIES = \
  37. qt6base \
  38. host-qt6tools
  39. ifeq ($(BR2_PACKAGE_QT6DECLARATIVE),y)
  40. QT6TOOLS_DEPENDENCIES += qt6declarative
  41. endif
  42. HOST_QT6TOOLS_CONF_OPTS = \
  43. -DFEATURE_assistant=OFF \
  44. -DFEATURE_designer=OFF \
  45. -DQT_BUILD_EXAMPLES=OFF \
  46. -DQT_BUILD_TESTS=OFF
  47. # Disable clang support in qt6tools for now, as version 17 is needed:
  48. # https://code.qt.io/cgit/qt/qttools.git/tree/.cmake.conf?h=6.8.1
  49. HOST_QT6TOOLS_CONF_OPTS += -DFEATURE_clang=OFF
  50. HOST_QT6TOOLS_DEPENDENCIES = host-qt6base
  51. ifeq ($(BR2_PACKAGE_HOST_QT6TOOLS_LINGUIST_TOOLS),y)
  52. HOST_QT6TOOLS_CONF_OPTS += -DFEATURE_linguist=ON
  53. # When we have qt6declarative for the target, we need to build the
  54. # linguist tool with host-qt6declarative support so that it handles
  55. # QML/JS files
  56. ifeq ($(BR2_PACKAGE_QT6DECLARATIVE),y)
  57. HOST_QT6TOOLS_DEPENDENCIES += host-qt6declarative
  58. endif
  59. else
  60. HOST_QT6TOOLS_CONF_OPTS += -DFEATURE_linguist=OFF
  61. endif
  62. $(eval $(cmake-package))
  63. $(eval $(host-cmake-package))