diff options
| author | 2024-10-29 16:47:10 -0400 | |
|---|---|---|
| committer | 2024-10-29 17:06:47 -0400 | |
| commit | f56abfafcd4fa722b807278b138f805112cd953e (patch) | |
| tree | 1d80c75395711d8632ef46ac4178cb98ae26c0f7 /src/portal | |
| parent | 355480f408e88b69717b934bace4e5e69856ad23 (diff) | |
| download | camu-f56abfafcd4fa722b807278b138f805112cd953e.tar.gz camu-f56abfafcd4fa722b807278b138f805112cd953e.tar.bz2 camu-f56abfafcd4fa722b807278b138f805112cd953e.zip | |
Update deps and cleanup build
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/portal')
| -rwxr-xr-x | src/portal/cpy/build.sh | 1 | ||||
| -rw-r--r-- | src/portal/meson.build | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/portal/cpy/build.sh b/src/portal/cpy/build.sh index 15ff4f5..5e5fb10 100755 --- a/src/portal/cpy/build.sh +++ b/src/portal/cpy/build.sh @@ -1,3 +1,4 @@ #! /usr/bin/env sh +cd $1 export PYTHONDONTWRITEBYTECODE=1 python3 setup.py build_ext -i diff --git a/src/portal/meson.build b/src/portal/meson.build index c3bbeb4..7cf31a7 100644 --- a/src/portal/meson.build +++ b/src/portal/meson.build @@ -7,8 +7,10 @@ portal_src = [ portal_deps = [] portal_args = ['-DCAMU_HAVE_PORTAL'] +cpy_dir = join_paths(meson.current_source_dir(), 'cpy') +run_command(join_paths(cpy_dir, 'build.sh'), cpy_dir) + python3_embed = import('python').find_installation('python3.12').dependency(embed: true) portal_deps += [python3_embed] -portal = declare_dependency(sources: portal_src, dependencies: portal_deps, - compile_args: portal_args) +portal = declare_dependency(sources: portal_src, dependencies: portal_deps, compile_args: portal_args) |