COMPOSITOR_MODULES="$COMPOSITOR_MODULES xkbcommon >= 0.3.0"
fi
+AC_ARG_ENABLE([default-vkb],
+ [AC_HELP_STRING([--enable-default-vkb],
+ [Enable default virtual keyboard])],
+ [],
+ [enable_default_vkb=yes])
+if test "x$enable_default_vkb" = "xyes"; then
+ AC_DEFINE(HAVE_DEFAULT_VKB, [1], [Enable default virtual keyboard])
+fi
+
AC_ARG_ENABLE(sys-uid, [ --enable-sys-uid],,
enable_sys_uid=no)
if test x$enable_sys_uid = xyes; then
%define extra_config_options5 --enable-sys-uid --disable-ivi-shell
%endif
+%if "%{profile}" == "ivi"
+%define extra_config_options4 --disable-default-vkb
+%endif
+
Name: weston
Version: 1.7.0
Release: 0
text_backend_configuration(struct text_backend *text_backend)
{
struct weston_config_section *section;
- char *client;
- int ret;
+ char *client = NULL;
+ int ret = -1;
section = weston_config_get_section(text_backend->compositor->config,
"input-method", NULL, NULL);
+#if HAVE_DEFAULT_VKB
ret = asprintf(&client, "%s/weston-keyboard",
weston_config_get_libexec_dir());
+#endif
if (ret < 0)
client = NULL;
+
weston_config_section_get_string(section, "path",
&text_backend->input_method.path,
client);