Merge "Modify C Sample Applications & solve memory leaks."
[platform/upstream/iotivity.git] / Readme.scons.txt
1 1) Build with default option
2   To build with default option:
3   # scons
4
5   To see help information with default option(the output may be different with different options):
6   # scons -Q -h
7
8   To clean the project:
9   # scons -c
10
11 2) Build with options
12   To build with options:
13   # scons OPTION1=xxx OPTION2=xxx OPTION3=....
14
15   To see help information:
16   # scons OPTION1=xxx OPTION2=xxx OPTION3=.... -Q -h
17
18   To clean the project:
19   # scons OPTION1=xxx OPTION2=xxx OPTION3=.... -c
20
21 3) Examples
22   To build default
23   # scons
24   To see default help
25   # scons -Q -h
26   To clean
27   # scons -c
28
29   To build android armeabi-v7a
30   # scon BUILD_TARGET=Android CPU_ARCH=armeabi-v7a
31   To see help
32   # scon BUILD_TARGET=Android CPU_ARCH=armeabi-v7a -Q -h
33   To clean
34   # scon BUILD_TARGET=Android CPU_ARCH=armeabi-v7a -c
35
36 Note:
37   1. To build android binary, android NDK should be newer than r8e(recommend r10).
38   2. You may be asked to set some options. Besides set it in command line, you
39 can also set it by create a environment variable. Command line has higher priority.
40 If both are set, the command line value will be used.