[libgweather/ebassi/gtk4] build: Move variant location builder to build-aux
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/ebassi/gtk4] build: Move variant location builder to build-aux
- Date: Mon, 11 Oct 2021 17:18:20 +0000 (UTC)
commit f55bf237bd482fe7b1fab94be8311b890f889ea1
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Oct 11 18:16:41 2021 +0100
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()`.
{data => build-aux/meson}/gen_locations_variant.py | 0
data/meson.build | 10 +++++++---
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
similarity index 100%
rename from data/gen_locations_variant.py
rename to build-aux/meson/gen_locations_variant.py
diff --git a/data/meson.build b/data/meson.build
index a0f2bc44..5e04c298 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 ff821ea8..5b9189e9 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')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]