From 40a9a6b7e6dc583e0dfa2db7686155dcc7f63db6 Mon Sep 17 00:00:00 2001 From: crouzet Date: Fri, 3 Mar 2017 11:14:54 +0100 Subject: [PATCH] adapt cpp template to salome 7.8 and sat5 --- data/templates/CppSalome78/template.info | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/data/templates/CppSalome78/template.info b/data/templates/CppSalome78/template.info index fc97194..4310a14 100644 --- a/data/templates/CppSalome78/template.info +++ b/data/templates/CppSalome78/template.info @@ -27,7 +27,7 @@ ignore_filters = '*.png' # a tuple = (parameter name, default value, prompt, validation method) parameters = [ (file_subst, "%(NAME)s"), - ("get_method", "archive", "get method for prepare", lambda l: l in ['cvs', 'git', 'archive']) + ("get_method", "dir", "get method for prepare", lambda l: l in ['cvs', 'git', 'archive', 'dir']) ] # configuration to use this component with sat @@ -47,6 +47,10 @@ pyconf = """ { archive_name : '%(target)s' } + dir_info: + { + dir : '%(target)s' + } source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name depend : [ @@ -65,8 +69,8 @@ pyconf = """ opt_depend : [] properties : { - is_cpp : "yes" - environment : "salome" + cpp : "yes" + generate : "yes" has_salome_gui : "yes" logo : $source_dir + "/resources/%(NAME)s.png" } -- 2.39.2