Salome HOME
add the template command
[tools/sat.git] / data / templates / CppSalome6 / template.info
1 #!/usr/bin/env python
2 #-*- coding:utf-8 -*-
3
4 # description of the template to be displayed with option --info
5 info = """
6 Author: CEA
7 Description: This template can be used to create c++ component.
8 Remark:
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.
13 """
14
15 # code to subsitute with component name
16 file_subst = "Cpp_Template_"
17
18 # delimiter used in the template (default is ':sat:')
19 #delimiter = ":sat:"
20
21 # filter of files to ignore for substitution
22 # if not defined all files will be parsed
23 ignore_filters = '*.png'
24
25 # list of parameters
26 # a string = parameter name
27 # a tuple = (parameter name, default value, prompt, validation method)
28 parameters = [
29     (file_subst, "%(NAME)s"),
30     ("get_method", "archive", "get method for prepare", lambda l: l in ['cvs', 'git', 'archive'])
31     ]
32
33 # configuration to use this component with sat
34 pyconf = """
35     '%(NAME)sCPP':
36     '%(NAME)sCPP':
37     {
38         name : "%(NAME)sCPP"
39         component_name : "%(NAME)s"
40         get_sources : '%(get_method)s'
41         build_sources : 'autotools'
42         git_info:
43         {
44             repo : 'to be filled'
45             tag : 'to be filled'
46         }
47         archive_info:
48         {
49             archive_name : '%(target)s.tar.gz'
50         }
51         nb_proc : 1
52         source_dir : $TOOLS.common.source_root + '/' + $name
53         build_dir : $TOOLS.common.build_root + '/' + $name
54         depend : []
55         opt_depend : []
56                 properties :
57                 {
58                         is_cpp : "yes"
59                         environment : "salome"
60                         has_salome_gui : "yes"
61                         logo : $source_dir + "/resources/%(NAME)s.png"
62                 }
63     }
64 """