when I add a new recipe for GIT&CMAKE, like this:
class Recipe(recipe.Recipe): name = 'libxxx' version = '1.0.0' stype = SourceType.GIT btype = BuildType.CMAKE remotes = {'origin': 'https://xxxxx/test.git'} commit = 'origin/master'
2 errors will occure, please help to confirm whether the following modifications is valid or not?
a.one is mkdir error, and I fix it like this : /cerbero/build/source.py
[before] line 373
async def extract(self):
[after]
async def extract(self):
if not os.path.exists(self.config_src_dir):
os.mkdir(self.config_src_dir)
b.another is cmake path error, and I fix it like this : /cerbero/build/build.py
[before] line 681
await MakefilesBase.configure(self)
# as build_dir is different from source dir, makefile location will be in build_dir.
self.make_dir = self.build_dir
[after]
if self.stype == source.SourceType.GIT:
# as build_dir is different from source dir, makefile location will be in build_dir.
self.make_dir = self.build_dir
await MakefilesBase.configure(self)
else:
await MakefilesBase.configure(self)
# as build_dir is different from source dir, makefile location will be in build_dir.
self.make_dir = self.build_dir