######################################################################
# Build flags
######################################################################
-# For bring up purposes only, the forked version will live here.
-cc_sample_app_env.AppendUnique(CPPPATH = ['#/resource/csdk/connectivity/lib/libcoap-4.1.1/include',
- '#/extlibs/mbedtls/mbedtls/include'])
-
+with_upstream_libcoap = cc_sample_app_env.get('WITH_UPSTREAM_LIBCOAP')
+if with_upstream_libcoap == '1':
+ cc_sample_app_env.AppendUnique(CPPPATH = ['#extlibs/libcoap/libcoap/include'])
+else:
+ cc_sample_app_env.AppendUnique(CPPPATH = [
+ '#resource/csdk/connectivity/lib/libcoap-4.1.1/include'
+ ])
cc_sample_app_env.AppendUnique(CPPPATH = [
'#/resource/include/',
'#/resource/csdk/connectivity/common/inc',
'#/resource/csdk/security/include',
'#/resource/csdk/security/provisioning/include',
- '#/resource/csdk/security/provisioning/include/internal'
+ '#/resource/csdk/security/provisioning/include/internal',
+ '#/extlibs/mbedtls/mbedtls/include'
])
cc_sample_app_env.AppendUnique(CXXFLAGS = ['-O2', '-g', '-Wall', '-Wextra', '-std=c++0x', '-pthread'])
######################################################################
# Build flags
######################################################################
+with_upstream_libcoap = jni_env.get('WITH_UPSTREAM_LIBCOAP')
+if with_upstream_libcoap == '1':
+ jni_env.AppendUnique(CPPPATH = ['#extlibs/libcoap/libcoap/include'])
+else:
+ jni_env.AppendUnique(CPPPATH = [
+ env.get('SRC_DIR') + '/resource/csdk/connectivity/lib/libcoap-4.1.1/include'
+ ])
+
jni_env.AppendUnique(CPPPATH = [
env.get('SRC_DIR') + '/resource/csdk/connectivity/api',
env.get('SRC_DIR') + '/resource/include',
env.get('SRC_DIR') + '/resource/csdk/security/provisioning/include/cloud/',
env.get('SRC_DIR') + '/resource/csdk/security/provisioning/include/oxm',
env.get('SRC_DIR') + '/resource/csdk/security/provisioning/include/internal',
- env.get('SRC_DIR') + '/resource/csdk/security/include',
- env.get('SRC_DIR') + '/resource/csdk/connectivity/lib/libcoap-4.1.1/include'
+ env.get('SRC_DIR') + '/resource/csdk/security/include'
])
target_os = env.get('TARGET_OS')
######################################################################
with_unforked_libcoap = env.get('WITH_UNFORKED_LIBCOAP')
if with_unforked_libcoap == '1':
- # For bring up purposes only, we manually copy the forked version to where the unforked version is downloaded.
env.PrependUnique(CPPPATH = ['#extlibs/libcoap/libcoap/include'])
else:
- # For bring up purposes only, the forked version will live here.
env.PrependUnique(CPPPATH = [os.path.join(src_dir, 'resource', 'csdk', 'connectivity', 'lib', 'libcoap-4.1.1', 'include')])
env.PrependUnique(CPPPATH = [ os.path.join(src_dir, 'resource', 'c_common', 'oic_malloc', 'include'),
######################################################################
# Build flags
######################################################################
+with_upstream_libcoap = ipca_lib_env.get('WITH_UPSTREAM_LIBCOAP')
+if with_upstream_libcoap == '1':
+ ipca_lib_env.PrependUnique(CPPPATH = ['#extlibs/libcoap/libcoap/include'])
+else:
+ ipca_lib_env.PrependUnique(CPPPATH = ['#resource/csdk/connectivity/lib/libcoap-4.1.1/include'])
+
ipca_lib_env.PrependUnique(CPPPATH = [
'../inc',
'inc',
'#/resource/csdk/security/provisioning/include/internal',
'#/resource/csdk/connectivity/api',
'#/resource/csdk/connectivity/external/inc',
- '#/resource/csdk/connectivity/lib/libcoap-4.1.1/include',
'#/resource/csdk/ocsocket/include',
'#/resource/csdk/logger/include',
'#/resource/c_common/ocrandom/include',
with_upstream_libcoap = connectivity_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.
connectivity_env.AppendUnique(CPPPATH = [os.path.join('#extlibs', 'libcoap', 'libcoap', 'include')])
else:
- # For bring up purposes only, the forked version will live here.
connectivity_env.AppendUnique(CPPPATH = [ os.path.join('#resource', 'csdk', 'connectivity', 'lib', 'libcoap-4.1.1', 'include')])
connectivity_env.AppendUnique(CPPPATH = [ os.path.join(root_dir, 'inc'),
# Build flags
######################################################################
if catest_env.get('WITH_UPSTREAM_LIBCOAP') == '1':
- # For bring up purposes only, we manually copy the forked version to where the unforked version is downloaded.
catest_env.AppendUnique(CPPPATH = [os.path.join('#', 'extlibs', 'libcoap', 'libcoap', 'include')])
else:
- # For bring up purposes only, the forked version will live here.
catest_env.AppendUnique(CPPPATH = [ os.path.join('#', 'resource', 'csdk', 'connectivity', 'lib', 'libcoap-4.1.1', 'include')])
catest_env.PrependUnique(CPPPATH = [
######################################################################
# Build flags
######################################################################
+with_upstream_libcoap = rd_test_env.get('WITH_UPSTREAM_LIBCOAP')
+if with_upstream_libcoap == '1':
+ rd_test_env.AppendUnique(CPPPATH = ['#extlibs/libcoap/libcoap/include'])
+else:
+ rd_test_env.AppendUnique(CPPPATH = [
+ src_dir + '/resource/csdk/connectivity/lib/libcoap-4.1.1/include'
+ ])
+
rd_test_env.AppendUnique(
CPPPATH = [
src_dir + '/extlibs/hippomocks/hippomocks',
'../include',
src_dir + '/resource/include',
src_dir + '/resource/csdk/connectivity/api',
- src_dir + '/resource/csdk/connectivity/lib/libcoap-4.1.1/include',
src_dir + '/resource/csdk/include',
src_dir + '/resource/csdk/stack/include',
src_dir + '/resource/csdk/security/include',
######################################################################
with_upstream_libcoap = libocsrm_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.
libocsrm_env.AppendUnique(CPPPATH = ['#extlibs/libcoap/libcoap/include'])
else:
- # For bring up purposes only, the forked version will live here.
libocsrm_env.AppendUnique(CPPPATH = ['#/resource/csdk/connectivity/lib/libcoap-4.1.1/include'])
libocsrm_env.PrependUnique(CPPPATH = [
######################################################################
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 = [
######################################################################
with_upstream_libcoap = tools_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.
tools_env.AppendUnique(CPPPATH = ['#extlibs/libcoap/libcoap/include'])
else:
- # For bring up purposes only, the forked version will live here.
tools_env.AppendUnique(CPPPATH = ['../../connectivity/lib/libcoap-4.1.1/include'])
tools_env.PrependUnique(CPPPATH = ['#/extlibs/cjson',
######################################################################
with_upstream_libcoap = srmtest_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.
srmtest_env.AppendUnique(CPPPATH = ['#extlibs/libcoap/libcoap/include'])
else:
- # For bring up purposes only, the forked version will live here.
srmtest_env.AppendUnique(CPPPATH = ['../../connectivity/lib/libcoap-4.1.1/include'])
srmtest_env.PrependUnique(CPPPATH = [
######################################################################
with_upstream_libcoap = liboctbstack_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.
liboctbstack_env.PrependUnique(CPPPATH = ['#extlibs/libcoap/libcoap/include'])
else:
- # For bring up purposes only, the forked version will live here.
liboctbstack_env.PrependUnique(CPPPATH = ['#resource/csdk/connectivity/lib/libcoap-4.1.1/include'])
liboctbstack_env.PrependUnique(CPPPATH = [
with_upstream_libcoap = 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.
env.AppendUnique(CPPPATH = ['#extlibs/libcoap/libcoap/include'])
else:
- # For bring up purposes only, the forked version will live here.
env.AppendUnique(CPPPATH = ['../../../../connectivity/lib/libcoap-4.1.1'])
env.PrependUnique(CPPPATH = [
######################################################################
with_upstream_libcoap = ocprovision_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.
ocprovision_env.AppendUnique(CPPPATH = ['#extlibs/libcoap/libcoap/include'])
else:
- # For bring up purposes only, the forked version will live here.
ocprovision_env.AppendUnique(CPPPATH = ['../csdk/connectivity/lib/libcoap-4.1.1/include'])
ocprovision_env.AppendUnique(CPPPATH = [
######################################################################
with_upstream_libcoap = oclib_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.
oclib_env.AppendUnique(CPPPATH = ['#extlibs/libcoap/libcoap/include'])
else:
- # For bring up purposes only, the forked version will live here.
oclib_env.AppendUnique(CPPPATH = ['../csdk/connectivity/lib/libcoap-4.1.1/include'])
oclib_env.AppendUnique(CPPPATH = [
with_upstream_libcoap = local_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.
local_env.AppendUnique(CPPPATH = ['#extlibs/libcoap/libcoap/include'])
else:
local_env.AppendUnique(CPPPATH = ['#resource/csdk/connectivity/lib/libcoap-4.1.1/include'])
if env.get('SECURED') == '1':
with_upstream_libcoap = easy_setup_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.
easy_setup_env.AppendUnique(CPPPATH = ['#extlibs/libcoap/libcoap/include'])
else:
- # For bring up purposes only, the forked version will live here.
easy_setup_env.AppendUnique(CPPPATH = [env.get('SRC_DIR') + '/resource/csdk/connectivity/lib/libcoap-4.1.1/include'])
easy_setup_env.AppendUnique(CPPPATH = [
env.get('SRC_DIR') + '/resource/csdk/security/provisioning/include',