ITK/Release 4/Wrapping/BuildProcess: Difference between revisions
(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...") |
(→Macros) |
||
Line 15: | Line 15: | ||
==Macros== | ==Macros== | ||
The macros are defined in 'TypedefMacros.cmake'. | |||
===WRAP_LIBRARIES and END_WRAP_LIBRARIES=== | |||
===WRAP_LIBRARY and END_WRAP_LIBRARY=== | |||
Formely BEGIN_WRAPPER_LIBRARY and WRAPPER_LIBRARY_CREATE_LIBRARY. | |||
===INCLUDE_LIBRARY=== | |||
===AUTO_INCLUDE_MODULES=== | |||
Formely WRAPPER_LIBRARY_CREATE_WRAP_FILES. | |||
===INCLUDE_MODULE=== | |||
Formely INCLUDE_WRAP_CMAKE. | |||
===WRAP_MODULE and END_WRAP_MODULE=== | |||
===WRAP_CLASS=== | |||
===WRAP_NAMED_CLASS=== | |||
===WRAP_NON_TEMPLATE_CLASS=== | |||
===WRAP_NAMED_NON_TEMPLATE_CLASS=== | |||
===WRAP_INCLUDE=== | |||
===END_WRAP_CLASS=== | |||
===ADD_SIMPLE_TYPEDEF=== | |||
===ADD_ONE_TYPEDEF=== | |||
===WRAP_TEMPLATE=== | |||
===WRAP_IMAGE_FILTER_ALL_TYPES=== | |||
===WRAP_IMAGE_FILTER_SCALAR=== | |||
===WRAP_IMAGE_FILTER_VECTOR=== | |||
===WRAP_IMAGE_FILTER_USIGN_INT=== | |||
===WRAP_IMAGE_FILTER_SIGN_INT=== | |||
===WRAP_IMAGE_FILTER_INT=== | |||
===WRAP_IMAGE_FILTER_REAL=== | |||
===WRAP_IMAGE_FILTER_RGB=== | |||
===WRAP_IMAGE_FILTER_RGBA=== | |||
===WRAP_IMAGE_FILTER_VECTOR_REAL=== | |||
===WRAP_IMAGE_FILTER_COV_VECTOR_REAL=== | |||
===WRAP_IMAGE_FILTER_COMPLEX_REAL=== | |||
===WRAP_IMAGE_FILTER=== | |||
===WRAP_IMAGE_FILTER_COMBINATIONS=== | |||
===WRAP_IMAGE_FILTER_TYPES=== | |||
===FILTER_DIMS=== | |||
==Code generator== | ==Code generator== |
Revision as of 19:52, 12 April 2011
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
The macros are defined in 'TypedefMacros.cmake'.
WRAP_LIBRARIES and END_WRAP_LIBRARIES
WRAP_LIBRARY and END_WRAP_LIBRARY
Formely BEGIN_WRAPPER_LIBRARY and WRAPPER_LIBRARY_CREATE_LIBRARY.
INCLUDE_LIBRARY
AUTO_INCLUDE_MODULES
Formely WRAPPER_LIBRARY_CREATE_WRAP_FILES.
INCLUDE_MODULE
Formely INCLUDE_WRAP_CMAKE.
WRAP_MODULE and END_WRAP_MODULE
WRAP_CLASS
WRAP_NAMED_CLASS
WRAP_NON_TEMPLATE_CLASS
WRAP_NAMED_NON_TEMPLATE_CLASS
WRAP_INCLUDE
END_WRAP_CLASS
ADD_SIMPLE_TYPEDEF
ADD_ONE_TYPEDEF
WRAP_TEMPLATE
WRAP_IMAGE_FILTER_ALL_TYPES
WRAP_IMAGE_FILTER_SCALAR
WRAP_IMAGE_FILTER_VECTOR
WRAP_IMAGE_FILTER_USIGN_INT
WRAP_IMAGE_FILTER_SIGN_INT
WRAP_IMAGE_FILTER_INT
WRAP_IMAGE_FILTER_REAL
WRAP_IMAGE_FILTER_RGB
WRAP_IMAGE_FILTER_RGBA
WRAP_IMAGE_FILTER_VECTOR_REAL
WRAP_IMAGE_FILTER_COV_VECTOR_REAL
WRAP_IMAGE_FILTER_COMPLEX_REAL
WRAP_IMAGE_FILTER
WRAP_IMAGE_FILTER_COMBINATIONS
WRAP_IMAGE_FILTER_TYPES
FILTER_DIMS
Code generator
Everything is done in the 'Languages' directory.