4 # description of the template to be displayed with option --info
7 Description: This template can be used to create c++ component.
9 * The name of the module must be suffixed with 'CPP'.
10 * Once the module is compiled use the generate command to create the SALOME module.
11 * The generate command requires a version of YACSGEN greater or equal to 6.5.0.
14 # code to subsitute with component name
15 file_subst = "Cpp_Template_"
17 # delimiter used in the template (default is ':sat:')
20 # filter of files to ignore for substitution
21 # if not defined all files will be parsed
22 ignore_filters = '*.png'
25 # a string = parameter name
26 # a tuple = (parameter name, default value, prompt, validation method)
28 (file_subst, "%(NAME)s"),
29 ("get_method", "archive", "get method for prepare", lambda l: l in ['cvs', 'git', 'archive'])
32 # configuration to use this component with sat
38 component_name : "%(NAME)s"
39 get_sources : '%(get_method)s'
40 build_sources : 'autotools'
48 archive_name : '%(target)s.tar.gz'
51 source_dir : $TOOLS.common.source_root + '/' + $name
52 build_dir : $TOOLS.common.build_root + '/' + $name
58 environment : "salome"
59 has_salome_gui : "yes"
60 logo : $source_dir + "/resources/%(NAME)s.png"