This template generates a source file containing the native type definitions for all IDL types defined in the .gen input file. By default, types are generated for the codels language (defined in the .gen file). This can be changed with the -l option (several -l options can be given, for multiple mappings generation). The generated files are named after the component name, that is suffixed with _types. The suffix can be changed with the -s option. The source files are generated in the current directory by default (see -C option for changing the output directory).
Additionnaly, a dependency file suitable for inclusion in a Makefile
can be generated. This is controlled by the -MD
, -MF
and
-MT
options. These options are documented herafter, and follow the
same syntax as the same options of gcc
.
Example:
user@host:~$ genom3 mappings demo.gen creating ./demo_c_types.h user@host:~$ genom3 mappings -l c++ demo.gen creating ./demo_cxx_types.h
Supported options:
-l
--language=lang
- Generate mappings for language
-s
--suffix=string
- Set output file name suffix
--signature
- Generate codel signatures and types mappings
-MD
- Generate dependency information (in out.d)
-MF=file
- Generate dependency in file instead of out.d
-MT=target
- Change the target of the dependency rules
-C
--directory=dir
- Output files in dir instead of current directory
-p
--preserve
- Do not overwrite existing files
-m
--modify
- Overwrite files even if they did not change
-h
--help
- Print usage summary (this text)