mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-09 10:45:27 +00:00
meson: Don't require Python 3.8 for cargo_wrapper.py
Documentation on gstreamer monorepo is disabled because the image we use to build the docs only has Python 3.7 https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2873 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1327>
This commit is contained in:
parent
aa4ba44794
commit
379d3de31c
1 changed files with 7 additions and 1 deletions
|
@ -30,6 +30,12 @@ PARSER.add_argument('--depfile')
|
||||||
PARSER.add_argument('--disable-doc', action="store_true", default=False)
|
PARSER.add_argument('--disable-doc', action="store_true", default=False)
|
||||||
|
|
||||||
|
|
||||||
|
def shlex_join(args):
|
||||||
|
if hasattr(shlex, 'join'):
|
||||||
|
return shlex.join(args)
|
||||||
|
return ' '.join([shlex.quote(arg) for arg in args])
|
||||||
|
|
||||||
|
|
||||||
def generate_depfile_for(fpath):
|
def generate_depfile_for(fpath):
|
||||||
file_stem = fpath.parent / fpath.stem
|
file_stem = fpath.parent / fpath.stem
|
||||||
depfile_content = ""
|
depfile_content = ""
|
||||||
|
@ -92,7 +98,7 @@ if __name__ == "__main__":
|
||||||
rustc_target_idx = rust_flags.index('--target')
|
rustc_target_idx = rust_flags.index('--target')
|
||||||
_ = rust_flags.pop(rustc_target_idx) # drop '--target'
|
_ = rust_flags.pop(rustc_target_idx) # drop '--target'
|
||||||
rustc_target = rust_flags.pop(rustc_target_idx)
|
rustc_target = rust_flags.pop(rustc_target_idx)
|
||||||
env['RUSTFLAGS'] = shlex.join(rust_flags)
|
env['RUSTFLAGS'] = shlex_join(rust_flags)
|
||||||
env['RUSTC'] = rustc_cmdline[0]
|
env['RUSTC'] = rustc_cmdline[0]
|
||||||
|
|
||||||
features = opts.features
|
features = opts.features
|
||||||
|
|
Loading…
Reference in a new issue