diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2025-09-29 03:31:08 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2025-09-29 03:31:21 +0200 |
commit | 2c6d9ed44ccb77bacf750be6f7366bd759cf579b (patch) | |
tree | 5836873529545d9b7a5a8e36c36541e8fc65b2bc | |
parent | 13d9b3746e49bb672ee867dc7c9fd291722c2c5b (diff) |
cog: enable choice between wayland and x11
-rw-r--r-- | package/cog/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/package/cog/Makefile b/package/cog/Makefile index 2dd617ad5..ddc033a9c 100644 --- a/package/cog/Makefile +++ b/package/cog/Makefile @@ -14,6 +14,10 @@ PKG_BUILDDEP:= wpewebkit wpebackend-fdo libinput PKG_URL:= https://wpewebkit.org PKG_SITES:= https://wpewebkit.org/releases/ +PKG_CHOICES_COG:= WITH_X11 WITH_WAYLAND +PKGCD_WITH_WAYLAND:= with wayland support +PKGCD_WITH_X11:= with X11 support + include $(ADK_TOPDIR)/mk/package.mk $(eval $(call PKG_template,COG,cog,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION))) @@ -23,8 +27,15 @@ WRKBUILD= $(WRKDIR)/$(PKG_NAME)-obj MESON_FLAGS+= -Ddocumentation=false \ -Dmanpages=false \ -Dprograms=true \ - -Dwpe_api=2.0 \ - -Dplatforms="wayland" + -Dwpe_api=2.0 + +ifeq ($(ADK_PACKAGE_COG_WITH_WAYLAND),y) +MESON_FLAGS+= -Dplatforms="wayland" +endif + +ifeq ($(ADK_PACKAGE_COG_WITH_X11),y) +MESON_FLAGS+= -Dplatforms="x11" +endif CONFIG_STYLE:= meson BUILD_STYLE:= meson |