# --
# Convert the .in files in build dir
# --
+ if self.module == "yacs":
+ key = "salomegui"
+ if self.root[-len(key):] == key:
+ self.files.append("resources/YACSCatalog.xml.in")
+ pass
+ pass
for f in self.files:
if f[-3:] == ".in":
if f == "sstream.in":
if self.module == "yacs":
newlines.append('''
STRING(REGEX REPLACE _moc.cxx .hxx input ${output})
- IF(input STREQUAL WrapGraphicsView.hxx)
- SET(input ../genericgui/${input})
- ENDIF(input STREQUAL WrapGraphicsView.hxx)
''')
else:
newlines.append('''
IF(ext STREQUAL .qm)
STRING(REGEX REPLACE .qm .ts input ${f})
''')
- if self.module in ["kernel", "gui"]:
+ if self.module in ["kernel", "gui", "yacs"]:
newlines.append(r'''
SET(input ${CMAKE_CURRENT_SOURCE_DIR}/resources/${input})
''')
except ValueError:
pass
# --
+ if "Makefile.am.cmake" in files:
+ if "Makefile.am" in files:
+ files.remove("Makefile.am")
+ pass
+ pass
+ # --
for f in files:
- if f == "Makefile.am":
- if module == "medfile":
- tmp = root[len(the_root)+1:]
- from os import sep
- l = tmp.split(sep)
- if l in [ ["src"], ["tools", "mdump"], ["tools", "medconforme"], ["tools", "medimport"] ]:
- f = "Makefile.am.cmake"
- pass
- pass
+ if f in ["Makefile.am", "Makefile.am.cmake"]:
convertAmFile(the_root, root, dirs, files, f, module)
pass
pass