Examples ======== This chapter presents examples. The examples are available on BitBucket site in examples folder: https://bitbucket.org/godfryd/barabash/src. Simple examples --------------- This set of examples present various use cases of Barabash. .. literalinclude:: ../examples/ex1/bb-example.py Compiling nested source code ---------------------------- Barabash operations library provides convenient set of operations. There can be found a few operations for compiling and linking C programs and libraries (both static and shared). This top level Barabash build script shows compiling and linking whole program. Here nested C libraries are included: one static and one shared. They are referenced in building program operation. .. literalinclude:: ../examples/ex2/prog/bb-prog.py This is nested Barabash module the defines a shared C library. .. literalinclude:: ../examples/ex2/prog/libb/bb-libb.py This is another nested Barabash module the defines a static C library. .. literalinclude:: ../examples/ex2/prog/liba/bb-liba.py