1comment "cog needs wpewebkit and a toolchain w/ threads"
2	depends on BR2_USE_MMU
3	depends on !BR2_PACKAGE_WPEWEBKIT || !BR2_TOOLCHAIN_HAS_THREADS
4
5config BR2_PACKAGE_COG
6	bool "cog"
7	depends on BR2_PACKAGE_WPEWEBKIT
8	depends on BR2_TOOLCHAIN_HAS_THREADS # dbus
9	depends on BR2_USE_MMU # dbus
10	select BR2_PACKAGE_DBUS
11	select BR2_PACKAGE_WAYLAND
12	help
13	  Single "window" launcher for the WebKit WPE port, and
14	  helper library for implementing WPE launcher. It does
15	  not provide any chrome, and is suitable to be used
16	  as a Web application container.
17
18	  https://github.com/Igalia/cog
19
20if BR2_PACKAGE_COG
21
22config BR2_PACKAGE_COG_PROGRAMS_HOME_URI
23	string "home uri"
24	default "https://wpewebkit.org"
25	help
26	  Default URI to open when "cog" is launched. If an empty
27	  string is used, there is no default and the URI to open
28	  must be always specified in the command line.
29
30config BR2_PACKAGE_COG_PLATFORM_FDO
31	bool "Wayland backend"
32	default y
33	select BR2_PACKAGE_LIBXKBCOMMON
34	select BR2_PACKAGE_WAYLAND_PROTOCOLS
35	help
36	  Enable the Wayland backend. Cog will interface with
37	  a compositor over the Wayland protocol.
38
39config BR2_PACKAGE_COG_PLATFORM_DRM
40	bool "DRM backend"
41	depends on BR2_PACKAGE_HAS_UDEV # libinput
42	depends on BR2_PACKAGE_HAS_LIBEGL
43	depends on BR2_PACKAGE_HAS_LIBGBM
44	depends on BR2_PACKAGE_LIBGBM_HAS_FEATURE_DMA_BUF
45	depends on BR2_PACKAGE_LIBGBM_HAS_FEATURE_FORMAT_MODIFIER_PLANE_COUNT
46	select BR2_PACKAGE_LIBDRM
47	select BR2_PACKAGE_LIBINPUT
48	help
49	  Enable the DRM platform backend. Cog will interface directly
50	  with video drivers that support kernel mode-setting (KMS)
51	  via the DRM user-space API.
52
53config BR2_PACKAGE_COG_USE_SYSTEM_DBUS
54	bool "expose system D-Bus control interface"
55	help
56	  Expose remote control interface on system bus
57
58comment "DRM platform needs EGL and GBM"
59	depends on \
60		!BR2_PACKAGE_HAS_LIBEGL || \
61		!BR2_PACKAGE_HAS_LIBGBM || \
62		!BR2_PACKAGE_LIBGBM_HAS_FEATURE_DMA_BUF || \
63		!BR2_PACKAGE_LIBGBM_HAS_FEATURE_FORMAT_MODIFIER_PLANE_COUNT
64
65endif
66