1config BR2_PACKAGE_EFL
2	bool "efl"
3	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11
4	depends on BR2_HOST_GCC_AT_LEAST_4_9 # host-efl
5	depends on BR2_INSTALL_LIBSTDCPP
6	depends on BR2_TOOLCHAIN_HAS_THREADS # untested without threads
7	depends on BR2_USE_MMU
8	depends on BR2_USE_WCHAR # use wchar_t
9	depends on !BR2_STATIC_LIBS # dlfcn.h
10	# https://phab.enlightenment.org/T2728
11	depends on BR2_PACKAGE_LUAJIT
12	select BR2_PACKAGE_DBUS
13	select BR2_PACKAGE_FREETYPE
14	select BR2_PACKAGE_GIFLIB
15	select BR2_PACKAGE_JPEG # Emile needs libjpeg
16	select BR2_PACKAGE_LIBCURL # Ecore_con_url, runtime dependency
17	select BR2_PACKAGE_LIBPNG
18	select BR2_PACKAGE_OPENSSL if !(BR2_PACKAGE_GNUTLS && BR2_PACKAGE_LIBGCRYPT)
19	select BR2_PACKAGE_LZ4
20	select BR2_PACKAGE_ZLIB
21	help
22	  Enlightenment Foundation Libraries
23
24	  https://www.enlightenment.org/
25
26if BR2_PACKAGE_EFL
27
28config BR2_PACKAGE_EFL_BULLET
29	bool "Enable bullet support"
30	select BR2_PACKAGE_BULLET
31	help
32	  If you have chosen to disable physics support, this disables
33	  lots of core functionality and is effectively never
34	  tested. You are going to find features that suddenly don't
35	  work and as a result cause a series of breakages. This is
36	  simply not tested so you are on your own in terms of
37	  ensuring everything works if you do this.
38
39config BR2_PACKAGE_EFL_EEZE
40	bool "Enable eeze (udev) support (recommended)"
41	default y
42	depends on BR2_PACKAGE_HAS_UDEV # libudev
43	help
44	  Eeze is EFL's hardware abstraction layer on top of udev.
45	  Having it off will disable some hardware detection, such as
46	  'drm' graphics engine or 'elput', as well as mounting
47	  removable media.
48
49comment "eeze needs udev /dev management"
50	depends on !BR2_PACKAGE_HAS_UDEV
51
52config BR2_PACKAGE_EFL_FONTCONFIG
53	bool "Enable fontconfig support (recommended)"
54	default y
55	select BR2_PACKAGE_FONTCONFIG
56	help
57	  If fontconfig is disabled, this is going to make general
58	  font searching not work, and only some very direct 'load
59	  /path/file.ttf' will work alongside some old-school ttf file
60	  path searching. This is very likely not what you want, so
61	  highly reconsider turning fontconfig off. Having it off will
62	  lead to visual problems like missing text in many UI areas
63	  etc...
64
65config BR2_PACKAGE_EFL_GSTREAMER1
66	bool "Enable gstreamer1 support (recommended)"
67	default y
68	select BR2_PACKAGE_GSTREAMER1
69	select BR2_PACKAGE_GST1_PLUGINS_BASE
70	help
71	  If Gstreamer 1.x support is disabled, it will heavily limit
72	  your media support options and render some functionality as
73	  useless, leading to visible application bugs.
74
75config BR2_PACKAGE_EFL_LIBFRIBIDI
76	bool "Enable libfribidi support (recommended)"
77	default y
78	select BR2_PACKAGE_LIBFRIBIDI
79	help
80	  Fribidi is used for handling right-to-left text (like
81	  Arabic, Hebrew, Farsi, Persian etc.) and is very likely not
82	  a feature you want to disable unless you know for absolute
83	  certain you will never encounter and have to display such
84	  scripts. Also note that we don't test with fribidi disabled
85	  so you may also trigger code paths with bugs that are never
86	  normally used.
87
88config BR2_PACKAGE_EFL_ELPUT
89	bool "Enable elput support (recommended)"
90	default y
91	depends on BR2_PACKAGE_HAS_UDEV # libinput, efl-eeze
92	select BR2_PACKAGE_EFL_EEZE
93	select BR2_PACKAGE_LIBINPUT
94	select BR2_PACKAGE_LIBXKBCOMMON
95	help
96	  Eplut is used to support gesture recognition.
97
98comment "elput needs udev /dev management"
99	depends on !BR2_PACKAGE_HAS_UDEV
100
101config BR2_PACKAGE_EFL_LIBSNDFILE
102	bool "Enable libsndfile support (recommended)"
103	default y
104	select BR2_PACKAGE_LIBSNDFILE
105	help
106	  If you disabled audio support in Ecore, this is not tested
107	  and may create bugs for you due to it creating untested code
108	  paths.  Reconsider disabling audio.
109
110config BR2_PACKAGE_EFL_PULSEAUDIO
111	bool "Enable pulseaudio support (recommended)"
112	default y
113	depends on BR2_PACKAGE_PULSEAUDIO_HAS_ATOMIC
114	depends on BR2_USE_WCHAR
115	depends on BR2_TOOLCHAIN_HAS_THREADS
116	depends on !BR2_STATIC_LIBS
117	depends on BR2_USE_MMU
118	select BR2_PACKAGE_PULSEAUDIO
119	help
120	  The only audio output method supported by Ecore right now is
121	  via Pulseaudio. You have disabled that and likely have
122	  broken a whole bunch of things in the process. Reconsider
123	  your configure options.
124
125	  NOTE: multisense support is automatically enabled with
126	  pulseaudio.
127
128config BR2_PACKAGE_EFL_UTIL_LINUX_LIBMOUNT
129	bool "Enable libmount support (recommended)"
130	default y
131	depends on BR2_PACKAGE_HAS_UDEV # efl-eeze
132	select BR2_PACKAGE_EFL_EEZE
133	select BR2_PACKAGE_UTIL_LINUX
134	select BR2_PACKAGE_UTIL_LINUX_LIBMOUNT
135	# libblkid is part of required tools, see EFL's README.
136	select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
137	help
138	  Libmount is used heavily inside Eeze for support of removable
139	  devices etc... and disabling this will hurt support for
140	  Enlightenment and its filemanager.
141
142comment "efl's libmount support needs udev /dev management "
143	depends on !BR2_PACKAGE_HAS_UDEV
144
145config BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG
146	bool
147	default y if BR2_PACKAGE_EFL_EEZE && \
148		BR2_PACKAGE_EFL_FONTCONFIG && \
149		BR2_PACKAGE_EFL_GSTREAMER1 && \
150		BR2_PACKAGE_EFL_LIBFRIBIDI && \
151		BR2_PACKAGE_EFL_LIBSNDFILE && \
152		BR2_PACKAGE_EFL_PULSEAUDIO && \
153		BR2_PACKAGE_EFL_UTIL_LINUX_LIBMOUNT
154
155comment "Warning: one of the recommended option for EFL is not enabled"
156	depends on !BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG
157
158config BR2_PACKAGE_EFL_EOLIAN_CPP
159	bool "Enable Eolian C++ bindings"
160	help
161	  Eolian is an EO object parser and code generator.
162	  With this option enabled Eolian will handle automatic
163	  generation of EFL bindings for the C++11 language.
164
165comment "libecore video support"
166
167config BR2_PACKAGE_EFL_FB
168	bool "FB support"
169
170config BR2_PACKAGE_EFL_X_XLIB
171	bool "X11 support (xlib)"
172	depends on BR2_PACKAGE_XORG7
173	select BR2_PACKAGE_XLIB_LIBX11
174	select BR2_PACKAGE_XLIB_LIBXEXT
175	select BR2_PACKAGE_XLIB_LIBXCOMPOSITE
176	select BR2_PACKAGE_XLIB_LIBXCURSOR
177	select BR2_PACKAGE_XLIB_LIBXDAMAGE
178	select BR2_PACKAGE_XLIB_LIBXINERAMA
179	select BR2_PACKAGE_XLIB_LIBXRANDR
180	select BR2_PACKAGE_XLIB_LIBXRENDER
181	select BR2_PACKAGE_XLIB_LIBXSCRNSAVER
182	select BR2_PACKAGE_XLIB_LIBXTST
183	select BR2_PACKAGE_XORGPROTO
184
185config BR2_PACKAGE_EFL_WAYLAND
186	bool "Wayland support"
187	depends on BR2_PACKAGE_WAYLAND
188	depends on BR2_TOOLCHAIN_HAS_THREADS # Evas DRM Engine -> libdrm
189	depends on BR2_PACKAGE_MESA3D_OPENGL_EGL # Evas DRM Engine
190	depends on BR2_PACKAGE_HAS_UDEV # efl drm, efl-eeze
191	depends on BR2_PACKAGE_EFL_OPENGLES # OpenGL ES with EGL support only
192	depends on BR2_ENABLE_LOCALE # efl-drm <- efl-elput <- linput
193	select BR2_PACKAGE_EFL_DRM
194	select BR2_PACKAGE_WAYLAND_PROTOCOLS
195
196comment "Wayland support needs udev /dev management, OpenGL ES w/ EGL, threads, locales"
197	depends on BR2_PACKAGE_WAYLAND
198	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_MESA3D_OPENGL_EGL \
199		|| !BR2_PACKAGE_EFL_OPENGLES || !BR2_PACKAGE_HAS_UDEV \
200		|| !BR2_ENABLE_LOCALE
201
202choice
203	bool "OpenGL support"
204	help
205	  libevas can be configured to use HW acceleration with OpenGL
206	  or OpenGL ES.
207
208config BR2_PACKAGE_EFL_OPENGL
209	bool "OpenGL"
210	depends on BR2_PACKAGE_HAS_LIBGL
211	depends on BR2_PACKAGE_XORG7
212	select BR2_PACKAGE_EFL_X_XLIB
213
214comment "OpenGL support needs X11 and an OpenGL provider"
215	depends on !BR2_PACKAGE_HAS_LIBGL || !BR2_PACKAGE_XORG7
216
217config BR2_PACKAGE_EFL_OPENGLES
218	bool "OpenGL ES (w/ EGL)"
219	depends on BR2_PACKAGE_HAS_LIBEGL
220	depends on BR2_PACKAGE_HAS_LIBGLES
221
222comment "OpenGL ES support needs an OpenGL ES w/ EGL provider"
223	depends on !BR2_PACKAGE_HAS_LIBGLES || !BR2_PACKAGE_HAS_LIBEGL
224
225config BR2_PACKAGE_EFL_OPENGL_NONE
226	bool "none"
227
228endchoice # OpenGL support
229
230config BR2_PACKAGE_EFL_DRM
231	bool "Evas DRM Engine"
232	depends on BR2_PACKAGE_HAS_UDEV # efl-elput, efl-eeze
233	depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm
234	depends on BR2_PACKAGE_MESA3D_OPENGL_EGL # require libgbm from mesa3d
235	select BR2_PACKAGE_EFL_ELPUT
236	select BR2_PACKAGE_LIBDRM
237	help
238	  This option enable building support for the Evas DRM Engine.
239
240	  Since efl 1.23.x, the drm option enable the elput library
241	  which is an efl abstraction for the libinput library which
242	  can be used by various other subsystems (ecore_fb, ecore_drm,
243	  etc) to handle interfacing with libinput without having to
244	  duplicate the code in each subsystem.
245
246comment "Evas DRM Engine needs udev /dev management, mesa3d w/ EGL support, threads"
247	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_MESA3D_OPENGL_EGL \
248		|| !BR2_PACKAGE_HAS_UDEV
249
250comment "libevas loaders"
251
252config BR2_PACKAGE_EFL_JPEG
253	bool "libevas jpeg loader"
254	select BR2_PACKAGE_OPENJPEG
255	help
256	  This enables the loader code that loads jpeg files using
257	  libjpeg.
258
259config BR2_PACKAGE_EFL_TIFF
260	bool "libevas tiff loader"
261	select BR2_PACKAGE_TIFF
262	help
263	  This enables the loader code that loads tiff files.
264
265config BR2_PACKAGE_EFL_WEBP
266	bool "libevas webp image loader"
267	select BR2_PACKAGE_WEBP
268	select BR2_PACKAGE_WEBP_DEMUX
269	help
270	  This enables the loader code that loads images using WebP.
271
272config BR2_PACKAGE_EFL_LIBRAW
273	bool "libraw loader"
274	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libraw
275	select BR2_PACKAGE_LIBRAW
276	help
277	  This option enables the Evas generic Libraw loader
278
279config BR2_PACKAGE_EFL_SVG
280	bool "SVG loader"
281	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # librsvg
282	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # librsvg -> pango -> harfbuzz
283	select BR2_PACKAGE_LIBRSVG
284	select BR2_PACKAGE_CAIRO
285	help
286	  This option enables the Evas generic SVG loader
287
288endif # BR2_PACKAGE_EFL
289
290comment "efl needs a toolchain w/ C++, dynamic library, gcc >= 4.9, host gcc >= 4.9, threads, wchar"
291	depends on !BR2_INSTALL_LIBSTDCPP \
292		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 \
293		|| !BR2_HOST_GCC_AT_LEAST_4_9 || BR2_STATIC_LIBS \
294		|| !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
295	depends on BR2_USE_MMU
296