Initial commit of "Plugin Interface" & supporting directory structure.
[iotivity.git] / plugins / SConscript
1 ##
2 # Plugin Interface build script
3 ##
4
5 Import('env')
6
7 target_os = env.get('TARGET_OS')
8 transport = env.get('TARGET_TRANSPORT')
9 build_sample = env.get('BUILD_SAMPLE')
10
11 env.SConscript('./src/SConscript')
12
13 env.SConscript('./unittests/SConscript')
14
15 if build_sample == 'ON':
16         if target_os in ['linux', 'darwin']:
17                 target_path = target_os
18                 if target_os == 'darwin':
19                         target_path = 'linux'
20                 env.SConscript('./samples/' + target_path + '/SConscript')
21