message('================ common options ================')
-conf_data.set('ESPP_SERVICE_VERSION', get_option('version'))
+conf_data.set('ESPP_SERVICE_VERSION', espp_service_version)
conf_data.set('ESPP_SERVICE_SOCK_PATH', get_option('sock-path'))
if get_option('dlog')
-option('version', type: 'string', value: '0.3.2', description: 'ESPP service version')
option('sock-path', type: 'string', value: '/tmp/espp_service.sock', description: 'ESPP service socket path')
option('dlog', type: 'boolean', value: true, description: 'Use dlog')
option('service-app', type: 'boolean', value: false, description: 'Daemon is launched as Tizen service app')
Name: espp-service
Summary: ESPP service package which contains client lib. and daemon binary
-Version: 0.3.2
+Version: 0.3.3
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
--prefix=/usr \
--libdir=%{_lib_dir} \
--datadir=%{_datadir} \
- -Dversion=%{version} \
-Dsock-path=/tmp/espp_service.sock \
%if "%{use_service_app}" == "1"
-Dservice-app=true \
USER_SRCS = ./src/daemon/*.c ./src/common/*.c
# User Defines
-USER_DEFS = USE_DLOG USE_SERVICE_APP ESPP_SERVICE_VERSION="0.3.2" ESPP_SERVICE_SOCK_PATH=/tmp/espp_service.sock
+USER_DEFS = USE_DLOG USE_SERVICE_APP ESPP_SERVICE_VERSION="0.3.3"
# User Includes
USER_INC_DIRS = ./src/daemon ./src/common ./inc ./inc/esplusplayer_capi
#define GET_STRING(x) #x
#define TO_STRING(x) GET_STRING(x)
#ifndef ESPP_SERVICE_VERSION
-#define ESPP_SERVICE_VERSION "unknown"
+#define ESPP_SVC_VERSION "unknown"
+#else
+#define ESPP_SVC_VERSION TO_STRING(ESPP_SERVICE_VERSION)
#endif
#ifndef ESPP_SERVICE_SOCK_PATH
-#define ESPP_SERVICE_SOCK_PATH "/tmp/espp_service.sock"
-#endif
-#define ESPP_SVC_VERSION TO_STRING(ESPP_SERVICE_VERSION)
+#define ESPP_SVC_SOCK_PATH "/tmp/espp_service.sock"
+#else
#define ESPP_SVC_SOCK_PATH TO_STRING(ESPP_SERVICE_SOCK_PATH)
+#endif
#ifdef __cplusplus
extern "C" {