Fix build error with scons-4.4.0 version which is based on python3
[platform/upstream/iotivity.git] / resource / csdk / connectivity / src / tcp_adapter / arduino / SConscript
1 #######################################################
2 #       Build TCP adapter for Ardunino
3 #######################################################
4
5 Import('env', 'src_dir')
6 import os.path
7
8 env.AppendUnique(CPPPATH = [ os.path.join(src_dir, 'arduino') ])
9
10 if env.get('SHIELD') == 'ETH':
11     src_files = [ 'catcpserver_eth.cpp' ,
12                   'catcpadapterutils_eth.cpp']
13 else:
14     print("\nError: TCP is not supported for WIFI shield")
15     Exit(1)
16
17 Return('src_files')