3 The build steps used in continuous integration can be found
4 in auto_build.sh which is also in the the repository root directory.
6 Go to the top directory of 'iotivity' project(Note: should always run 'scons'
7 command in this directory)
9 //-------------------------------------------------
11 //-------------------------------------------------
12 To build release binaries:
13 $ scons resource/csdk/stack
16 $ scons resource/csdk/stack RELEASE=false
18 To enable logging, ensure that
20 is set in the compiler flags
22 //-------------------------------------------------
24 //-------------------------------------------------
25 To enable logging for Android, TB_LOG should be defined in the ./jni/Android.mk file as
27 LOCAL_CFLAGS := -DTB_LOG
29 //-------------------------------------------------
31 //-------------------------------------------------
32 To enable the logger for Arduino, TB_LOG should be defined in
33 Properties|C/C++ Build|Settings|Tool Settings|AVR Compiler|Symbols
35 Properties|C/C++ Build|Settings|Tool Settings|AVR C++ Compiler|Symbols
37 Note: when building for Arduino, force the compiler to use avr-g++ to build logger.c. Or rename logger.c to logger.cpp.
39 Note: when building for Arduino, several warnings are generated when trying to place strings in
41 "warning: only initialized variables can be placed into program memory area"
42 This appears to be a known gcc bug - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34734