def __init__(self, meson_api: MesonAPI): self.backend: str = '\'qtcreator\'' self.projectinfo = ProjectInfo(meson_api=meson_api) self.mesoninfo = MesonInfo(meson_api=meson_api) self.buildsystem_files: list = meson_api.get_object( group='buildsystem-files', extract_method='loader') self.targetsinfo: list = meson_api.get_object(group='targets', extract_method='loader')
def __init__(self, meson_api: MesonAPI): self.backend: str = '\'codeblocks\'' self.projectinfo = ProjectInfo(meson_api=meson_api) self.mesoninfo = MesonInfo(meson_api=meson_api) self.buildsystem_files = meson_api.get_object( group='buildsystem-files', extract_method='loader') self.targetsinfo: any = meson_api.get_object(group='targets', extract_method='loader') self.ninja = Ninja(self.mesoninfo.sourcedir, self.mesoninfo.builddir) self.compiler = self.targetsinfo[0]['target_sources'][0]['compiler'][0]
def __init__(self, meson_api: MesonAPI): self._project_info: any = meson_api.get_object(group='projectinfo', extract_method='loader') self.descriptive_name: str = re.sub( r'[^a-z0-9]', '_', self._project_info['descriptive_name']) self.subprojects: list = self._project_info['subprojects'] self.number_of_subprojects: list = len( self._project_info['subprojects'])
def __init__(self, meson_api: MesonAPI): self._meson_info: any = meson_api.get_object(group='meson-info', extract_method='loader') self.sourcedir: Path = Path(self._meson_info['directories']['source']) self.builddir: Path = Path(self._meson_info['directories']['build']) self.infodir: Path = Path(self._meson_info['directories']['info'])