Merge branch 'master' into notification-service 69/14669/1
authorcc <ch79.cho@samsung.com>
Wed, 23 Nov 2016 11:12:42 +0000 (20:12 +0900)
committercc <ch79.cho@samsung.com>
Wed, 23 Nov 2016 11:14:01 +0000 (20:14 +0900)
Conflict resolved:
service/notification/examples/linux/SConscript

Change-Id: I4481a4fa8b9162a76183faafaac7b6df1aca9e9f
Signed-off-by: cc <ch79.cho@samsung.com>
1  2 
service/notification/SConscript
service/notification/android/notification-service/src/main/jni/consumer/JniNotificationConsumer.cpp
service/notification/android/notification-service/src/main/jni/provider/JniNotificationProvider.cpp
service/notification/cpp-wrapper/consumer/src/NSConsumerService.cpp
service/notification/cpp-wrapper/examples/linux/SConscript
service/notification/cpp-wrapper/provider/SConscript
service/notification/cpp-wrapper/provider/src/NSProviderService.cpp
service/notification/examples/linux/SConscript
service/notification/src/common/NSConstants.h

Simple merge
@@@ -65,19 -66,9 +66,22 @@@ if env.get('WITH_TCP') == True
        if env.get('SECURED') == '1':
                notification_sample_env.AppendUnique(LIBS = ['mbedtls', 'mbedx509', 'mbedcrypto'])
  
 -      notification_sample_env.AppendUnique(LIBS = ['resource_directory'])
 +with_mq = env.get('WITH_MQ')
 +if 'SUB' in with_mq:
 +    notification_sample_env.AppendUnique(CPPDEFINES = ['MQ_SUBSCRIBER', 'WITH_MQ'])
 +    print "MQ SUB support"
 +
 +if 'PUB' in with_mq:
 +    notification_sample_env.AppendUnique(CPPDEFINES = ['MQ_PUBLISHER', 'WITH_MQ'])
 +    print "MQ PUB support"
 +
 +if 'BROKER' in with_mq:
 +    notification_sample_env.AppendUnique(CPPDEFINES = ['MQ_BROKER', 'WITH_MQ'])
 +    print "MQ Broker support"
 +
+ if 'CLIENT' in rd_mode or 'SERVER' in rd_mode:
++    notification_sample_env.AppendUnique(LIBS = ['resource_directory'])
  ####################################################################
  # Source files and Targets
  ######################################################################
  #ifndef _NS_CONSTANTS_H_
  #define _NS_CONSTANTS_H_
  
 -#define __PRINTLOG 0
 +#define __PRINTLOG 1
  #define __NS_FILE__ ( strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__ )
  
- #ifdef TB_LOG
  #include "logger.h"
+ #ifdef TB_LOG
+ #ifdef __TIZEN__
+ #include <dlog.h>
+ #ifdef LOG_TAG
+ #undef LOG_TAG
+ #endif // LOG_TAG
+ #define LOG_TAG "NotificationService"
+ #define NS_CONVERT_LEVEL(level) ( \
+         ((level) == 0) ? DLOG_DEBUG : \
+         ((level) == 1) ? DLOG_INFO : \
+         ((level) == 2) ? DLOG_WARN : \
+     ((level) == 3) ? DLOG_ERROR : DLOG_ERROR)
+ #define NS_LOG_V(level, format, ...) (dlog_print(NS_CONVERT_LEVEL(level), LOG_TAG, (format), __VA_ARGS__))
+ #define NS_LOG(level, msg) (dlog_print(NS_CONVERT_LEVEL(level), LOG_TAG, (msg)))
+ #else // __TIZEN__
  #define NS_LOG_V(level, format, ...) (OIC_LOG_V((level), __NS_FILE__, (format), __VA_ARGS__))
  #define NS_LOG(level, msg) (OIC_LOG((level), __NS_FILE__, (msg)))
- #else
+ #endif // __TIZEN__
+ #else // TB_LOG
  #if (__PRINTLOG == 1)
- #include "logger.h"
  #define NS_CONVERT_LEVEL(level) ( \
          ((level) == 0) ? "DEBUG" : \
          ((level) == 1) ? "INFO" : \