Do not build the Plugin Interface for unsupported platforms (ie. !linux).
[platform/upstream/iotivity.git] / plugins / SConscript
1 ##
2 # Plugin Interface build script
3 ##
4
5 Import('env')
6
7 target_os = env.get('TARGET_OS')
8
9 if target_os not in ['android', 'arduino', 'darwin', 'ios']:
10     transport = env.get('TARGET_TRANSPORT')
11     build_sample = env.get('BUILD_SAMPLE')
12
13     env.SConscript('./src/SConscript')
14
15     env.SConscript('./unittests/SConscript')
16
17     if build_sample == 'ON':
18             if target_os in ['linux']:
19                     target_path = target_os
20                     env.SConscript('./samples/' + target_path + '/SConscript')
21