csdk: Link to oc as used
Observed issue is when building with yocto (master):
libresource_directory.so: \
undefined reference to \
`OC::MessageContainer::representations() const
Note, Targets supporting RD are aligned to:
resource/csdk/resource-directory/SConscript
( https://gerrit.iotivity.org/gerrit/14059 )
And it would worth to extent platform support in later patches.
Bug: https://jira.iotivity.org/browse/IOT-1745
Change-Id: I930bc6bcbbf052eddb679ffea9eb822300000001
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17655
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
catest_env.AppendUnique(LIBS = ['mbedtls', 'mbedx509','mbedcrypto'])
if 'CLIENT' in rd_mode or 'SERVER' in rd_mode:
+ if 'CLIENT' in rd_mode and target_os not in ['arduino', 'darwin', 'ios', 'windows', 'winrt']:
+ catest_env.PrependUnique(LIBS = ['oc', 'oc_logger'])
catest_env.PrependUnique(LIBS = ['resource_directory'])
if target_os not in ['msys_nt', 'windows']: