AC_SUBST(SHM_OPEN_LIBS)
if test "x${e_cv_want_wayland_only}" != "xno" || test "x${e_cv_want_wayland_clients}" != "xno";then
- PKG_CHECK_MODULES([WAYLAND], [wayland-server >= 1.8.0 xkbcommon uuid xdg-shell-unstable-v5-server xdg-shell-unstable-v6-server scaler-server screenshooter-server tizen-extension-server tizen-launch-server tizen-surface-server eom-server],
+ PKG_CHECK_MODULES([WAYLAND], [wayland-server >= 1.8.0 xkbcommon uuid xdg-shell-unstable-v5-server xdg-shell-unstable-v6-server tizen-remote-surface-server scaler-server screenshooter-server tizen-extension-server tizen-launch-server tizen-surface-server eom-server],
[
have_wayland=yes
AC_DEFINE_UNQUOTED([HAVE_WAYLAND],[1],[enable wayland support])
fi
have_wayland_tbm=no
- have_remote_surface=no
AC_ARG_ENABLE([wayland-tbm],
AS_HELP_STRING([--enable-wayland-tbm],[enable wayland-tbm @<:@default=enabled@:>@]),
[e_cv_want_wayland_tbm=$enableval],
have_wayland_tbm=yes
AC_DEFINE_UNQUOTED([HAVE_WAYLAND_TBM],[1],[enable wayland-tbm support])
])
-
- if test "x${have_wayland_tbm}" = "xyes"; then
- PKG_CHECK_MODULES([TIZEN_REMOTE_SURFACE], [tizen-remote-surface-server],
- [
- have_remote_surface=yes
- AC_DEFINE_UNQUOTED([HAVE_REMOTE_SURFACE], [1], [enable tizen-retmoe-surface support])
- ])
- fi
-
else
have_wayland_tbm=no
fi
AM_CONDITIONAL([HAVE_WAYLAND], [test "x${have_wayland}" = "xyes"])
AM_CONDITIONAL([HAVE_WAYLAND_TBM], [test "x${have_wayland_tbm}" = "xyes"])
-AM_CONDITIONAL([HAVE_REMOTE_SURFACE], [test "x${have_remote_surface}" = "xyes"])
AM_CONDITIONAL([HAVE_HWC], [test "x${have_hwc}" = "xyes"])
#pixman
@EDJE_DEF@ \
@WAYLAND_CFLAGS@ \
@WAYLAND_TBM_CFLAGS@ \
-@TIZEN_REMOTE_SURFACE_CFLAGS@ \
-DE_BINDIR=\"$(bindir)\" \
-DPACKAGE_BIN_DIR=\"@PACKAGE_BIN_DIR@\" \
-DPACKAGE_LIB_DIR=\"@PACKAGE_LIB_DIR@\" \
src/bin/e_devicemgr_wl.c \
src/bin/e_msg.c
-src_bin_enlightenment_CPPFLAGS = $(E_CPPFLAGS) -DEFL_BETA_API_SUPPORT -DEFL_EO_API_SUPPORT -DE_LOGGING=2 @WAYLAND_CFLAGS@ $(TTRACE_CFLAGS) $(DLOG_CFLAGS) $(PIXMAN_CFLAGS) $(POLICY_CFLAGS) @TIZEN_REMOTE_SURFACE_CFLAGS@
+src_bin_enlightenment_CPPFLAGS = $(E_CPPFLAGS) -DEFL_BETA_API_SUPPORT -DEFL_EO_API_SUPPORT -DE_LOGGING=2 @WAYLAND_CFLAGS@ $(TTRACE_CFLAGS) $(DLOG_CFLAGS) $(PIXMAN_CFLAGS) $(POLICY_CFLAGS)
if HAVE_LIBGOMP
src_bin_enlightenment_CPPFLAGS += -fopenmp
endif
if HAVE_LIBGOMP
src_bin_enlightenment_LDFLAGS += -fopenmp
endif
-src_bin_enlightenment_LDADD = @e_libs@ @dlopen_libs@ @cf_libs@ @VALGRIND_LIBS@ @WAYLAND_LIBS@ -lm @SHM_OPEN_LIBS@ $(TTRACE_LIBS) $(DLOG_LIBS) $(PIXMAN_LIBS) $(POLICY_LIBS) @TIZEN_REMOTE_SURFACE_LIBS@
+src_bin_enlightenment_LDADD = @e_libs@ @dlopen_libs@ @cf_libs@ @VALGRIND_LIBS@ @WAYLAND_LIBS@ -lm @SHM_OPEN_LIBS@ $(TTRACE_LIBS) $(DLOG_LIBS) $(PIXMAN_LIBS) $(POLICY_LIBS)
if HAVE_WAYLAND_TBM
src_bin_enlightenment_LDADD += @WAYLAND_TBM_LIBS@
endif
#include "e.h"
#include "e_policy_wl.h"
-#ifdef HAVE_REMOTE_SURFACE
- #include <tizen-remote-surface-server-protocol.h>
-#endif /* HAVE_REMOTE_SURFACE */
+#include <tizen-remote-surface-server-protocol.h>
#include <tbm_surface.h>
#include <tbm_surface_internal.h>
#include <wayland-tbm-server.h>
E_API int E_EVENT_REMOTE_SURFACE_PROVIDER_VISIBILITY_CHANGE = -1;
-#ifdef HAVE_REMOTE_SURFACE
typedef struct _E_Comp_Wl_Remote_Manager E_Comp_Wl_Remote_Manager;
typedef struct _E_Comp_Wl_Remote_Common E_Comp_Wl_Remote_Common;
typedef struct _E_Comp_Wl_Remote_Provider E_Comp_Wl_Remote_Provider;
ec->saved_img = EINA_TRUE;
}
-#endif /* HAVE_REMOTE_SURFACE */
E_API E_Client*
e_comp_wl_remote_surface_bound_provider_ec_get(E_Client *ec)
{
-#ifdef HAVE_REMOTE_SURFACE
E_Comp_Wl_Remote_Surface *remote_surface;
EINA_SAFETY_ON_NULL_RETURN_VAL(ec, NULL);
if (!remote_surface || !remote_surface->provider) return NULL;
return remote_surface->provider->common.ec;
-#endif /* HAVE_REMOTE_SURFACE */
}
EINTERN Eina_Bool
e_comp_wl_remote_surface_commit(E_Client *ec)
{
-#ifdef HAVE_REMOTE_SURFACE
E_Comp_Wl_Remote_Provider *provider;
E_Comp_Wl_Remote_Source *source = NULL;
E_Comp_Wl_Subsurf_Data *sdata, *ssdata;
_e_comp_wl_remote_surface_state_commit(ec, &ec->comp_data->pending);
return EINA_TRUE;
-#else
- return EINA_FALSE;
-#endif /* HAVE_REMOTE_SURFACE */
}
E_API void
e_comp_wl_remote_surface_image_save(E_Client *ec)
{
-#ifdef HAVE_REMOTE_SURFACE
E_Comp_Wl_Remote_Source *src;
Eina_Stringshare *dir, *name;
eina_stringshare_del(dir);
eina_stringshare_del(name);
-#endif /* HAVE_REMOTE_SURFACE */
}
E_API void
EINTERN void
e_comp_wl_remote_surface_debug_info_get(Eldbus_Message_Iter *iter)
{
-#ifdef HAVE_REMOTE_SURFACE
Eldbus_Message_Iter *line_array;
Eina_Iterator *hash_iter;
E_Comp_Wl_Remote_Provider *provider;
eina_iterator_free(hash_iter);
eldbus_message_iter_container_close(iter, line_array);
-#else
- Eldbus_Message_Iter *line_array;
-
- eldbus_message_iter_arguments_append(iter, "as", &line_array);
- eldbus_message_iter_basic_append(line_array,
- 's',
- "Enlightenment doesn't support remote surface");
- eldbus_message_iter_container_close(iter, line_array);
-#endif
}
/**
EINTERN void
e_comp_wl_remote_surface_init(void)
{
-#ifdef HAVE_REMOTE_SURFACE
E_Comp_Wl_Remote_Manager *rs_manager = NULL;
EINA_SAFETY_ON_NULL_RETURN(e_comp_wl);
_rsm = rs_manager;
E_EVENT_REMOTE_SURFACE_PROVIDER_VISIBILITY_CHANGE = ecore_event_type_new();
-#endif /* HAVE_REMOTE_SURFACE */
}
EINTERN void
e_comp_wl_remote_surface_shutdown(void)
{
-#ifdef HAVE_REMOTE_SURFACE
E_Comp_Wl_Remote_Manager *rsm;
E_Comp_Wl_Remote_Provider *provider;
E_Comp_Wl_Remote_Source *source;
E_FREE_LIST(rsm->event_hdlrs, ecore_event_handler_del);
wl_global_destroy(rsm->global);
E_FREE(rsm);
-#endif /* HAVE_REMOTE_SURFACE */
}