[gvfs] build: Use find_program to find codegen.py



commit b607fdd4d0e31026891d10ad1b4f828bd31ebee0
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Thu Apr 5 10:24:23 2018 +0200

    build: Use find_program to find codegen.py
    
    meson provides `find_program` to search for local/system scripts and
    programs. However, `codegen.py` script, which is provided as a
    workaround for `gdbus-codegen` limitations, does not use it.
    
    This patch modifies the way `codegen.py` script is found by using
    meson's idiomatic way to find an executable.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=794365

 meson.build |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meson.build b/meson.build
index 9862c41..03ee42a 100644
--- a/meson.build
+++ b/meson.build
@@ -471,7 +471,7 @@ enable_installed_tests = get_option('installed_tests')
 # Please see:
 #   https://bugzilla.gnome.org/show_bug.cgi?id=791015
 #   https://github.com/mesonbuild/meson/pull/2930
-codegen = join_paths(meson.source_root(), 'codegen.py')
+codegen = find_program('codegen.py')
 
 gnome = import('gnome')
 i18n = import('i18n')


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