######################################################################
with_upstream_libcoap = sptest_env.get('WITH_UPSTREAM_LIBCOAP')
if with_upstream_libcoap == '1':
- # For bring up purposes only, we manually copy the forked version to where the unforked version is downloaded.
sptest_env.AppendUnique(CPPPATH = ['#extlibs/libcoap/libcoap/include'])
else:
- # For bring up purposes only, the forked version will live here.
sptest_env.AppendUnique(CPPPATH = ['../../../connectivity/lib/libcoap-4.1.1/include'])
sptest_env.PrependUnique(CPPPATH = [
'../../../security/provisioning/include/internal',
'../../../../oc_logger/include',
'../include/oxm',
- '../../../../../extlibs/tinydtls',
'../../../../../extlibs/base64',
'../../../connectivity/inc',
'../../../connectivity/inc/pkix',
'../../../connectivity/common/inc',
- '../../../connectivity/api',
- '../../../../../extlibs/tinydtls'
+ '../../../connectivity/api'
])
-sptest_env.AppendUnique(LIBPATH = [sptest_env.get('BUILD_DIR')])
-sptest_env.PrependUnique(LIBS = [ 'ocpmapi',
+
+sptest_env.PrependUnique(LIBS = [ 'ocpmapi_internal',
'oc',
- 'octbstack_test',
+ 'octbstack_internal',
'ocsrm',
- 'oc_logger',
- 'connectivity_abstraction',
+ 'routingmanager',
+ 'oc_logger_internal',
+ 'connectivity_abstraction_internal',
'coap'])
if sptest_env.get('SECURED') == '1':
sptest_env.AppendUnique(LIBS = ['mbedtls', 'mbedx509','mbedcrypto'])
- sptest_env.AppendUnique(LIBS = ['tinydtls'])
if not sptest_env.get('RELEASE'):
sptest_env.AppendUnique(CPPDEFINES = ['TB_LOG'])
if sptest_env.get('MULTIPLE_OWNER') == '1':
sptest_env.AppendUnique(CPPDEFINES=['MULTIPLE_OWNER'])
+sptest_env.AppendUnique(LIBS = ['octbstack_internal'])
+
if target_os in ['msys_nt', 'windows']:
- sptest_env.AppendUnique(LIBS = ['octbstack_static', 'sqlite3'])
+ sptest_env.AppendUnique(LIBS = ['sqlite3'])
else:
- sptest_env.AppendUnique(LIBS = ['octbstack'])
-
-if 'CLIENT' in rd_mode or 'SERVER' in rd_mode:
- sptest_env.PrependUnique(LIBS = ['resource_directory'])
-
-sptest_env.AppendUnique(LIBS = ['timer'])
+ if target_os in ['linux', 'tizen']:
+ sptest_env.ParseConfig('pkg-config --cflags --libs sqlite3 gobject-2.0 gio-2.0 glib-2.0')
######################################################################
# Source files and Targets