I just added the following guidance to the Platform Support project coding 
guidelines (https://wiki.iotivity.org/platform_support):
Use of target_os in SConscript files
Often there are things that do not apply to all target OS's and so an 
SConscript file needs to put some functionality under an 'if' test against 
target_os. The following applies when deciding when to use an inclusion test 
(i.e., "==" or "in") vs an exclusion list (i.e., "!=" or "not in"):
1.      Use exclusion when the functionality ought to apply but doesn't yet 
because some porting work has not yet been done.
2.      Use inclusion when the functionality is inherently specific to one or 
more specific OS's
If there are comments, please discuss here.  Otherwise, please follow the above 
in all new changes to SConscript files.
I believe this same principle is what is already followed in other OSS projects 
including libcoap which we consume.

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170502/bee76cff/attachment.html>

Reply via email to