]> SALOME platform Git repositories - tools/sat.git/blob - data/templates/AppModule/template.info
Salome HOME
9a12a709cfd8ba5dabf1074e571cdee965b52f22
[tools/sat.git] / data / templates / AppModule / 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 an application module (previously called profile).
8 Remark:
9 """
10
11 # code to subsitute with component name
12 file_subst = "AppModule"
13
14 # delimiter used in the template (default is ':sat:')
15 #delimiter = ":sat:"
16
17 # filter of files to ignore for substitution
18 # if not defined all files will be parsed
19 ignore_filters = '*.png'
20
21 # list of parameters
22 # a string = parameter name
23 # a tuple = (parameter name, default value, prompt, validation method)
24 parameters = [
25     (file_subst, "%(NAME)s"),
26     ("get_method", "dir", "archive", "get method for prepare", lambda l: l in ['cvs', 'git', 'archive', 'dir'])
27     ]
28
29 # configuration to use this component with sat
30 pyconf = """
31     default :
32     {
33         name : "%(NAME)s"
34         component_name : "%(NAME)s"
35         get_source : '%(get_method)s'
36         build_source : 'cmake'
37         git_info:
38         {
39             repo : 'to be filled'
40             tag : 'to be filled'
41         }
42         archive_info:
43         {
44             archive_name : '%(target)s'
45         }
46         dir_info:
47         {
48             dir : '%(target)s'
49         }
50         source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name
51         build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
52         depend : [ 
53                    'Sphinx',
54                    'qt',
55                    'Python',
56                    'KERNEL',
57                    'GUI',
58                  ]
59         opt_depend : []
60         properties :
61         {
62             is_SALOME_module : "yes"
63             is_salome_application : "yes"
64         }
65     }
66 """