With this patch, capi-ui-efl-util pass build on wayland repo.
Change-Id: Ic83bc72cbb2d24abccd737fe9773409e985ab325
Signed-off-by: Alex Wu <zhiwen.wu@linux.intel.com>
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
+IF (ECORE_X_FOUND)
+ SET(HAVE_X "1")
+ SET(deps "${deps} ecore-x utilX")
+ELSE (ECORE_X_FOUND)
+ SET(HAVE_X "0")
+ENDIF (ECORE_X_FOUND)
+
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
Name: @PC_NAME@
Description: @PACKAGE_DESCRIPTION@
Version: @VERSION@
-Requires: @ECORE_X@ @PC_REQUIRED@
+Requires: @deps@ @PC_REQUIRED@
Libs: -L${libdir} @PC_LDFLAGS@
Cflags: -I${includedir} @PC_CFLAGS@
#ifndef _CONFIG_H_H_
#define _CONFIG_H_H_
-#define ECORE_X_FOUND @ECORE_X_FOUND@
+#define ECORE_X_FOUND @HAVE_X@
// use the cmake @ECORE_WAYLAND_FOUND@ when wayland supported
#define ECORE_WAYLAND_FOUND 0
+%bcond_with x
Name: capi-ui-efl-util
Summary: An EFL utility library in SLP C API
Version: 0.1.0
Source1001: capi-ui-efl-util.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
+%if %{with x}
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(utilX)
+%endif
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(capi-base-common)
int efl_util_get_notification_window_level (Evas_Object* window, efl_util_notification_level_e* level)
{
- Ecore_X_Window_Type window_type;
- Utilx_Notification_Level utilx_level;
EINA_SAFETY_ON_NULL_RETURN_VAL(window,
EFL_UTIL_ERROR_NOT_SUPPORTED_WINDOW_TYPE);
#if ECORE_X_FOUND
+ Ecore_X_Window_Type window_type;
+ Utilx_Notification_Level utilx_level;
Ecore_X_Window xwin = elm_win_xwindow_get(window);
if (xwin)
{