aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/gnome.py
diff options
context:
space:
mode:
authorLuca Bacci <luca.bacci982@gmail.com>2021-10-07 16:20:06 +0200
committerEli Schwartz <eschwartz93@gmail.com>2021-10-07 21:52:18 -0400
commit6d1e18247650b59a47ee7cdb200be0ef38d3b258 (patch)
tree31ca48e1536206c16c388775dbe297b2632c8314 /mesonbuild/modules/gnome.py
parenta864269817aee6ad2d524058fcdcd3e0ea843677 (diff)
downloadmeson-6d1e18247650b59a47ee7cdb200be0ef38d3b258.zip
meson-6d1e18247650b59a47ee7cdb200be0ef38d3b258.tar.gz
meson-6d1e18247650b59a47ee7cdb200be0ef38d3b258.tar.bz2
Windows module: Make path flattening for windres work in more cases
If either 'name' or 'name_formatted' are absolute paths, then they are of the form: C:\path/to/file.ext (example) By only substituting slashes with the underscore, we get: C:_path_to_file.ext This is still not quite right, infact os.path.basename() returns: _path_to_file.ext Also replace colons with underscores to overcome issues when absolute paths are involved.
Diffstat (limited to 'mesonbuild/modules/gnome.py')
0 files changed, 0 insertions, 0 deletions