[libgweather/benzea/wip-variant-backend: 15/15] Use custom_target instead of configure_file which works with older meson
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/benzea/wip-variant-backend: 15/15] Use custom_target instead of configure_file which works with older meson
- Date: Sun, 26 Apr 2020 15:52:34 +0000 (UTC)
commit 9d0b8d0923efe1320f016a31c6f01ac9fc6e5cf4
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]