def __init__(self, name, subdir, is_cross, sources, objects, environment, kwargs): super().__init__(name, subdir, is_cross, sources, objects, environment, kwargs) self.prefix = "" self.suffix = environment.get_exe_suffix() suffix = environment.get_exe_suffix() if len(self.sources) > 0 and self.sources[0].endswith(".cs"): suffix = "exe" if suffix != "": self.filename = self.name + "." + suffix else: self.filename = self.name
def __init__(self, name, subdir, subproject, is_cross, sources, objects, environment, kwargs): super().__init__(name, subdir, subproject, is_cross, sources, objects, environment, kwargs) self.prefix = '' self.suffix = environment.get_exe_suffix() suffix = environment.get_exe_suffix() if len(self.sources) > 0 and self.sources[0].endswith('.cs'): suffix = 'exe' if suffix != '': self.filename = self.name + '.' + suffix else: self.filename = self.name