qt6tools.mk 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. -DQT_HOST_PATH=$(HOST_DIR) \
  27. -DBUILD_WITH_PCH=OFF \
  28. -DQT_BUILD_EXAMPLES=OFF \
  29. -DQT_BUILD_TESTS=OFF
  30. QT6TOOLS_DEPENDENCIES = \
  31. qt6base \
  32. host-qt6tools
  33. ifeq ($(BR2_PACKAGE_QT6DECLARATIVE),y)
  34. QT6TOOLS_DEPENDENCIES += qt6declarative
  35. endif
  36. HOST_QT6TOOLS_CONF_OPTS = \
  37. -DQT_BUILD_EXAMPLES=OFF \
  38. -DQT_BUILD_TESTS=OFF
  39. HOST_QT6TOOLS_DEPENDENCIES = host-qt6base
  40. ifeq ($(BR2_PACKAGE_HOST_QT6TOOLS_LINGUIST_TOOLS),y)
  41. HOST_QT6TOOLS_CONF_OPTS += -DFEATURE_linguist=ON
  42. # When we have qt6declarative for the target, we need to build the
  43. # linguist tool with host-qt6declarative support so that it handles
  44. # QML/JS files
  45. ifeq ($(BR2_PACKAGE_QT6DECLARATIVE),y)
  46. HOST_QT6TOOLS_DEPENDENCIES += host-qt6declarative
  47. endif
  48. else
  49. HOST_QT6TOOLS_CONF_OPTS += -DFEATURE_linguist=OFF
  50. endif
  51. $(eval $(cmake-package))
  52. $(eval $(host-cmake-package))