Writes the meson build file at specified location
(self, build_dir: Path)
| 161 | os.remove(path_object) |
| 162 | |
| 163 | def write_meson_build(self, build_dir: Path) -> None: |
| 164 | """Writes the meson build file at specified location""" |
| 165 | meson_template = MesonTemplate( |
| 166 | self.modulename, |
| 167 | self.sources, |
| 168 | self.dependencies, |
| 169 | self.libraries, |
| 170 | self.library_dirs, |
| 171 | self.include_dirs, |
| 172 | self.extra_objects, |
| 173 | self.flib_flags, |
| 174 | self.fc_flags, |
| 175 | self.build_type, |
| 176 | sys.executable, |
| 177 | ) |
| 178 | src = meson_template.generate_meson_build() |
| 179 | Path(build_dir).mkdir(parents=True, exist_ok=True) |
| 180 | meson_build_file = Path(build_dir) / "meson.build" |
| 181 | meson_build_file.write_text(src) |
| 182 | return meson_build_file |
| 183 | |
| 184 | def _run_subprocess_command(self, command, cwd): |
| 185 | subprocess.run(command, cwd=cwd, check=True) |
no test coverage detected