Fix default macro values regarding version and socket path
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 24 May 2023 05:28:50 +0000 (14:28 +0900)
committer이상철/Tizen Platform Lab(SR)/삼성전자 <sc11.lee@samsung.com>
Thu, 25 May 2023 02:19:54 +0000 (11:19 +0900)
[Version] 0.3.3

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
meson.build
meson_options.txt
packaging/espp-service.spec
project_def.prop
src/common/espp_service_common.h

index cf2e6b6..31b5f2d 100644 (file)
@@ -24,7 +24,7 @@ message('libdir_path[' + libdir_path + ']')
 
 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')
index dbb53c2..e4d898a 100644 (file)
@@ -1,4 +1,3 @@
-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')
index da712c6..ded8870 100644 (file)
@@ -1,6 +1,6 @@
 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
@@ -50,7 +50,6 @@ meson setup --auto-features=disabled \
   --prefix=/usr \
   --libdir=%{_lib_dir} \
   --datadir=%{_datadir} \
-  -Dversion=%{version} \
   -Dsock-path=/tmp/espp_service.sock \
 %if "%{use_service_app}" == "1"
   -Dservice-app=true \
index 1bcfd66..d8e94f0 100644 (file)
@@ -11,7 +11,7 @@ profile = mobile-7.0
 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
index 1332d97..4ff18e8 100644 (file)
 #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" {