xref: /OK3568_Linux_fs/buildroot/package/wpewebkit/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_WPEWEBKIT_ARCH_SUPPORTS
2	bool
3	# ARM needs BLX, so v5t+, BE completely untested so disabled
4	default y if BR2_arm && !BR2_ARM_CPU_ARMV4
5	default y if BR2_aarch64 || BR2_aarch64_be
6	default y if BR2_i386 || BR2_x86_64
7	# Disabled on MIPS big endian due to sigbus
8	default y if BR2_mipsel || BR2_mips64el
9	# Disabled on PowerPC pending runtime testing
10	# Disabled on SuperH because of segfault
11	depends on BR2_USE_MMU # libglib2
12	depends on BR2_TOOLCHAIN_HAS_SYNC_4
13	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt
14
15comment "wpewebkit needs a toolchain w/ C++, wchar, threads, dynamic library, gcc >= 7, host gcc >= 4.9"
16	depends on BR2_PACKAGE_WPEWEBKIT_ARCH_SUPPORTS
17	depends on !BR2_BINFMT_FLAT
18	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR \
19		|| !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS \
20		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_7 \
21		|| !BR2_HOST_GCC_AT_LEAST_4_9
22
23comment "wpewebkit needs an OpenGL ES w/ EGL-capable Wayland backend"
24	depends on BR2_PACKAGE_WPEWEBKIT_ARCH_SUPPORTS
25	depends on !BR2_BINFMT_FLAT
26	depends on !BR2_PACKAGE_HAS_LIBGLES || !BR2_PACKAGE_HAS_LIBEGL \
27		|| !BR2_PACKAGE_HAS_LIBEGL_WAYLAND
28
29config BR2_PACKAGE_WPEWEBKIT
30	bool "wpewebkit"
31	depends on !BR2_STATIC_LIBS # wayland
32	depends on !BR2_BINFMT_FLAT # icu
33	depends on BR2_HOST_GCC_AT_LEAST_4_9 # icu, host-ruby
34	depends on BR2_INSTALL_LIBSTDCPP # harfbuzz, icu
35	depends on BR2_TOOLCHAIN_HAS_THREADS # wayland, icu, libsoup
36	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7
37	depends on BR2_USE_WCHAR # icu, libsoup
38	depends on BR2_PACKAGE_HAS_LIBGLES # libepoxy
39	depends on BR2_PACKAGE_HAS_LIBEGL # libepoxy
40	depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND # wpebackend-fdo
41	depends on BR2_PACKAGE_WPEWEBKIT_ARCH_SUPPORTS
42	depends on BR2_PACKAGE_WAYLAND
43	select BR2_PACKAGE_CAIRO
44	select BR2_PACKAGE_CAIRO_PNG
45	select BR2_PACKAGE_HARFBUZZ
46	select BR2_PACKAGE_ICU
47	select BR2_PACKAGE_JPEG
48	select BR2_PACKAGE_LIBEPOXY
49	select BR2_PACKAGE_LIBGCRYPT
50	select BR2_PACKAGE_LIBPNG
51	select BR2_PACKAGE_LIBSOUP
52	select BR2_PACKAGE_LIBTASN1
53	select BR2_PACKAGE_LIBXSLT
54	select BR2_PACKAGE_OPENJPEG
55	select BR2_PACKAGE_WAYLAND_PROTOCOLS
56	select BR2_PACKAGE_WEBP
57	select BR2_PACKAGE_WEBP_DEMUX
58	select BR2_PACKAGE_WPEBACKEND_FDO
59	help
60	  WPE (Web Platform for Embedded) port of the WebKit engine,
61	  to allow embedders to create simple and performant systems
62	  based on Web platform technologies.
63
64	  https://wpewebkit.org/
65
66if BR2_PACKAGE_WPEWEBKIT
67
68config BR2_PACKAGE_WPEWEBKIT_SANDBOX
69	bool "sandboxing support"
70	depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS # libseccomp
71	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 # libseccomp
72	select BR2_PACKAGE_BUBBLEWRAP # runtime
73	select BR2_PACKAGE_XDG_DBUS_PROXY # runtime
74	select BR2_PACKAGE_LIBSECCOMP
75	help
76	  Enable sandboxing of the processes used for network operation,
77	  disk asccess, and Web content rendering.
78
79comment "sandboxing supports needs a toolchain w/ headers >= 3.12"
80	depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS
81	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
82
83config BR2_PACKAGE_WPEWEBKIT_MULTIMEDIA
84	bool "multimedia support"
85	select BR2_PACKAGE_GSTREAMER1
86	select BR2_PACKAGE_GST1_PLUGINS_BAD
87	select BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_MPEGTSDEMUX
88	select BR2_PACKAGE_GST1_PLUGINS_BASE
89	select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_ALSA
90	select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_APP
91	select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_AUDIOCONVERT
92	select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_AUDIORESAMPLE
93	select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_PLAYBACK
94	select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEOCONVERT
95	select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEOSCALE
96	select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VOLUME
97	select BR2_PACKAGE_GST1_PLUGINS_GOOD
98	select BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_AUTODETECT
99	select BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_ISOMP4
100	select BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_MATROSKA
101	select BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_RTSP
102	select BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_VPX
103	select BR2_PACKAGE_GST1_LIBAV
104	help
105	  This option pulls in all of the required dependencies
106	  to enable multimedia (video/audio) support.
107
108if BR2_PACKAGE_WPEWEBKIT_MULTIMEDIA
109
110config BR2_PACKAGE_WPEWEBKIT_MEDIA_STREAM
111	bool "media-stream support"
112	help
113	  This option enables media-stream support.
114
115config BR2_PACKAGE_WPEWEBKIT_USE_GSTREAMER_GL
116	bool "use gstreamer-gl"
117	default y
118	depends on BR2_PACKAGE_GST1_PLUGINS_BASE_LIB_OPENGL_HAS_PLATFORM
119	help
120	  Use the GStreamer GL elements for handling video content.
121	  This is recommended as it improves performance of video
122	  playback. In some target configurations incorrect rendering
123	  might be produced, and disabling this option may help.
124
125endif
126
127config BR2_PACKAGE_WPEWEBKIT_WEBDRIVER
128	bool "WebDriver support"
129	help
130	  Enable support for WebDriver. This will build and install the
131	  WebKitWebDriver program in the target.
132
133endif
134