diff options
author | Alessandro Decina <alessandro.d@gmail.com> | 2017-07-12 21:57:11 +1000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-07-13 19:03:39 -0400 |
commit | 4db695bfb7d9f2d085020ace67b370afc8838172 (patch) | |
tree | 486a36ffe27c248519d166328639daf45e76fea4 | |
parent | 266bc1e510e154f7b5e793adb227d979ae655446 (diff) | |
download | glib-4db695bfb7d9f2d085020ace67b370afc8838172.tar.gz |
meson: replace meson.current_source_dir() with files()
As the meson reference doc says, files() is preferred over building
paths with current_source_dir().
-rw-r--r-- | gio/meson.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gio/meson.build b/gio/meson.build index 1fb3a5304..a7f68133d 100644 --- a/gio/meson.build +++ b/gio/meson.build @@ -651,7 +651,7 @@ gioenumtypes_h = custom_target('gioenumtypes_h', install : true, install_dir : join_paths(get_option('includedir'), 'glib-2.0/gio'), command : [python, glib_mkenums, - '--template', meson.current_source_dir() + '/gioenumtypes.h.template', + '--template', files('gioenumtypes.h.template'), '@INPUT@', gnetworking_h]) gioenumtypes_c = custom_target('gioenumtypes_c', @@ -660,7 +660,7 @@ gioenumtypes_c = custom_target('gioenumtypes_c', input : gio_headers, depends : [gioenumtypes_h], command : [python, glib_mkenums, - '--template', meson.current_source_dir() + '/gioenumtypes.c.template', + '--template', files('gioenumtypes.c.template'), '@INPUT@', gnetworking_h]) gioenumtypes_dep = declare_dependency(sources : [gioenumtypes_h]) |