To compile clxx project go to the top-level source directory and type:
scons
The above command creates all libraries, executables and external language
bindings under build/
directory. Note, that it does not create the API
documentation.
You may set several command-line variables to change compiler, compilation flags and other options. For example, you may change flags for C and C++ compiler:
scons CCFLAGS='-g -O2' CXXFLAGS='-std=c++11' CFLAGS=''
You may use clang compiler instead of the default one (gcc):
scons CC=clang CXX=clang++
To clean-out source tree go to the top-level source directory and type:
scons -c
You may also wish to delete build/
directory and scons cache files:
rm -r build/
To compile API documentation, go to the top level source directory and type:
scons api-doc
This creates HTML docs in several places, for example under
build/doc/clxx/
.
To clean API documentation files created with scons api-doc
, go to the top
level source directory and type:
scons -c api-doc