ITK/Release 4/Wrapping/BuildProcess

From KitwarePublic
< ITK‎ | Release 4‎ | Wrapping
Revision as of 19:44, 12 April 2011 by Glehmann (talk | contribs) (Created page with "Wrapping build is done in several steps. =Configuration= This is done with CMake. During this step, the template instantiations are generated by parsing the files in Wrapping/W...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Wrapping build is done in several steps.

Configuration

This is done with CMake. During this step, the template instantiations are generated by parsing the files in Wrapping/WrapITK/Libraries. For each macro call of the template instantiation process, some callback macros specific of each language generator are called to generate the files and the commands needed to build the wrappers.

Template instantiation

Everything is done in the 'Libraries' directory. The instantiations are separated in two levels:

  • the libraries, which are grouping several modules. Generally, one binary for a target language contains all the instantiations from one library;
  • the modules, inside those libraries. Each module groups several template instantiations. The swig interface generator generates one '.i' file per module.

Several macros are available to simplify the template instantiations.

Macros

Code generator

Everything is done in the 'Languages' directory.

Code generation

Build

Generation XML descriptions of instantiations

Generation of XML documentation

Generation of swig interfaces

Generation of Language specific C++ code

Compilation of C++ code

Linking of libraries

Compilation of tests