# ResourceBroker Unit Test build script
##
# SConscript file for Local PKI google tests
-
from tools.scons.RunTest import run_test
gtest_env = SConscript('#extlibs/gtest/SConscript')
if lib_env.get('RELEASE'):
lib_env.AppendUnique(CCFLAGS=['-Os'])
- lib_env.AppendUnique(CPPDEFINES=['NDEBUG'])
else:
lib_env.AppendUnique(CCFLAGS=['-g'])
-if lib_env.get('LOGGING'):
- lib_env.AppendUnique(CPPDEFINES=['TB_LOG'])
-
SConscript('#service/third_party_libs.scons', 'lib_env')
######################################################################
'../../common/expiryTimer/include',
'../../common/expiryTimer/src',
'../../common/utils/include',
+ '#/resource/c_common',
+ '#/resource/c_common/oic_malloc/include',
+ '#/resource/c_common/oic_string/include',
'#/resource/csdk/include',
'#/resource/csdk/stack/include',
'#/resource/include',
])
broker_test_env.PrependUnique(CPPPATH=['#/extlibs/hippomocks/hippomocks'])
-broker_test_env.AppendUnique(LIBPATH=[broker_test_env.get('BUILD_DIR')])
broker_test_env.PrependUnique(LIBS=['coap'])
broker_test_env.AppendUnique(LIBS=[
# ResourceCache Unit Test build script
##
# SConscript file for Local PKI google tests
-
from tools.scons.RunTest import run_test
gtest_env = SConscript('#extlibs/gtest/SConscript')
if lib_env.get('RELEASE'):
lib_env.AppendUnique(CCFLAGS=['-Os'])
- lib_env.AppendUnique(CPPDEFINES=['NDEBUG'])
else:
lib_env.AppendUnique(CCFLAGS=['-g'])
-if lib_env.get('LOGGING'):
- lib_env.AppendUnique(CPPDEFINES=['TB_LOG'])
-
SConscript('#service/third_party_libs.scons', 'lib_env')
######################################################################
'../../common/expiryTimer/include',
'../../common/expiryTimer/src',
'../../common/utils/include',
+ '#/resource/c_common',
+ '#/resource/c_common/oic_malloc/include',
+ '#/resource/c_common/oic_string/include',
'#/resource/csdk/include',
'#/resource/csdk/stack/include',
'#/resource/include',
'#/resource/oc_logger/include'
])
cache_test_env.PrependUnique(CPPPATH=['#/extlibs/hippomocks/hippomocks'])
-cache_test_env.AppendUnique(LIBPATH=[cache_test_env.get('BUILD_DIR')])
cache_test_env.PrependUnique(LIBS=[
'rcs_client',
'rcs_common',
gtest_env = SConscript('#extlibs/gtest/SConscript')
lib_env = gtest_env.Clone()
+
target_os = lib_env.get('TARGET_OS')
if lib_env.get('RELEASE'):
lib_env.AppendUnique(CCFLAGS=['-Os'])
- lib_env.AppendUnique(CPPDEFINES=['NDEBUG'])
else:
lib_env.AppendUnique(CCFLAGS=['-g'])
-if lib_env.get('LOGGING'):
- lib_env.AppendUnique(CPPDEFINES=['TB_LOG'])
-
# Add third party libraries
SConscript('#service/third_party_libs.scons', 'lib_env')
'#/extlibs/hippomocks/hippomocks',
'../include',
'../src/common/utils/include',
+ '#/resource/c_common',
+ '#/resource/c_common/oic_malloc/include',
+ '#/resource/c_common/oic_string/include',
'#/resource/csdk/include',
'#/resource/csdk/stack/include',
'#/resource/include',