AM_PROG_CC_STDC
AM_PROG_CC_C_O
-## X11
-AC_ARG_WITH([x11],
- AC_HELP_STRING([--with-x11], [use x11]),
- [WITH_X="yes"
- AC_SUBST([WITH_X])], [WITH_X="no"])
-if test "x${WITH_X}" = x"yes"; then
- AC_DEFINE_UNQUOTED([HAVE_X],[1],[define HAVE_X])
-fi
-AM_CONDITIONAL(HAVE_X, [test "${WITH_X}" = x"yes"])
-
-## Wayland
-AC_ARG_WITH([wayland],
- AC_HELP_STRING([--with-wayland], [use wayland]),
- [WITH_WAYLAND="yes"
- AC_SUBST([WIHT_WAYLAND])], [WITH_WAYLAND="no"])
-if test "x${WITH_WAYLAND}" = x"yes"; then
- AC_DEFINE_UNQUOTED([HAVE_WAYLAND],[1],[define HAVE_WAYLAND])
-fi
-AM_CONDITIONAL(HAVE_WAYLAND, [test "${WITH_WAYLAND}" = x"yes"])
-
requirements="\
elementary \
eldbus \
enlightenment \
- capi-ui-efl-util"
-
-if test "x$WITH_WAYLAND" = x"yes"; then
-requirements="$requirements \
- wayland-client \
- ecore-wayland \
- tizen-extension-client"
-fi
+ capi-ui-efl-util \
+ wayland-client \
+ ecore-wayland \
+ tizen-extension-client"
PKG_CHECK_MODULES(E_TEST_RUNNER, [${requirements}])
-%bcond_with wayland
-%bcond_with x
-
Name: e-tizen-testcase
Version: 0.0.7
Release: 1
BuildRequires: pkgconfig(eldbus)
BuildRequires: pkgconfig(capi-ui-efl-util)
BuildRequires: gettext
-%if %{with wayland}
BuildRequires: pkgconfig(tizen-extension-client)
-%endif
%global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
export LDFLAGS+=" -Wl,--hash-style=both -Wl,--as-needed -Wl,--rpath=/usr/lib"
%autogen
-%configure --prefix=/usr \
-%if %{with x}
- --with-x11
-%endif
-%if %{with wayland}
- --with-wayland
-%endif
+%configure --prefix=/usr
make %{?_smp_mflags}
%install
int _log_dom = -1;
-#if HAVE_WAYLAND
struct tizen_policy *tizen_policy = NULL;
struct tizen_surface *tizen_surface = NULL;
{
_e_test_runner_cb_resource_id,
};
-#endif
static Ecore_Window
_e_test_runner_window_id_get(Evas_Object *elm_win)
{
-#if HAVE_WAYLAND
Ecore_Wl_Window *wlwin;
struct wl_surface *surf;
Ecore_Window id = 0;
if (tizen_resource) tizen_resource_destroy(tizen_resource);
return id;
-#else
- return elm_win_window_id_get(elm_win);
-#endif
}
static void
Eina_Bool
e_tc_win_transient_for_set(E_TC_Win *tw_child, E_TC_Win *tw_parent, Eina_Bool set)
{
-#if HAVE_WAYLAND
Eina_Inlist *globals;
Ecore_Wl_Global *global;
struct wl_registry *registry;
else
tizen_policy_unset_transient_for(tizen_policy,
tw_child->native_win);
-#else
- if (set)
- ecore_x_icccm_transient_for_set(tw_child->native_win,
- tw_parent->native_win);
- else
- ecore_x_icccm_transient_for_unset(tw_child->native_win);
-#endif
return EINA_TRUE;
}
E_FREE(tc);
}
-#if HAVE_WAYLAND
if (tizen_surface) tizen_surface_destroy(tizen_surface);
if (tizen_policy) tizen_policy_destroy(tizen_policy);
tizen_surface = NULL;
tizen_policy = NULL;
-#endif
}
static void
#include "config.h"
#include <Eldbus.h>
#include <Elementary.h>
-
-#if HAVE_WAYLAND
- #include <Ecore_Wayland.h>
- #include <wayland-client.h>
- #include <tizen-extension-client-protocol.h>
-#else
- #include <Ecore_X.h>
-#endif
+#include <Ecore_Wayland.h>
+#include <wayland-client.h>
+#include <tizen-extension-client-protocol.h>
extern int _log_dom;