Fix build error with scons-4.4.0 version which is based on python3
[platform/upstream/iotivity.git] / plugins / zigbee_wrapper / telegesis_wrapper / src / SConscript
index 14c6ea8..1fd85d2 100644 (file)
@@ -33,7 +33,7 @@ tw_path = os.path.join(src_dir, 'plugins')
 # Source files and Target(s)
 ######################################################################
 
-print"Reading Telegesis Wrapper (TW) script"
+print("Reading Telegesis Wrapper (TW) script")
 
 env.AppendUnique(CPPPATH = [ os.path.join(tw_path, 'include'),
                              os.path.join(tw_path, 'include', 'internal'),
@@ -44,7 +44,7 @@ env.AppendUnique(CPPPATH = [ os.path.join(tw_path, 'include'),
                              os.path.join(tw_path, 'zigbee_wrapper', 'telegesis_wrapper', 'include')
                              ])
 
-if target_os not in ['arduino', 'windows', 'winrt']:
+if target_os not in ['arduino', 'windows']:
        env.AppendUnique(CPPDEFINES = ['WITH_POSIX'])
 
 if target_os in ['darwin','ios']:
@@ -53,7 +53,9 @@ if target_os in ['darwin','ios']:
 tw_src = [
          os.path.join(src_dir, 'resource', 'c_common', 'oic_string', 'src', 'oic_string.c'),
          os.path.join(src_dir, 'resource', 'csdk', 'logger', 'src', 'logger.c'),
-        'telegesis_wrapper.c',
+         'twsocketlist.c',
+         'telegesis_socket.c',
+         'telegesis_wrapper.c'
          ]
 
 env.AppendUnique(TW_SRC = tw_src)