From: crouzet Date: Fri, 3 Mar 2017 10:14:54 +0000 (+0100) Subject: adapt cpp template to salome 7.8 and sat5 X-Git-Tag: 5.0.0a1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=40a9a6b7e6dc583e0dfa2db7686155dcc7f63db6;p=tools%2Fsat.git adapt cpp template to salome 7.8 and sat5 --- 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" }