cog.mk 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ################################################################################
  2. #
  3. # cog
  4. #
  5. ################################################################################
  6. COG_VERSION = 0.18.4
  7. COG_SITE = https://wpewebkit.org/releases
  8. COG_SOURCE = cog-$(COG_VERSION).tar.xz
  9. COG_INSTALL_STAGING = YES
  10. COG_DEPENDENCIES = dbus wpewebkit wpebackend-fdo wayland
  11. COG_LICENSE = MIT
  12. COG_LICENSE_FILES = COPYING
  13. COG_CONF_OPTS = \
  14. -Ddocumentation=false \
  15. -Dmanpages=false \
  16. -Dprograms=true \
  17. -Dwpe_api=2.0 \
  18. -Dcog_home_uri='$(call qstrip,$(BR2_PACKAGE_COG_PROGRAMS_HOME_URI))' \
  19. -Dplatforms='$(subst $(space),$(comma),$(strip $(COG_PLATFORMS_LIST)))'
  20. COG_PLATFORMS_LIST = headless
  21. ifeq ($(BR2_PACKAGE_WESTON),y)
  22. COG_CONF_OPTS += -Dwayland_weston_direct_display=true
  23. COG_DEPENDENCIES += weston
  24. else
  25. COG_CONF_OPTS += -Dwayland_weston_direct_display=false
  26. endif
  27. ifeq ($(BR2_PACKAGE_COG_PLATFORM_FDO),y)
  28. COG_PLATFORMS_LIST += wayland
  29. COG_DEPENDENCIES += libxkbcommon wayland-protocols
  30. endif
  31. ifeq ($(BR2_PACKAGE_COG_PLATFORM_DRM),y)
  32. COG_PLATFORMS_LIST += drm
  33. COG_DEPENDENCIES += libdrm libinput libgbm libegl udev
  34. endif
  35. ifeq ($(BR2_PACKAGE_COG_USE_SYSTEM_DBUS),y)
  36. COG_CONF_OPTS += -Dcog_dbus_control=system
  37. else
  38. COG_CONF_OPTS += -Dcog_dbus_control=user
  39. endif
  40. ifeq ($(BR2_PACKAGE_LIBMANETTE),y)
  41. COG_DEPENDENCIES += libmanette
  42. endif
  43. $(eval $(meson-package))