summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.d@gmail.com>2017-07-12 21:57:11 +1000
committerMatthias Clasen <mclasen@redhat.com>2017-07-13 19:03:39 -0400
commit4db695bfb7d9f2d085020ace67b370afc8838172 (patch)
tree486a36ffe27c248519d166328639daf45e76fea4
parent266bc1e510e154f7b5e793adb227d979ae655446 (diff)
downloadglib-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.build4
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])