Fix build error of SimpleClientServer for Wifi
authorSeung-woo Lee <sw0524.lee@samsung.com>
Fri, 13 Feb 2015 03:45:52 +0000 (12:45 +0900)
committerPatrick Lankswert <patrick.lankswert@intel.com>
Tue, 17 Feb 2015 18:26:48 +0000 (18:26 +0000)
Due to absence of "Wifi" macro definition, a build error
appears for arduino with argument of "NET=Wifi"

Change-Id: Ie5acd09b0d54ed8af165f48302fa351182c679e3
Signed-off-by: Seung-woo Lee <sw0524.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/337
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
resource/csdk/stack/samples/arduino/SimpleClientServer/ocserver/SConscript

index 46a859c..398c0ed 100644 (file)
@@ -17,6 +17,9 @@ arduino_simplecs_env.PrependUnique(LIBS = ['octbstack', 'coap'])
 if not env.get('RELEASE'):
        arduino_simplecs_env.AppendUnique(CPPDEFINES = ['TB_LOG'])
 
+if env.get('NET') == 'Wifi':
+       arduino_simplecs_env.AppendUnique(CPPDEFINES = ['ARDUINOWIFI'])
+
 arduino_simplecs = arduino_simplecs_env.Program('SimpleClientServer', 'ocserver.cpp')
 env.CreateBin('SimpleClientServer')