diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2021-10-11 18:16:41 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2021-10-13 13:01:56 +0100 |
commit | 7a0f4bbcaadc8af3710d179cbc0eb744380fe658 (patch) | |
tree | 59dc41510999015805c59f76d25359bd2a734f66 | |
parent | b5ed594423ba9819347523e3cef50b2695474de0 (diff) | |
download | libgweather-7a0f4bbcaadc8af3710d179cbc0eb744380fe658.tar.gz |
build: Move variant location builder to build-aux
And make sure to use the path of the script returned by
`find_program()`, instead of using `files()`.
-rwxr-xr-x | build-aux/meson/gen_locations_variant.py (renamed from data/gen_locations_variant.py) | 0 | ||||
-rw-r--r-- | data/meson.build | 10 | ||||
-rw-r--r-- | meson.build | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/data/gen_locations_variant.py b/build-aux/meson/gen_locations_variant.py index e256502..e256502 100755 --- a/data/gen_locations_variant.py +++ b/build-aux/meson/gen_locations_variant.py diff --git a/data/meson.build b/data/meson.build index a0f2bc4..5e04c29 100644 --- a/data/meson.build +++ b/data/meson.build @@ -16,10 +16,14 @@ if xmllint.found() ]) endif -gen_locations_variant = find_program('gen_locations_variant.py') - if pylint.found() - test('pylint-gen-locations-variant', pylint, args: pylint_flags + files([ 'gen_locations_variant.py' ])) + test('pylint-gen-locations-variant', + pylint, + args: [ + pylint_flags, + gen_locations_variant.full_path(), + ], + ) endif # The generated file is architecture dependent (i.e. host endianness) diff --git a/meson.build b/meson.build index ff821ea..5b9189e 100644 --- a/meson.build +++ b/meson.build @@ -72,6 +72,8 @@ else enable_vala = enable_vala != 'false' endif +gen_locations_variant = find_program('build-aux/meson/gen_locations_variant.py') + subdir('data') subdir('libgweather') subdir('schemas') |