projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding changes in octhread related to Process Event
[platform/upstream/iotivity.git]
/
resource
/
SConscript
diff --git
a/resource/SConscript
b/resource/SConscript
index
1bea369
..
80b72ae
100644
(file)
--- a/
resource/SConscript
+++ b/
resource/SConscript
@@
-23,18
+23,23
@@
#
##
#
##
-import os
-
Import('env')
target_os = env.get('TARGET_OS')
src_dir = env.get('SRC_DIR')
Import('env')
target_os = env.get('TARGET_OS')
src_dir = env.get('SRC_DIR')
+rd_mode = env.get('RD_MODE')
+
+if target_os == 'tizenrt' and not env.get('RELEASE'):
+ env.AppendUnique(CCFLAGS = ['-g'])
+
+# Build liblogger
+SConscript('csdk/logger/SConscript')
-if target_os not in ['arduino', 'darwin', 'ios', 'android']:
+if target_os not in ['arduino', 'darwin', 'ios', 'android'
, 'msys_nt', 'windows', 'tizenrt'
]:
env.AppendUnique(LIBS=['rt'])
env.AppendUnique(LIBS=['rt'])
-#
B
uild libcoap
-SConscript('
csdk/connectivity/lib/libcoap-4.1.1
/SConscript')
+#
Download (if not already present) & b
uild libcoap
+SConscript('
#extlibs/libcoap
/SConscript')
# Build C Common dependencies
SConscript('c_common/SConscript')
# Build C Common dependencies
SConscript('c_common/SConscript')
@@
-46,29
+51,34
@@
if env.get('ROUTING') in ['GW', 'EP']:
# Build Routing
SConscript('csdk/routing/SConscript')
# Build Routing
SConscript('csdk/routing/SConscript')
+if 'CLIENT' in rd_mode or 'SERVER' in rd_mode:
+ SConscript('csdk/resource-directory/SConscript')
+
# Build libocsrm
SConscript('csdk/security/SConscript')
# Build liboctbstack
SConscript('csdk/SConscript')
# Build libocsrm
SConscript('csdk/security/SConscript')
# Build liboctbstack
SConscript('csdk/SConscript')
-if target_os not in ['arduino','darwin',
'ios
']:
+if target_os not in ['arduino','darwin',
'tizenrt
']:
# Build liboc_logger
SConscript('oc_logger/SConscript')
# Build liboc
SConscript('src/SConscript')
# Build liboc_logger
SConscript('oc_logger/SConscript')
# Build liboc
SConscript('src/SConscript')
-
if target_os not in ['arduino','darwin','ios','android
']:
+
#if target_os not in ['arduino','darwin','ios','android', 'tizenrt
']:
# Build examples
# Build examples
-
SConscript('examples/SConscript')
+
#
SConscript('examples/SConscript')
-if target_os
== 'linux'
:
+if target_os
in ['linux', 'windows']
:
# Build C Samples
# Build C Samples
+ SConscript('csdk/stack/test/linux/SConscript')
SConscript('csdk/stack/samples/linux/SimpleClientServer/SConscript')
SConscript('csdk/stack/samples/linux/SimpleClientServer/SConscript')
- # Build secure samples
- SConscript('csdk/stack/samples/linux/secure/SConscript')
+ if env.get('SECURED') == '1':
+ # Build secure samples
+ SConscript('csdk/stack/samples/linux/secure/SConscript')
# Build C/C++ unit tests
SConscript('unit_tests.scons')
# Build C/C++ unit tests
SConscript('unit_tests.scons')
@@
-83,3
+93,10
@@
elif target_os == 'darwin':
elif target_os == 'arduino':
SConscript('csdk/stack/samples/arduino/SimpleClientServer/ocserver/SConscript')
elif target_os == 'arduino':
SConscript('csdk/stack/samples/arduino/SimpleClientServer/ocserver/SConscript')
+
+elif target_os == 'msys_nt':
+ # Build secure samples. Using linux samples for now.
+ SConscript('csdk/stack/samples/linux/secure/SConscript')
+
+ # Build C/C++ unit tests
+ SConscript('unit_tests.scons')