[Buildroot] [PATCH 1/2] package/cog: add option for platform DRM.
flat view
From: Peter Seiderer <hidden>
Date: 2020-03-10 12:36:14
Hello Charlie, On Tue, 10 Mar 2020 11:22:26 +0000, Charlie Turner [off-list ref] wrote:
quoted hunk ↗ jump to hunk
Signed-off-by: Charlie Turner <redacted> --- package/cog/Config.in | 6 ++++++ package/cog/cog.mk | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-)diff --git a/package/cog/Config.in b/package/cog/Config.in index b25991d4ae..b260fa259c 100644 --- a/package/cog/Config.in +++ b/package/cog/Config.in@@ -26,4 +26,10 @@ config BR2_PACKAGE_COG_PROGRAMS_HOME_URI string is used, there is no default and the URI to open must be always specified in the command line. +config BR2_PACKAGE_COG_PLATFORM_DRM + bool "DRM backend" + depends on BR2_PACKAGE_LIBDRM + help + Enable the DRM platform backend. This allows Cog to run + without a compositor like Weston. endifdiff --git a/package/cog/cog.mk b/package/cog/cog.mk index d0e5b79c38..0bbc684436 100644 --- a/package/cog/cog.mk +++ b/package/cog/cog.mk@@ -8,13 +8,17 @@ COG_VERSION = 0.4.0 COG_SITE = https://wpewebkit.org/releases COG_SOURCE = cog-$(COG_VERSION).tar.xz COG_INSTALL_STAGING = YES -COG_DEPENDENCIES = dbus wpewebkit wpebackend-fdo +COG_DEPENDENCIES = dbus wayland wpewebkit wpebackend-fdo
New option, unconditionally added new dependency on wayland?
quoted hunk ↗ jump to hunk
COG_LICENSE = MIT COG_LICENSE_FILES = COPYING COG_CONF_OPTS = \ -DCOG_BUILD_PROGRAMS=ON \ -DCOG_PLATFORM_FDO=ON \ - -DCOG_PLATFORM_DRM=OFF \ -DCOG_HOME_URI='$(call qstrip,$(BR2_PACKAGE_COG_PROGRAMS_HOME_URI))' +ifeq ($(BR2_PACKAGE_COG_PLATFORM_DRM),y) + COG_CONF_OPTS += -DCOG_PLATFORM_DRM=ON + COG_DEPENDENCIES += libdrm libinput
missing: #else COG_CONF_OPTS += -DCOG_PLATFORM_DRM=OFF Regards, Peter
quoted hunk ↗ jump to hunk
+endif + $(eval $(cmake-package))