Module that defines CPPComponent for SALOME components implemented in C++
"""
+import os
from gener import Component, Invalid
from cpp_tmpl import initService, cxxService, hxxCompo, cxxCompo
from cpp_tmpl import compoEXEMakefile, compoMakefile, exeCPP
cxxfile = "%s.cxx" % self.name
hxxfile = "%s.hxx" % self.name
if self.kind == "lib":
- sources = " ".join(self.sources)
+ sources = " ".join(map(os.path.basename,self.sources))
return {"Makefile.am":compoMakefile.substitute(module=gen.module.name,
component=self.name,
libs=self.libs,
#copy source files if any in creates tree
for compo in module.components:
for src in compo.sources:
- shutil.copyfile(src, os.path.join(namedir, "src", compo.name, src))
+ shutil.copyfile(src, os.path.join(namedir, "src", compo.name, os.path.basename(src)))
for m4file in ("check_Kernel.m4", "check_omniorb.m4",
"ac_linker_options.m4", "ac_cxx_option.m4",
"""
Module that defines PYComponent for SALOME components implemented in Python
"""
+import os
from gener import Component, Invalid
from pyth_tmpl import pyinitService, pyService, pyCompoEXE, pyCompo
from pyth_tmpl import pycompoEXEMakefile, pycompoMakefile
def makeCompo(self, gen):
pyfile = "%s.py" % self.name
- sources = " ".join(self.sources)
+ sources = " ".join(map(os.path.basename,self.sources))
if self.kind == "lib":
return {"Makefile.am":pycompoMakefile.substitute(module=gen.module.name,
component=self.name,