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 * This module will compiled with med 3.
11 * Once the module is compiled use the generate command to create the SALOME module.
12 * The generate command requires a version of YACSGEN greater or equal to 6.5.0.
15 # code to subsitute with component name
16 file_subst = "Cpp_Template_"
18 # delimiter used in the template (default is ':sat:')
21 # filter of files to ignore for substitution
22 # if not defined all files will be parsed
23 ignore_filters = '*.png'
26 # a string = parameter name
27 # a tuple = (parameter name, default value, prompt, validation method)
29 (file_subst, "%(NAME)s"),
30 ("get_method", "dir", "archive", "get method for prepare", lambda l: l in ['cvs', 'git', 'archive', 'dir'])
33 # configuration to use this component with sat
38 component_name : "%(NAME)s"
39 get_source : '%(get_method)s'
40 build_source : 'autotools'
48 archive_name : '%(target)s'
54 source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name
55 build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
74 has_salome_gui : "yes"
75 logo : $source_dir + "/resources/%(NAME)s.png"