]> SALOME platform Git repositories - tools/sat.git/blob - data/templates/Application/template.info
Salome HOME
fix inexisting LANG=en_US.utf8
[tools/sat.git] / data / templates / Application / 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 based on SALOME.
8 """
9
10 # code to substitute with component name
11 file_subst = "Application"
12
13 # delimiter used in the template (default is ':sat:')
14 #delimiter = ":sat:"
15
16 # filter of files to ignore for substitution
17 # if not defined all files will be parsed
18 ignore_filters = '*.png'
19
20 # list of parameters
21 # a string = parameter name
22 # a tuple = (parameter name, default value, prompt, validation method)
23 parameters = [
24     (file_subst, "%(NAME)s"),
25     ("Version", "1.0", "Version of the application"),
26     ("get_method", "archive", "get method for prepare", lambda l: l in ['cvs', 'git', 'archive'])
27     ]
28
29 # script to execute after the generation
30 # create icon_splash.pgn etc...
31 post_command = "config/splash_generator/splash2.py ./resources %(NAME)s %(Version)s 'Powered by SALOME'"
32
33 # configuration to use this component with sat
34 pyconf = """
35 PRODUCTS : {
36     default :
37     {
38         name : "%(NAME)s"
39         get_sources : '%(get_method)s'
40         build_sources : 'autotools'
41         compile_method : $source_dir + '/config/compile.py'
42         cvs_info:
43         {
44             server : $TOOLS.prepare.cvs_server
45             module_base : $TOOLS.prepare.cvs_dir + $name
46             source : 'COMPONENT_SRC'
47             tag : $PRODUCT.default_version_to_download
48         }
49         git_info:
50         {
51             repo : 'to be filled'
52             tag : 'to be filled'
53         }
54         archive_info:
55         {
56             archive_name : '%(target)s.tar.gz'
57         }
58
59         nb_proc : 1
60         source_dir : $TOOLS.common.source_root + '/' + $name
61         build_dir : $TOOLS.common.build_root + '/' + $name
62         depend : ['qt']
63         opt_depend : []
64                 properties :
65                 {
66                         environment : "salome"
67                         has_salome_gui : "yes"
68                 }
69     }
70 }
71
72 APPLI:
73 {
74     # The name of the application (overrides $PRODUCT.name)
75     # This name will be used to generate packages.
76     #name : "%(Name)s"
77     # The name for the application directory (default is APPLI)
78     application_name : "%(NAME)s"
79     # (optional) list of modules if different than PRODUCT.modules
80     #modules: []
81     module_appli: "%(NAME)s"
82     module_appli_install_dir: $TOOLS.common.module_info.%(NAME)s.install_dir
83     launch_alias_name: "%(name)s"
84     configure :
85     {
86         "launch": { "splash": "yes" }
87         "splash":
88         {
89             "image" : $module_appli_install_dir + "/resources/icon_splash.png"
90             "text_colors" : "#ffffff|#000000"
91             "show_percents" : "yes"
92             "show_progress" : "yes"
93             "show_message"  : "yes"
94             #suppose to be installed... and no need if show_message=no
95             "font" : "Xirod,12,normal"
96         }
97         "resources": { "LightApp" : $module_appli_install_dir + "/resources" }
98     }
99 }
100 """