-# template for a KDE project: combine git/svn with cmake
-def sourceFolder(module):
- return os.path.join(module['in-folder'], module['name'])
-def buildFolder(module):
- return os.path.join(config.buildDir, sourceFolder(module))
-
-class KDEGitProject(vcs.Git, build_system.CMake):
- def __init__(self, module):
- vcs.Git.__init__(self, sourceFolder(module),'kde:'+module['name'], module['version'])
- build_system.CMake.__init__(self, sourceFolder(module), buildFolder(module), config)
- self.name = module['name']
-
-class KDESVNProject(vcs.SVN, build_system.CMake):
- def __init__(self, module):
- vcs.SVN.__init__(self, sourceFolder(module), 'svn://svn.kde.org/home/kde/'+module['svn-path'])
- build_system.CMake.__init__(self, sourceFolder(module), buildFolder(module), config)