qt5wayland.mk 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. ################################################################################
  2. #
  3. # qt5wayland
  4. #
  5. ################################################################################
  6. QT5WAYLAND_VERSION = $(QT5_VERSION)
  7. QT5WAYLAND_SITE = $(QT5_SITE)
  8. QT5WAYLAND_SOURCE = qtwayland-$(QT5_SOURCE_TARBALL_PREFIX)-$(QT5WAYLAND_VERSION).tar.xz
  9. QT5WAYLAND_DEPENDENCIES = qt5base wayland
  10. QT5WAYLAND_INSTALL_STAGING = YES
  11. ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
  12. QT5WAYLAND_DEPENDENCIES += qt5declarative
  13. endif
  14. ifeq ($(BR2_PACKAGE_LIBXKBCOMMON),y)
  15. QT5WAYLAND_DEPENDENCIES += libxkbcommon
  16. endif
  17. QT5WAYLAND_LICENSE = GPL-2.0+ or LGPL-3.0, GPL-3.0 with exception(tools), GFDL-1.3 (docs)
  18. QT5WAYLAND_LICENSE_FILES = LICENSE.GPL2 LICENSE.GPL3 LICENSE.GPL3-EXCEPT LICENSE.LGPL3 LICENSE.FDL
  19. ifeq ($(BR2_PACKAGE_QT5WAYLAND_COMPOSITOR),y)
  20. QT5WAYLAND_QMAKEFLAGS += CONFIG+=wayland-compositor
  21. endif
  22. define QT5WAYLAND_CONFIGURE_CMDS
  23. (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/bin/qmake $(QT5WAYLAND_QMAKEFLAGS))
  24. endef
  25. define QT5WAYLAND_BUILD_CMDS
  26. $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
  27. endef
  28. define QT5WAYLAND_INSTALL_STAGING_CMDS
  29. $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
  30. endef
  31. ifeq ($(BR2_PACKAGE_QT5WAYLAND_COMPOSITOR),y)
  32. define QT5WAYLAND_INSTALL_COMPOSITOR
  33. cp -dpf $(STAGING_DIR)/usr/lib/libQt5WaylandCompositor.so* $(TARGET_DIR)/usr/lib
  34. endef
  35. ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
  36. define QT5WAYLAND_INSTALL_COMPOSITOR_QMLS
  37. cp -dpfr $(STAGING_DIR)/usr/qml/QtWayland $(TARGET_DIR)/usr/qml/
  38. endef
  39. endif
  40. endif
  41. ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
  42. ifeq ($(BR2_PACKAGE_QT5BASE_OPENGL),y)
  43. define QT5WAYLAND_INSTALL_TARGET_EXAMPLES
  44. cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/wayland $(TARGET_DIR)/usr/lib/qt/examples/
  45. endef
  46. endif
  47. endif
  48. define QT5WAYLAND_INSTALL_TARGET_CMDS
  49. cp -dpf $(STAGING_DIR)/usr/lib/libQt5WaylandClient.so* $(TARGET_DIR)/usr/lib
  50. cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/wayland* $(TARGET_DIR)/usr/lib/qt/plugins
  51. cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/platforms/libqwayland* $(TARGET_DIR)/usr/lib/qt/plugins/platforms
  52. $(QT5WAYLAND_INSTALL_COMPOSITOR)
  53. $(QT5WAYLAND_INSTALL_COMPOSITOR_QMLS)
  54. $(QT5WAYLAND_INSTALL_TARGET_EXAMPLES)
  55. endef
  56. $(eval $(generic-package))