mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-09 10:45:27 +00:00
meson: Handle windows path separator correctly
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1027>
This commit is contained in:
parent
041f51c4bb
commit
4b95bde38f
2 changed files with 8 additions and 3 deletions
|
@ -74,9 +74,9 @@ if __name__ == "__main__":
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env['CARGO_TARGET_DIR'] = str(cargo_target_dir)
|
env['CARGO_TARGET_DIR'] = str(cargo_target_dir)
|
||||||
|
|
||||||
pkg_config_path = env.get('PKG_CONFIG_PATH', '').split(':')
|
pkg_config_path = env.get('PKG_CONFIG_PATH', '').split(os.pathsep)
|
||||||
pkg_config_path.append(str(opts.root_dir / 'meson-uninstalled'))
|
pkg_config_path.append(str(opts.root_dir / 'meson-uninstalled'))
|
||||||
env['PKG_CONFIG_PATH'] = ':'.join(pkg_config_path)
|
env['PKG_CONFIG_PATH'] = os.pathsep.join(pkg_config_path)
|
||||||
|
|
||||||
if opts.command == 'build':
|
if opts.command == 'build':
|
||||||
cargo_cmd = ['cargo']
|
cargo_cmd = ['cargo']
|
||||||
|
|
|
@ -6,6 +6,7 @@ project('gst-plugins-rs',
|
||||||
|
|
||||||
python = import('python').find_installation()
|
python = import('python').find_installation()
|
||||||
fs = import('fs')
|
fs = import('fs')
|
||||||
|
host_system = host_machine.system()
|
||||||
|
|
||||||
if get_option('debug')
|
if get_option('debug')
|
||||||
target = 'debug'
|
target = 'debug'
|
||||||
|
@ -219,7 +220,11 @@ endif
|
||||||
|
|
||||||
pkg_config_path = get_option('pkg_config_path')
|
pkg_config_path = get_option('pkg_config_path')
|
||||||
if pkg_config_path.length() > 0
|
if pkg_config_path.length() > 0
|
||||||
extra_env += {'PKG_CONFIG_PATH': ':'.join(pkg_config_path)}
|
pathsep = ':'
|
||||||
|
if host_system == 'windows'
|
||||||
|
pathsep = ';'
|
||||||
|
endif
|
||||||
|
extra_env += {'PKG_CONFIG_PATH': pathsep.join(pkg_config_path)}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
rs_plugins = custom_target('gst-plugins-rs',
|
rs_plugins = custom_target('gst-plugins-rs',
|
||||||
|
|
Loading…
Reference in a new issue