(self, arch)
| 1570 | self.extra_build_args.append(arg) |
| 1571 | |
| 1572 | def build_arch(self, arch): |
| 1573 | cross_file = join("/tmp", "android.meson.cross") |
| 1574 | info("Writing cross file at: {}".format(cross_file)) |
| 1575 | # write cross config file |
| 1576 | with open(cross_file, "w") as file: |
| 1577 | file.write(self.write_build_options(arch)) |
| 1578 | file.close() |
| 1579 | # set cross file |
| 1580 | self.ensure_args('-Csetup-args=--cross-file', '-Csetup-args={}'.format(cross_file)) |
| 1581 | # ensure ninja and meson |
| 1582 | for dep in [ |
| 1583 | "ninja", |
| 1584 | "meson=={}".format(self.meson_version), |
| 1585 | ]: |
| 1586 | if dep not in self.hostpython_prerequisites: |
| 1587 | self.hostpython_prerequisites.append(dep) |
| 1588 | |
| 1589 | if not self.skip_python: |
| 1590 | super().build_arch(arch) |
| 1591 | else: |
| 1592 | self.install_hostpython_prerequisites( |
| 1593 | packages=["build[virtualenv]", "pip", "setuptools", "patchelf"] + self.hostpython_prerequisites |
| 1594 | ) |
| 1595 | |
| 1596 | |
| 1597 | class RustCompiledComponentsRecipe(PyProjectRecipe): |
nothing calls this directly
no test coverage detected