######################################################################
# Build flags
######################################################################
+with_upstream_libcoap = samples_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.
+ samples_env.AppendUnique(CPPPATH = ['#extlibs/libcoap/libcoap/include'])
+else:
+ # For bring up purposes only, the forked version will live here.
+ samples_env.AppendUnique(CPPPATH = ['../../../../../connectivity/lib/libcoap-4.1.1/include'])
+
samples_env.PrependUnique(CPPPATH = [
'../../../../logger/include',
'../../../../stack/include',
+ '../../../../security/include',
'../../../../../../extlibs/cjson',
'../../../../../../extlibs/boost/boost',
'../../../../../oc_logger/include',
- '../../../../../connectivity/lib/libcoap-4.1.1'
])
compiler = samples_env.get('CXX')
if target_os not in ['windows']:
samples_env.PrependUnique(LIBS = ['m'])
-if samples_env.get('SECURED') == '1':
- samples_env.AppendUnique(LIBS = ['tinydtls'])
-
samples_env.AppendUnique(CPPDEFINES = ['TB_LOG'])
######################################################################