- def __init__(self, folder, config):
- self.folder = folder
- self.name = config['name']
- # VCS
- vcsName = config['vcs']
- if vcsName == 'git':
- self.vcs = vcs.Git(self.sourceFolder(), config)
- elif vcsName == 'svn':
- self.vcs = vcs.SVN(self.sourceFolder(), config['url'])
- else:
- raise Exception("Unknown VCS type "+vcsName)
- # build system
- if config.get('buildDeb', False):
- self.buildSystem = build_system.AutoDebuild(self.sourceFolder(), self.buildFolder(), config, self.vcs)
- else:
- buildSystemName = config['buildSystem']
- if buildSystemName == 'cmake':
- self.buildSystem = build_system.CMake(self.sourceFolder(), self.buildFolder(), config)
- else:
- raise Exception("Unknown build system type "+buildSystemName)
-
- def sourceFolder(self):
- return os.path.join(self.folder, self.name)
-
- def buildFolder(self):
- return os.path.join(config['buildDir'], self.sourceFolder())
+ def __init__(self, folder, config):
+ self.folder = folder
+ self.name = config['name']
+ # VCS
+ vcsName = config['vcs']
+ if vcsName == 'git':
+ self.vcs = vcs.Git(self.sourceFolder(), config)
+ elif vcsName == 'svn':
+ self.vcs = vcs.SVN(self.sourceFolder(), config['url'])
+ else:
+ raise Exception("Unknown VCS type "+vcsName)
+ # build system
+ if config.get('buildDeb', False):
+ self.buildSystem = build_system.AutoDebuild(self.sourceFolder(), self.buildFolder(), config, self.vcs)
+ else:
+ buildSystemName = config['buildSystem']
+ if buildSystemName == 'cmake':
+ self.buildSystem = build_system.CMake(self.sourceFolder(), self.buildFolder(), config)
+ else:
+ raise Exception("Unknown build system type "+buildSystemName)
+
+ def sourceFolder(self):
+ return os.path.join(self.folder, self.name)
+
+ def buildFolder(self):
+ return os.path.join(config['buildDir'], self.sourceFolder())