Merge "Merge branch 'notification-service' to master branch."
[contrib/iotivity.git] / service / notification / SConscript
index 3001444..9287117 100755 (executable)
@@ -86,6 +86,20 @@ if env.get('WITH_CLOUD') == True:
 
 if env.get('SECURED') == '1':
        notification_env.AppendUnique(CPPDEFINES = ['SECURED'])
+       
+with_mq = env.get('WITH_MQ')
+if 'SUB' in with_mq:
+    notification_env.AppendUnique(CPPDEFINES = ['MQ_SUBSCRIBER', 'WITH_MQ'])
+    print "MQ SUB support"
+
+if 'PUB' in with_mq:
+    notification_env.AppendUnique(CPPDEFINES = ['MQ_PUBLISHER', 'WITH_MQ'])
+    print "MQ PUB support"
+
+if 'BROKER' in with_mq:
+    notification_env.AppendUnique(CPPDEFINES = ['MQ_BROKER', 'WITH_MQ'])
+    print "MQ Broker support"
+
 
 ######################################################################
 # Source files and Targets