From 26df3cecc4e067d21f54a8a2bcca613c3a677b4c Mon Sep 17 00:00:00 2001 From: Habib Virji Date: Thu, 15 Oct 2015 13:05:52 +0100 Subject: [PATCH] [IOT-803] Fix RD response The RD response was not being generated due to missing changes in SConscript. Setting the flag, leads to compiling of relevant RD code. Change-Id: Ic79f5dd316863a261bf6c2452c7fc14bf317a8e7 Signed-off-by: Habib Virji Reviewed-on: https://gerrit.iotivity.org/gerrit/3897 Tested-by: jenkins-iotivity Reviewed-by: Madan Lanka --- resource/csdk/SConscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resource/csdk/SConscript b/resource/csdk/SConscript index 6b54384..52c075d 100644 --- a/resource/csdk/SConscript +++ b/resource/csdk/SConscript @@ -109,6 +109,11 @@ if env.get('LOGGING'): if env.get('DTLS_WITH_X509') == '1': liboctbstack_env.AppendUnique(CPPDEFINES = ['__WITH_X509__']) +if env.get('WITH_RD') == '1': + liboctbstack_env.PrependUnique(CPPPATH = ['../../service/resource-directory/include']) + liboctbstack_env.AppendUnique(CPPDEFINES = ['-DWITH_RD']) + liboctbstack_env.AppendUnique(LIBS = ['resource_directory']) + liboctbstack_env.Append(LIBS = ['c_common']) if liboctbstack_env.get('ROUTING') in ['GW', 'EP']: @@ -152,4 +157,3 @@ else: liboctbstack_env.UserInstallTargetHeader('stack/include/ocstackconfig.h', 'resource', 'ocstackconfig.h') liboctbstack_env.UserInstallTargetHeader('stack/include/octypes.h', 'resource', 'octypes.h') liboctbstack_env.UserInstallTargetHeader('stack/include/ocstack.h', 'resource', 'ocstack.h') - -- 2.7.4