- if target_os in ['linux', 'tizen']:
- env.SConscript('linux/SConscript')
- else:
- env.SConscript(target_os + '/SConscript')
-
-# -------------------------------------------------------------------
-# Configure the build as needed, e.g. detecting and setting
-# appropriate build flags, etc.
-#
-# This is done after the platform-specific configuration is loaded to
-# make sure we give the automated build configuration below an
-# opportunity to detect platform-specific anomalies.
-# -------------------------------------------------------------------
-Import('targets_csdk_only')
-import iotivityconfig
-from iotivityconfig import *
-
-conf = env.Configure(
- custom_tests = {
- 'CheckC99Flags' : iotivityconfig.check_c99_flags,
- 'CheckCXX11Flags' : iotivityconfig.check_cxx11_flags
- } )
-
-# IoTivity requires support for C99 for the C SDK.
-if not conf.CheckC99Flags():
- print('C99 support is required!')
- Exit(1)
-
-# IoTivity requires support for C++11 for the C++ SDK.
-#
-# However, some platforms, such as Arduino, only support the C SDK.
-# Don't bother running the C++11 check in those cases.
-if target_os not in targets_csdk_only and not conf.CheckCXX11Flags():
- print('C++11 support is required!')
- Exit(1)
-
-env = conf.Finish()
-# -------------------------------------------------------------------
-
-env.SConscript('external_libs.scons')