diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2020-10-15 10:18:00 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-10-15 23:07:29 +0300 |
commit | 2e80c521295f45105229e5c7bffa3ebfd60b3445 (patch) | |
tree | 6941e725536dc446f956196c8e366f770cc0ddb8 /mesonbuild/modules/windows.py | |
parent | 4d140eb830eecee5f86430cce161370adb665868 (diff) | |
download | meson-2e80c521295f45105229e5c7bffa3ebfd60b3445.zip meson-2e80c521295f45105229e5c7bffa3ebfd60b3445.tar.gz meson-2e80c521295f45105229e5c7bffa3ebfd60b3445.tar.bz2 |
windows: Avoid target name clash happening in GTK+
Diffstat (limited to 'mesonbuild/modules/windows.py')
-rw-r--r-- | mesonbuild/modules/windows.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py index a5faa32..b8715f2 100644 --- a/mesonbuild/modules/windows.py +++ b/mesonbuild/modules/windows.py @@ -128,7 +128,9 @@ class WindowsModule(ExtensionModule): if len(src.get_outputs()) > 1: raise MesonException('windows.compile_resources does not accept custom targets with more than 1 output.') - name_formatted = src.get_filename() + # Chances are that src.get_filename() is already the name of that + # target, add a prefix to avoid name clash. + name_formatted = 'windows_compile_resources_' + src.get_filename() name = src.get_id() else: raise MesonException('Unexpected source type {!r}. windows.compile_resources accepts only strings, files, custom targets, and lists thereof.'.format(src)) |