-I/usr/include/eina-1/eina \
-I/usr/include/efl-1 \
-I/usr/include/json-c \
- -I/usr/include/eo-1 \
- -I/usr/include/callmgr_client
+ -I/usr/include/eo-1
+# CALL_MNGR
+ifeq ($(CALL_MNGR),y)
+INCLUDE += -I/usr/include/callmgr_client
+endif # CALL_MNGR
FLAGS := \
$(COMM_FLAGS) \
$(INCLUDE) \
$(DEBUG_FLAGS)
+# CALL_MNGR
+ifeq ($(CALL_MNGR),y)
+FLAGS += -DCALL_MNGR
+endif # CALL_MNGR
+
ifeq (arm, $(findstring arm, $(shell uname -sm)))
FLAGS += -DDEVICE_ONLY
endif
-lecore \
-lcapi-system-info \
-lwebsockets \
- -ljson-c \
- -lcallmgr_client
+ -ljson-c
+
+# CALL_MNGR
+ifeq ($(CALL_MNGR),y)
+LDFLAGS += -lcallmgr_client
+endif # CALL_MNGR
SRC_C := \
buffer.c \
#include <vconf.h>
+#ifdef CALL_MNGR
#include <call-manager.h>
+#endif
#include "swap_debug.h"
#include "device_vconf.h"
int get_call_status(void)
{
+#ifdef CALL_MNGR
cm_client_h cm_handle = NULL;
cm_call_status_e call_status = CM_CALL_STATUS_MAX;
int res = 0;
}
return call_status;
+#else
+ return 0;
+#endif
}
int get_dnet_status(void)
BuildRequires: libwebsockets-devel
BuildRequires: pkgconfig(json-c)
BuildRequires: pkgconfig(ecore)
+%if "%{?tizen_profile_name}" == "mobile"
BuildRequires: pkgconfig(callmgr_client)
+%endif
BuildRequires: swap-probe-devel
%if "%{?tizen_profile_name}" == "tv"
BuildRequires: webkit2-efl-tv
popd
cd daemon
-%if "%{?tizen_profile_name}" == "tv"
- make
-%else
- WSP_SUPPORT=y make
+SWAP_BUILD_CONF=""
+%if "%{?tizen_profile_name}" == "mobile"
+SWAP_BUILD_CONF=$SWAP_BUILD_CONF CALL_MNGR=y
%endif
+%if "%{?tizen_profile_name}" != "tv"
+SWAP_BUILD_CONF=$SWAP_BUILD_CONF WSP_SUPPORT=y
+%endif
+
+$SWAP_BUILD_CONF make
+
%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p %{buildroot}/usr/share/license