Writes the meson build file at specified location
(self, build_dir: Path)
| 143 | os.remove(path_object) |
| 144 | |
| 145 | def write_meson_build(self, build_dir: Path) -> None: |
| 146 | """Writes the meson build file at specified location""" |
| 147 | meson_template = MesonTemplate( |
| 148 | self.modulename, |
| 149 | self.sources, |
| 150 | self.dependencies, |
| 151 | self.libraries, |
| 152 | self.library_dirs, |
| 153 | self.include_dirs, |
| 154 | self.extra_objects, |
| 155 | self.flib_flags, |
| 156 | self.fc_flags, |
| 157 | self.build_type, |
| 158 | sys.executable, |
| 159 | ) |
| 160 | src = meson_template.generate_meson_build() |
| 161 | Path(build_dir).mkdir(parents=True, exist_ok=True) |
| 162 | meson_build_file = Path(build_dir) / "meson.build" |
| 163 | meson_build_file.write_text(src) |
| 164 | return meson_build_file |
| 165 | |
| 166 | def _run_subprocess_command(self, command, cwd): |
| 167 | subprocess.run(command, cwd=cwd, check=True) |
no test coverage detected