Import('env')
lib_env = env.Clone()
-SConscript('#service/third_party_libs.scons', 'lib_env')
+SConscript('#resource/third_party_libs.scons', 'lib_env')
rd_sample_app_env = lib_env.Clone()
target_os = env.get('TARGET_OS')
+src_dir = env.get('SRC_DIR')
######################################################################
# Build flags
######################################################################
-rd_sample_app_env.AppendUnique(CPPPATH = ['../include'])
+rd_sample_app_env.AppendUnique(CPPPATH = ['../include',
+ '../src/internal',
+ src_dir + '/resource/csdk/stack/include',
+ src_dir + '/resource/include',
+ src_dir + '/resource/oc_logger/include',])
if target_os not in ['windows']:
rd_sample_app_env.AppendUnique(CXXFLAGS = ['-O2', '-g', '-Wall', '-Wextra', '-std=c++0x'])
lib_env.AppendUnique(CPPDEFINES = ['TB_LOG'])
# Add third party libraries
-SConscript('#service/third_party_libs.scons', 'lib_env')
+SConscript('#resource/third_party_libs.scons', 'lib_env')
if target_os in ['linux']:
# Verify that 'hippomocks' mocking code is installed. If not,
CPPPATH = [
src_dir + '/extlibs/hippomocks-master',
'../include',
- '../../stack/test/',
- ])
+ src_dir + '/resource/include',
+ src_dir + '/resource/csdk/stack/include',
+ src_dir + '/resource/csdk/stack/test/',
+ src_dir + '/resource/oc_logger/include',])
-rd_test_env.PrependUnique(LIBS = [
- 'connectivity_abstraction',
- 'oc_logger',
- 'oc_logger_core',
- 'octbstack',
- 'oc',
- 'resource_directory'])
+
+rd_test_env.AppendUnique(LIBPATH = [lib_env.get('BUILD_DIR')])
+rd_test_env.AppendUnique(RPATH = [lib_env.get('BUILD_DIR')])
+rd_test_env.PrependUnique(LIBS = ['resource_directory', 'octbstack' ])
if rd_test_env.get('RD_MODE'):
rd_mode = rd_test_env.get('RD_MODE')