gen.aster = self.aster_dir
#get ASTER version
- f = os.path.join(self.aster_dir, self.getAsterPythonPath(), 'Accas', 'properties.py')
- self.version=(0,0,0)
- if os.path.isfile(f):
- mydict = {}
- execfile(f, mydict)
- v,r,p = mydict['version'].split('.')
- self.version=(int(v),int(r),int(p))
+# f = os.path.join(self.aster_dir, self.getAsterPythonPath(), 'Accas', 'properties.py')
+# self.version=(0,0,0)
+# if os.path.isfile(f):
+# mydict = {}
+# execfile(f, mydict)
+# v,r,p = mydict['version'].split('.')
+# self.version=(int(v),int(r),int(p))
if self.kind == "lib":
- return {"Makefile.am":gen.makeMakefile(self.getMakefileItems(gen)),
+ f = self.name+".py"
+ return {"CMakeLists.txt":cmake_src_compo_aster_lib.substitute(sources=f),
filename:self.makeaster(gen)}
elif self.kind == "cexe":
fdict=self.makecexepath(gen)