Commit a04159d9f3a8367000bce8dc9a38f9121f08f5df

Authored by Benjamin Renard
1 parent 570d7d45

Define common library path for compilation (#6371)

src/Request/Config/KernelConfigClass.php
... ... @@ -121,6 +121,11 @@ class KernelConfigClass
121 121 {
122 122 return MissionInfo;
123 123 }
  124 +
  125 + public static function getCommonLibPath()
  126 + {
  127 + return CommonLib;
  128 + }
124 129  
125 130 public static function getKernelBinPath()
126 131 {
... ... @@ -173,7 +178,8 @@ class KernelConfigClass
173 178  
174 179 $appProperties["app.plugin"] = AMDA_KERNEL_BUILD_DIR.'/'.self::$pluginDir;
175 180 $appProperties["app.process.src"] = $compilation_path.self::$userSrcDir;
176   - $appProperties["app.process.lib"] = $compilation_path.self::$userLibDir;
  181 + $appProperties["app.process.lib"] = self::getCommonLibPath();
  182 + $appProperties["app.process.userlib"] = $compilation_path.self::$userLibDir;
177 183 $appProperties["app.process.CXX_COMPILER"] = self::$cxxCompiler;
178 184 $appProperties["app.process.CMAKE_CXX_FLAGS"] = self::$cmakeFlags;
179 185  
... ...
src/Request/ParamsRequestImpl/Nodes/Params/ParamNodeClass.php
... ... @@ -14,6 +14,7 @@ define ("PARAM_GAP", "gap_threshold");
14 14 define ("PARAM_GET", "get");
15 15 define ("PARAM_PROCESS", "process");
16 16 define ("PARAM_PROCESS_DESCRIPTION", "description");
  17 +define ("PARAM_PROCESS_USERPROCESS", "userProcess");
17 18 define ("PARAM_OUTPUT", "output");
18 19  
19 20 abstract class ParamGetTypeEnum
... ... @@ -109,11 +110,14 @@ class ParamNodeClass extends NodeClass
109 110 return NULL;
110 111 }
111 112  
112   - public function setProcess($process, $process_info)
  113 + public function setProcess($process, $process_info, $isUserProcess = false)
113 114 {
114 115 $node = $this->getChildInstanceByName(PARAM_PROCESS, true);
115 116 $node->setValue($process);
116 117 $node->setAttribute(PARAM_PROCESS_DESCRIPTION, $process_info);
  118 + if ($isUserProcess) {
  119 + $node->setAttribute(PARAM_PROCESS_USERPROCESS, $isUserProcess ? "true" : "false");
  120 + }
117 121 }
118 122  
119 123 public function setOutput()
... ...
src/Request/ParamsRequestImpl/ParamsRequestDataClass.php
... ... @@ -163,7 +163,7 @@ class ParamsRequestDataClass extends ProcessRequestDataClass
163 163 else
164 164 $amdaParamNode->setParamName($getParam['paramid']);
165 165 }
166   - $newParam->setProcess($expression, $expression_info);
  166 + $newParam->setProcess($expression, $expression_info, true);
167 167 $newParam->setOutput();
168 168  
169 169 $this->processParamsToCreate[$paramId] = array('param' => $newParam, 'dateModif' => $dateModif);
... ...