[+] add env for ninja

This commit is contained in:
Siarhei Siniak 2025-03-11 14:14:13 +03:00
parent 9e117048dc
commit acf1850d70
3 changed files with 17 additions and 8 deletions

@ -1 +1 @@
Subproject commit 41fb87dc48ca2b0710e8489fc2de64f1fc82cf15
Subproject commit 29ffbc8dbd295ffbfe416dc28f5f7e828d78d7b2

@ -322,18 +322,27 @@ class CLI(abc.ABC):
self,
project_name: str,
argv: Optional[list[str]] = None,
env: Optional[dict[str, str]] = None,
) -> None:
project = self.projects[project_name]
if argv is None:
argv = []
subprocess.check_call([
shutil_which('ninja', True),
'-C',
str(project.build_dir / 'meson'),
*argv,
])
if env is None:
env = dict()
logger.info(dict(env=env))
subprocess.check_call(
[
shutil_which('ninja', True),
'-C',
str(project.build_dir / 'meson'),
*argv,
],
env=dict(list(os.environ.items())) | env,
)
def meson_test(
self,

@ -1,6 +1,6 @@
[project]
name = 'online.fxreader.pr34'
version = '0.1.4.14'
version = '0.1.4.15'
dependencies = [
#"-r requirements.txt",