[libgweather/benzea/wip-variant-backend] Use custom_target instead of configure_file which works with older meson



commit 481e45cdd6b0080cb11acbc2fee1c82f31273ce7
Author: Benjamin Berg <bberg redhat com>
Date:   Sun Apr 26 17:42:45 2020 +0200

    Use custom_target instead of configure_file which works with older meson

 data/meson.build        | 2 +-
 libgweather/meson.build | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 3e7f386..05f8c3e 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -18,7 +18,7 @@ endif
 
 gen_locations_variant = find_program('gen-locations-variant.py')
 
-locations_bin = configure_file(
+locations_bin = custom_target('locations-db',
   command: [gen_locations_variant, '@INPUT@', '@OUTPUT@' ],
   install_dir: pkgdatadir, # TODO: Either move to libdir or make arch indepenent
   input: files('Locations.xml'),
diff --git a/libgweather/meson.build b/libgweather/meson.build
index fbb3a12..7ba2580 100644
--- a/libgweather/meson.build
+++ b/libgweather/meson.build
@@ -117,7 +117,7 @@ exe = executable('test_libgweather',
   c_args: test_cargs,
   dependencies: libgweather_dep,
   install: false)
-test('test_named_timezones', exe)
+test('test_named_timezones', exe, depends: [locations_bin])
 
 executable('test_metar',
   ['test_metar.c', gweather_c_sources],


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]