diff options
author | Alessandro Decina <alessandro.d@gmail.com> | 2017-07-12 21:57:11 +1000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-07-12 13:07:26 +0100 |
commit | 36cbcb97170ba58693a224f5d5d0cb0bd889df8a (patch) | |
tree | 8c04b7525830cfc49a316becfd636656509a1d0a | |
parent | 4449a1b000a0ec4dc9ceb7b73e847b80cd6f595a (diff) | |
download | glib-wip/meson.tar.gz |
meson: replace meson.current_source_dir() with files()wip/meson
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]) |