]> SALOME platform Git repositories - tools/sat.git/blob - data/templates/AppModule/template.info
Salome HOME
76169d2e66831155053a16757a0d098d5802f9b3
[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         environ :
51         {
52             # tell salome where to look for ressources
53             "SalomeAppConfig" : $install_dir + $VARS.sep + "share" + $VARS.sep + "salome" + $VARS.sep + "resources" + $VARS.sep + "salome"
54         }
55         source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name
56         build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
57         depend : [ 
58                    'Sphinx',
59                    'qt',
60                    'Python',
61                    'KERNEL',
62                    'GUI',
63                  ]
64         opt_depend : []
65         properties :
66         {
67             is_SALOME_module : "yes"
68             is_salome_application : "yes"
69         }
70     }
71 """