]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
sat package : Make a list with generated products to for the create_appli.py script
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 14 Feb 2017 10:52:19 +0000 (11:52 +0100)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 14 Feb 2017 10:52:19 +0000 (11:52 +0100)
commands/package.py

index 361f82602654e52925322b44efdac42d5595bcf8..a506fed3657970021ac24078a3c3223b11d9358d 100644 (file)
@@ -271,12 +271,26 @@ def product_appli_creation_script(config,
     text_to_add = ""
     for product_name in get_SALOME_modules(config):
         product_info = src.product.get_product_config(config, product_name)
-        if src.product.product_is_SALOME(product_info):
-            line_to_add = ("<module name=\"" + 
-                           product_name + 
-                           "\" gui=\"yes\" path=\"''' + "
-                           "os.path.join(dir_bin_name, \"" + 
-                           product_name + "\") + '''\"/>")
+       
+        if src.product.product_is_smesh_plugin(product_info):
+            continue
+
+        if 'install_dir' in product_info and bool(product_info.install_dir):
+            if src.product.product_is_cpp(product_info):
+                # cpp module
+                for cpp_name in src.product.get_product_components(product_info):
+                    line_to_add = ("<module name=\"" + 
+                                   cpp_name + 
+                                   "\" gui=\"yes\" path=\"''' + "
+                                   "os.path.join(dir_bin_name, \"" + 
+                                   cpp_name + "\") + '''\"/>")
+            else:
+                # regular module
+                line_to_add = ("<module name=\"" + 
+                               product_name + 
+                               "\" gui=\"yes\" path=\"''' + "
+                               "os.path.join(dir_bin_name, \"" + 
+                               product_name + "\") + '''\"/>")
             text_to_add += line_to_add + "\n"
     
     filled_text = text_to_fill.replace("TO BE FILLED 2", text_to_add)